diff --git a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Calendar/CalendarAddonManifest.g.cs b/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Calendar/CalendarAddonManifest.g.cs
deleted file mode 100644
index b9ccc29494ec..000000000000
--- a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Calendar/CalendarAddonManifest.g.cs
+++ /dev/null
@@ -1,1045 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/apps/script/type/calendar/calendar_addon_manifest.proto
-//
-#pragma warning disable 1591, 0612, 3021, 8981
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Apps.Script.Type.Calendar {
-
- /// Holder for reflection information generated from google/apps/script/type/calendar/calendar_addon_manifest.proto
- public static partial class CalendarAddonManifestReflection {
-
- #region Descriptor
- /// File descriptor for google/apps/script/type/calendar/calendar_addon_manifest.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static CalendarAddonManifestReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cj5nb29nbGUvYXBwcy9zY3JpcHQvdHlwZS9jYWxlbmRhci9jYWxlbmRhcl9h",
- "ZGRvbl9tYW5pZmVzdC5wcm90bxIgZ29vZ2xlLmFwcHMuc2NyaXB0LnR5cGUu",
- "Y2FsZW5kYXIaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aLWdv",
- "b2dsZS9hcHBzL3NjcmlwdC90eXBlL2V4dGVuc2lvbl9wb2ludC5wcm90byK/",
- "BAoVQ2FsZW5kYXJBZGRPbk1hbmlmZXN0EkkKEGhvbWVwYWdlX3RyaWdnZXIY",
- "BiABKAsyLy5nb29nbGUuYXBwcy5zY3JpcHQudHlwZS5Ib21lcGFnZUV4dGVu",
- "c2lvblBvaW50ElEKE2NvbmZlcmVuY2Vfc29sdXRpb24YAyADKAsyNC5nb29n",
- "bGUuYXBwcy5zY3JpcHQudHlwZS5jYWxlbmRhci5Db25mZXJlbmNlU29sdXRp",
- "b24SJAocY3JlYXRlX3NldHRpbmdzX3VybF9mdW5jdGlvbhgFIAEoCRJUChJl",
- "dmVudF9vcGVuX3RyaWdnZXIYCiABKAsyOC5nb29nbGUuYXBwcy5zY3JpcHQu",
- "dHlwZS5jYWxlbmRhci5DYWxlbmRhckV4dGVuc2lvblBvaW50ElYKFGV2ZW50",
- "X3VwZGF0ZV90cmlnZ2VyGAsgASgLMjguZ29vZ2xlLmFwcHMuc2NyaXB0LnR5",
- "cGUuY2FsZW5kYXIuQ2FsZW5kYXJFeHRlbnNpb25Qb2ludBJhChRjdXJyZW50",
- "X2V2ZW50X2FjY2VzcxgMIAEoDjJDLmdvb2dsZS5hcHBzLnNjcmlwdC50eXBl",
- "LmNhbGVuZGFyLkNhbGVuZGFyQWRkT25NYW5pZmVzdC5FdmVudEFjY2VzcyJR",
- "CgtFdmVudEFjY2VzcxIPCgtVTlNQRUNJRklFRBAAEgwKCE1FVEFEQVRBEAES",
- "CAoEUkVBRBADEgkKBVdSSVRFEAQSDgoKUkVBRF9XUklURRAFInAKEkNvbmZl",
- "cmVuY2VTb2x1dGlvbhIfChJvbl9jcmVhdGVfZnVuY3Rpb24YASABKAlCA+BB",
- "AhIPCgJpZBgEIAEoCUID4EECEhEKBG5hbWUYBSABKAlCA+BBAhIVCghsb2dv",
- "X3VybBgGIAEoCUID4EECIjMKFkNhbGVuZGFyRXh0ZW5zaW9uUG9pbnQSGQoM",
- "cnVuX2Z1bmN0aW9uGAEgASgJQgPgQQJC8gEKJGNvbS5nb29nbGUuYXBwcy5z",
- "Y3JpcHQudHlwZS5jYWxlbmRhckIaQ2FsZW5kYXJBZGRPbk1hbmlmZXN0UHJv",
- "dG9QAVo/Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h",
- "cHBzL3NjcmlwdC90eXBlL2NhbGVuZGFyqgIgR29vZ2xlLkFwcHMuU2NyaXB0",
- "LlR5cGUuQ2FsZW5kYXLKAiBHb29nbGVcQXBwc1xTY3JpcHRcVHlwZVxDYWxl",
- "bmRhcuoCJEdvb2dsZTo6QXBwczo6U2NyaXB0OjpUeXBlOjpDYWxlbmRhcmIG",
- "cHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Apps.Script.Type.ExtensionPointReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest), global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Parser, new[]{ "HomepageTrigger", "ConferenceSolution", "CreateSettingsUrlFunction", "EventOpenTrigger", "EventUpdateTrigger", "CurrentEventAccess" }, null, new[]{ typeof(global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess) }, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Calendar.ConferenceSolution), global::Google.Apps.Script.Type.Calendar.ConferenceSolution.Parser, new[]{ "OnCreateFunction", "Id", "Name", "LogoUrl" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint), global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint.Parser, new[]{ "RunFunction" }, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Calendar add-on manifest.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class CalendarAddOnManifest : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalendarAddOnManifest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Calendar.CalendarAddonManifestReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CalendarAddOnManifest() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CalendarAddOnManifest(CalendarAddOnManifest other) : this() {
- homepageTrigger_ = other.homepageTrigger_ != null ? other.homepageTrigger_.Clone() : null;
- conferenceSolution_ = other.conferenceSolution_.Clone();
- createSettingsUrlFunction_ = other.createSettingsUrlFunction_;
- eventOpenTrigger_ = other.eventOpenTrigger_ != null ? other.eventOpenTrigger_.Clone() : null;
- eventUpdateTrigger_ = other.eventUpdateTrigger_ != null ? other.eventUpdateTrigger_.Clone() : null;
- currentEventAccess_ = other.currentEventAccess_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CalendarAddOnManifest Clone() {
- return new CalendarAddOnManifest(this);
- }
-
- /// Field number for the "homepage_trigger" field.
- public const int HomepageTriggerFieldNumber = 6;
- private global::Google.Apps.Script.Type.HomepageExtensionPoint homepageTrigger_;
- ///
- /// Defines an endpoint that will be executed contexts that don't
- /// match a declared contextual trigger. Any cards generated by this function
- /// will always be available to the user, but may be eclipsed by contextual
- /// content when this add-on declares more targeted triggers.
- ///
- /// If present, this overrides the configuration from
- /// `addOns.common.homepageTrigger`.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.HomepageExtensionPoint HomepageTrigger {
- get { return homepageTrigger_; }
- set {
- homepageTrigger_ = value;
- }
- }
-
- /// Field number for the "conference_solution" field.
- public const int ConferenceSolutionFieldNumber = 3;
- private static readonly pb::FieldCodec _repeated_conferenceSolution_codec
- = pb::FieldCodec.ForMessage(26, global::Google.Apps.Script.Type.Calendar.ConferenceSolution.Parser);
- private readonly pbc::RepeatedField conferenceSolution_ = new pbc::RepeatedField();
- ///
- /// Defines conference solutions provided by this add-on.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField ConferenceSolution {
- get { return conferenceSolution_; }
- }
-
- /// Field number for the "create_settings_url_function" field.
- public const int CreateSettingsUrlFunctionFieldNumber = 5;
- private string createSettingsUrlFunction_ = "";
- ///
- /// An endpoint to execute that creates a URL to the add-on's settings page.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string CreateSettingsUrlFunction {
- get { return createSettingsUrlFunction_; }
- set {
- createSettingsUrlFunction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "event_open_trigger" field.
- public const int EventOpenTriggerFieldNumber = 10;
- private global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint eventOpenTrigger_;
- ///
- /// An endpoint to trigger when an event is opened (viewed/edited).
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint EventOpenTrigger {
- get { return eventOpenTrigger_; }
- set {
- eventOpenTrigger_ = value;
- }
- }
-
- /// Field number for the "event_update_trigger" field.
- public const int EventUpdateTriggerFieldNumber = 11;
- private global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint eventUpdateTrigger_;
- ///
- /// An endpoint to trigger when the open event is updated.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint EventUpdateTrigger {
- get { return eventUpdateTrigger_; }
- set {
- eventUpdateTrigger_ = value;
- }
- }
-
- /// Field number for the "current_event_access" field.
- public const int CurrentEventAccessFieldNumber = 12;
- private global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess currentEventAccess_ = global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess.Unspecified;
- ///
- /// Define the level of data access when an event addon is triggered.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess CurrentEventAccess {
- get { return currentEventAccess_; }
- set {
- currentEventAccess_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as CalendarAddOnManifest);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(CalendarAddOnManifest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(HomepageTrigger, other.HomepageTrigger)) return false;
- if(!conferenceSolution_.Equals(other.conferenceSolution_)) return false;
- if (CreateSettingsUrlFunction != other.CreateSettingsUrlFunction) return false;
- if (!object.Equals(EventOpenTrigger, other.EventOpenTrigger)) return false;
- if (!object.Equals(EventUpdateTrigger, other.EventUpdateTrigger)) return false;
- if (CurrentEventAccess != other.CurrentEventAccess) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (homepageTrigger_ != null) hash ^= HomepageTrigger.GetHashCode();
- hash ^= conferenceSolution_.GetHashCode();
- if (CreateSettingsUrlFunction.Length != 0) hash ^= CreateSettingsUrlFunction.GetHashCode();
- if (eventOpenTrigger_ != null) hash ^= EventOpenTrigger.GetHashCode();
- if (eventUpdateTrigger_ != null) hash ^= EventUpdateTrigger.GetHashCode();
- if (CurrentEventAccess != global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess.Unspecified) hash ^= CurrentEventAccess.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- conferenceSolution_.WriteTo(output, _repeated_conferenceSolution_codec);
- if (CreateSettingsUrlFunction.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(CreateSettingsUrlFunction);
- }
- if (homepageTrigger_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(HomepageTrigger);
- }
- if (eventOpenTrigger_ != null) {
- output.WriteRawTag(82);
- output.WriteMessage(EventOpenTrigger);
- }
- if (eventUpdateTrigger_ != null) {
- output.WriteRawTag(90);
- output.WriteMessage(EventUpdateTrigger);
- }
- if (CurrentEventAccess != global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess.Unspecified) {
- output.WriteRawTag(96);
- output.WriteEnum((int) CurrentEventAccess);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- conferenceSolution_.WriteTo(ref output, _repeated_conferenceSolution_codec);
- if (CreateSettingsUrlFunction.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(CreateSettingsUrlFunction);
- }
- if (homepageTrigger_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(HomepageTrigger);
- }
- if (eventOpenTrigger_ != null) {
- output.WriteRawTag(82);
- output.WriteMessage(EventOpenTrigger);
- }
- if (eventUpdateTrigger_ != null) {
- output.WriteRawTag(90);
- output.WriteMessage(EventUpdateTrigger);
- }
- if (CurrentEventAccess != global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess.Unspecified) {
- output.WriteRawTag(96);
- output.WriteEnum((int) CurrentEventAccess);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (homepageTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(HomepageTrigger);
- }
- size += conferenceSolution_.CalculateSize(_repeated_conferenceSolution_codec);
- if (CreateSettingsUrlFunction.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(CreateSettingsUrlFunction);
- }
- if (eventOpenTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventOpenTrigger);
- }
- if (eventUpdateTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventUpdateTrigger);
- }
- if (CurrentEventAccess != global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess.Unspecified) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CurrentEventAccess);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(CalendarAddOnManifest other) {
- if (other == null) {
- return;
- }
- if (other.homepageTrigger_ != null) {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- HomepageTrigger.MergeFrom(other.HomepageTrigger);
- }
- conferenceSolution_.Add(other.conferenceSolution_);
- if (other.CreateSettingsUrlFunction.Length != 0) {
- CreateSettingsUrlFunction = other.CreateSettingsUrlFunction;
- }
- if (other.eventOpenTrigger_ != null) {
- if (eventOpenTrigger_ == null) {
- EventOpenTrigger = new global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint();
- }
- EventOpenTrigger.MergeFrom(other.EventOpenTrigger);
- }
- if (other.eventUpdateTrigger_ != null) {
- if (eventUpdateTrigger_ == null) {
- EventUpdateTrigger = new global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint();
- }
- EventUpdateTrigger.MergeFrom(other.EventUpdateTrigger);
- }
- if (other.CurrentEventAccess != global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess.Unspecified) {
- CurrentEventAccess = other.CurrentEventAccess;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 26: {
- conferenceSolution_.AddEntriesFrom(input, _repeated_conferenceSolution_codec);
- break;
- }
- case 42: {
- CreateSettingsUrlFunction = input.ReadString();
- break;
- }
- case 50: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 82: {
- if (eventOpenTrigger_ == null) {
- EventOpenTrigger = new global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint();
- }
- input.ReadMessage(EventOpenTrigger);
- break;
- }
- case 90: {
- if (eventUpdateTrigger_ == null) {
- EventUpdateTrigger = new global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint();
- }
- input.ReadMessage(EventUpdateTrigger);
- break;
- }
- case 96: {
- CurrentEventAccess = (global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess) input.ReadEnum();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 26: {
- conferenceSolution_.AddEntriesFrom(ref input, _repeated_conferenceSolution_codec);
- break;
- }
- case 42: {
- CreateSettingsUrlFunction = input.ReadString();
- break;
- }
- case 50: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 82: {
- if (eventOpenTrigger_ == null) {
- EventOpenTrigger = new global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint();
- }
- input.ReadMessage(EventOpenTrigger);
- break;
- }
- case 90: {
- if (eventUpdateTrigger_ == null) {
- EventUpdateTrigger = new global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint();
- }
- input.ReadMessage(EventUpdateTrigger);
- break;
- }
- case 96: {
- CurrentEventAccess = (global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess) input.ReadEnum();
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// Container for nested types declared in the CalendarAddOnManifest message type.
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- ///
- /// An enum defining the level of data access event triggers require.
- ///
- public enum EventAccess {
- ///
- /// Default value when nothing is set for EventAccess.
- ///
- [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
- ///
- /// METADATA gives event triggers the permission to access the metadata of
- /// events such as event id and calendar id.
- ///
- [pbr::OriginalName("METADATA")] Metadata = 1,
- ///
- /// READ gives event triggers access to all provided event fields including
- /// the metadata, attendees, and conference data.
- ///
- [pbr::OriginalName("READ")] Read = 3,
- ///
- /// WRITE gives event triggers access to the metadata of events and the
- /// ability to perform all actions, including adding attendees and setting
- /// conference data.
- ///
- [pbr::OriginalName("WRITE")] Write = 4,
- ///
- /// READ_WRITE gives event triggers access to all provided event fields
- /// including the metadata, attendees, and conference data and the ability to
- /// perform all actions.
- ///
- [pbr::OriginalName("READ_WRITE")] ReadWrite = 5,
- }
-
- }
- #endregion
-
- }
-
- ///
- /// Defines conference related values.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class ConferenceSolution : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConferenceSolution());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Calendar.CalendarAddonManifestReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ConferenceSolution() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ConferenceSolution(ConferenceSolution other) : this() {
- onCreateFunction_ = other.onCreateFunction_;
- id_ = other.id_;
- name_ = other.name_;
- logoUrl_ = other.logoUrl_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ConferenceSolution Clone() {
- return new ConferenceSolution(this);
- }
-
- /// Field number for the "on_create_function" field.
- public const int OnCreateFunctionFieldNumber = 1;
- private string onCreateFunction_ = "";
- ///
- /// Required. The endpoint to call when ConferenceData should be created.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string OnCreateFunction {
- get { return onCreateFunction_; }
- set {
- onCreateFunction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "id" field.
- public const int IdFieldNumber = 4;
- private string id_ = "";
- ///
- /// Required. IDs should be unique across ConferenceSolutions within one
- /// add-on, but this is not strictly enforced. It is up to the add-on developer
- /// to assign them uniquely, otherwise the wrong ConferenceSolution may be
- /// used when the add-on is triggered. While the developer may change the
- /// display name of an add-on, the ID should not be changed.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Id {
- get { return id_; }
- set {
- id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "name" field.
- public const int NameFieldNumber = 5;
- private string name_ = "";
- ///
- /// Required. The display name of the ConferenceSolution.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "logo_url" field.
- public const int LogoUrlFieldNumber = 6;
- private string logoUrl_ = "";
- ///
- /// Required. The URL for the logo image of the ConferenceSolution.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string LogoUrl {
- get { return logoUrl_; }
- set {
- logoUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as ConferenceSolution);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(ConferenceSolution other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (OnCreateFunction != other.OnCreateFunction) return false;
- if (Id != other.Id) return false;
- if (Name != other.Name) return false;
- if (LogoUrl != other.LogoUrl) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (OnCreateFunction.Length != 0) hash ^= OnCreateFunction.GetHashCode();
- if (Id.Length != 0) hash ^= Id.GetHashCode();
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (LogoUrl.Length != 0) hash ^= LogoUrl.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (OnCreateFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(OnCreateFunction);
- }
- if (Id.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(Id);
- }
- if (Name.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(Name);
- }
- if (LogoUrl.Length != 0) {
- output.WriteRawTag(50);
- output.WriteString(LogoUrl);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (OnCreateFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(OnCreateFunction);
- }
- if (Id.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(Id);
- }
- if (Name.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(Name);
- }
- if (LogoUrl.Length != 0) {
- output.WriteRawTag(50);
- output.WriteString(LogoUrl);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (OnCreateFunction.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(OnCreateFunction);
- }
- if (Id.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
- }
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (LogoUrl.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(LogoUrl);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(ConferenceSolution other) {
- if (other == null) {
- return;
- }
- if (other.OnCreateFunction.Length != 0) {
- OnCreateFunction = other.OnCreateFunction;
- }
- if (other.Id.Length != 0) {
- Id = other.Id;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.LogoUrl.Length != 0) {
- LogoUrl = other.LogoUrl;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- OnCreateFunction = input.ReadString();
- break;
- }
- case 34: {
- Id = input.ReadString();
- break;
- }
- case 42: {
- Name = input.ReadString();
- break;
- }
- case 50: {
- LogoUrl = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- OnCreateFunction = input.ReadString();
- break;
- }
- case 34: {
- Id = input.ReadString();
- break;
- }
- case 42: {
- Name = input.ReadString();
- break;
- }
- case 50: {
- LogoUrl = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// Common format for declaring a calendar add-on's triggers.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class CalendarExtensionPoint : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalendarExtensionPoint());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Calendar.CalendarAddonManifestReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CalendarExtensionPoint() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CalendarExtensionPoint(CalendarExtensionPoint other) : this() {
- runFunction_ = other.runFunction_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CalendarExtensionPoint Clone() {
- return new CalendarExtensionPoint(this);
- }
-
- /// Field number for the "run_function" field.
- public const int RunFunctionFieldNumber = 1;
- private string runFunction_ = "";
- ///
- /// Required. The endpoint to execute when this extension point is
- /// activated.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string RunFunction {
- get { return runFunction_; }
- set {
- runFunction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as CalendarExtensionPoint);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(CalendarExtensionPoint other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (RunFunction != other.RunFunction) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (RunFunction.Length != 0) hash ^= RunFunction.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (RunFunction.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(RunFunction);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(CalendarExtensionPoint other) {
- if (other == null) {
- return;
- }
- if (other.RunFunction.Length != 0) {
- RunFunction = other.RunFunction;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Docs/DocsAddonManifest.g.cs b/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Docs/DocsAddonManifest.g.cs
deleted file mode 100644
index 0abfad66995f..000000000000
--- a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Docs/DocsAddonManifest.g.cs
+++ /dev/null
@@ -1,508 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/apps/script/type/docs/docs_addon_manifest.proto
-//
-#pragma warning disable 1591, 0612, 3021, 8981
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Apps.Script.Type.Docs {
-
- /// Holder for reflection information generated from google/apps/script/type/docs/docs_addon_manifest.proto
- public static partial class DocsAddonManifestReflection {
-
- #region Descriptor
- /// File descriptor for google/apps/script/type/docs/docs_addon_manifest.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static DocsAddonManifestReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CjZnb29nbGUvYXBwcy9zY3JpcHQvdHlwZS9kb2NzL2RvY3NfYWRkb25fbWFu",
- "aWZlc3QucHJvdG8SHGdvb2dsZS5hcHBzLnNjcmlwdC50eXBlLmRvY3MaH2dv",
- "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aLWdvb2dsZS9hcHBzL3Nj",
- "cmlwdC90eXBlL2V4dGVuc2lvbl9wb2ludC5wcm90byK3AQoRRG9jc0FkZE9u",
- "TWFuaWZlc3QSSQoQaG9tZXBhZ2VfdHJpZ2dlchgBIAEoCzIvLmdvb2dsZS5h",
- "cHBzLnNjcmlwdC50eXBlLkhvbWVwYWdlRXh0ZW5zaW9uUG9pbnQSVwodb25f",
- "ZmlsZV9zY29wZV9ncmFudGVkX3RyaWdnZXIYAiABKAsyMC5nb29nbGUuYXBw",
- "cy5zY3JpcHQudHlwZS5kb2NzLkRvY3NFeHRlbnNpb25Qb2ludCIvChJEb2Nz",
- "RXh0ZW5zaW9uUG9pbnQSGQoMcnVuX2Z1bmN0aW9uGAEgASgJQgPgQQJC2gEK",
- "IGNvbS5nb29nbGUuYXBwcy5zY3JpcHQudHlwZS5kb2NzQhZEb2NzQWRkT25N",
- "YW5pZmVzdFByb3RvUAFaO2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv",
- "b2dsZWFwaXMvYXBwcy9zY3JpcHQvdHlwZS9kb2NzqgIcR29vZ2xlLkFwcHMu",
- "U2NyaXB0LlR5cGUuRG9jc8oCHEdvb2dsZVxBcHBzXFNjcmlwdFxUeXBlXERv",
- "Y3PqAiBHb29nbGU6OkFwcHM6OlNjcmlwdDo6VHlwZTo6RG9jc2IGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Apps.Script.Type.ExtensionPointReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Docs.DocsAddOnManifest), global::Google.Apps.Script.Type.Docs.DocsAddOnManifest.Parser, new[]{ "HomepageTrigger", "OnFileScopeGrantedTrigger" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Docs.DocsExtensionPoint), global::Google.Apps.Script.Type.Docs.DocsExtensionPoint.Parser, new[]{ "RunFunction" }, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Docs add-on manifest.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class DocsAddOnManifest : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DocsAddOnManifest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Docs.DocsAddonManifestReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DocsAddOnManifest() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DocsAddOnManifest(DocsAddOnManifest other) : this() {
- homepageTrigger_ = other.homepageTrigger_ != null ? other.homepageTrigger_.Clone() : null;
- onFileScopeGrantedTrigger_ = other.onFileScopeGrantedTrigger_ != null ? other.onFileScopeGrantedTrigger_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DocsAddOnManifest Clone() {
- return new DocsAddOnManifest(this);
- }
-
- /// Field number for the "homepage_trigger" field.
- public const int HomepageTriggerFieldNumber = 1;
- private global::Google.Apps.Script.Type.HomepageExtensionPoint homepageTrigger_;
- ///
- /// If present, this overrides the configuration from
- /// `addOns.common.homepageTrigger`.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.HomepageExtensionPoint HomepageTrigger {
- get { return homepageTrigger_; }
- set {
- homepageTrigger_ = value;
- }
- }
-
- /// Field number for the "on_file_scope_granted_trigger" field.
- public const int OnFileScopeGrantedTriggerFieldNumber = 2;
- private global::Google.Apps.Script.Type.Docs.DocsExtensionPoint onFileScopeGrantedTrigger_;
- ///
- /// Endpoint to execute when file scope authorization is granted
- /// for this document/user pair.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Docs.DocsExtensionPoint OnFileScopeGrantedTrigger {
- get { return onFileScopeGrantedTrigger_; }
- set {
- onFileScopeGrantedTrigger_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as DocsAddOnManifest);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(DocsAddOnManifest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(HomepageTrigger, other.HomepageTrigger)) return false;
- if (!object.Equals(OnFileScopeGrantedTrigger, other.OnFileScopeGrantedTrigger)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (homepageTrigger_ != null) hash ^= HomepageTrigger.GetHashCode();
- if (onFileScopeGrantedTrigger_ != null) hash ^= OnFileScopeGrantedTrigger.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (homepageTrigger_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(HomepageTrigger);
- }
- if (onFileScopeGrantedTrigger_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OnFileScopeGrantedTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (homepageTrigger_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(HomepageTrigger);
- }
- if (onFileScopeGrantedTrigger_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OnFileScopeGrantedTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (homepageTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(HomepageTrigger);
- }
- if (onFileScopeGrantedTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OnFileScopeGrantedTrigger);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(DocsAddOnManifest other) {
- if (other == null) {
- return;
- }
- if (other.homepageTrigger_ != null) {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- HomepageTrigger.MergeFrom(other.HomepageTrigger);
- }
- if (other.onFileScopeGrantedTrigger_ != null) {
- if (onFileScopeGrantedTrigger_ == null) {
- OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Docs.DocsExtensionPoint();
- }
- OnFileScopeGrantedTrigger.MergeFrom(other.OnFileScopeGrantedTrigger);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 18: {
- if (onFileScopeGrantedTrigger_ == null) {
- OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Docs.DocsExtensionPoint();
- }
- input.ReadMessage(OnFileScopeGrantedTrigger);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 18: {
- if (onFileScopeGrantedTrigger_ == null) {
- OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Docs.DocsExtensionPoint();
- }
- input.ReadMessage(OnFileScopeGrantedTrigger);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// Common format for declaring a Docs add-on's triggers.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class DocsExtensionPoint : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DocsExtensionPoint());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Docs.DocsAddonManifestReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DocsExtensionPoint() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DocsExtensionPoint(DocsExtensionPoint other) : this() {
- runFunction_ = other.runFunction_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DocsExtensionPoint Clone() {
- return new DocsExtensionPoint(this);
- }
-
- /// Field number for the "run_function" field.
- public const int RunFunctionFieldNumber = 1;
- private string runFunction_ = "";
- ///
- /// Required. The endpoint to execute when this extension point is activated.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string RunFunction {
- get { return runFunction_; }
- set {
- runFunction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as DocsExtensionPoint);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(DocsExtensionPoint other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (RunFunction != other.RunFunction) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (RunFunction.Length != 0) hash ^= RunFunction.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (RunFunction.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(RunFunction);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(DocsExtensionPoint other) {
- if (other == null) {
- return;
- }
- if (other.RunFunction.Length != 0) {
- RunFunction = other.RunFunction;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Drive/DriveAddonManifest.g.cs b/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Drive/DriveAddonManifest.g.cs
deleted file mode 100644
index a05e04a627f0..000000000000
--- a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Drive/DriveAddonManifest.g.cs
+++ /dev/null
@@ -1,510 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/apps/script/type/drive/drive_addon_manifest.proto
-//
-#pragma warning disable 1591, 0612, 3021, 8981
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Apps.Script.Type.Drive {
-
- /// Holder for reflection information generated from google/apps/script/type/drive/drive_addon_manifest.proto
- public static partial class DriveAddonManifestReflection {
-
- #region Descriptor
- /// File descriptor for google/apps/script/type/drive/drive_addon_manifest.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static DriveAddonManifestReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cjhnb29nbGUvYXBwcy9zY3JpcHQvdHlwZS9kcml2ZS9kcml2ZV9hZGRvbl9t",
- "YW5pZmVzdC5wcm90bxIdZ29vZ2xlLmFwcHMuc2NyaXB0LnR5cGUuZHJpdmUa",
- "LWdvb2dsZS9hcHBzL3NjcmlwdC90eXBlL2V4dGVuc2lvbl9wb2ludC5wcm90",
- "byK2AQoSRHJpdmVBZGRPbk1hbmlmZXN0EkkKEGhvbWVwYWdlX3RyaWdnZXIY",
- "ASABKAsyLy5nb29nbGUuYXBwcy5zY3JpcHQudHlwZS5Ib21lcGFnZUV4dGVu",
- "c2lvblBvaW50ElUKGW9uX2l0ZW1zX3NlbGVjdGVkX3RyaWdnZXIYAiABKAsy",
- "Mi5nb29nbGUuYXBwcy5zY3JpcHQudHlwZS5kcml2ZS5Ecml2ZUV4dGVuc2lv",
- "blBvaW50IisKE0RyaXZlRXh0ZW5zaW9uUG9pbnQSFAoMcnVuX2Z1bmN0aW9u",
- "GAEgASgJQuABCiFjb20uZ29vZ2xlLmFwcHMuc2NyaXB0LnR5cGUuZHJpdmVC",
- "F0RyaXZlQWRkT25NYW5pZmVzdFByb3RvUAFaPGdvb2dsZS5nb2xhbmcub3Jn",
- "L2dlbnByb3RvL2dvb2dsZWFwaXMvYXBwcy9zY3JpcHQvdHlwZS9kcml2ZaoC",
- "HUdvb2dsZS5BcHBzLlNjcmlwdC5UeXBlLkRyaXZlygIdR29vZ2xlXEFwcHNc",
- "U2NyaXB0XFR5cGVcRHJpdmXqAiFHb29nbGU6OkFwcHM6OlNjcmlwdDo6VHlw",
- "ZTo6RHJpdmViBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Apps.Script.Type.ExtensionPointReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Drive.DriveAddOnManifest), global::Google.Apps.Script.Type.Drive.DriveAddOnManifest.Parser, new[]{ "HomepageTrigger", "OnItemsSelectedTrigger" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Drive.DriveExtensionPoint), global::Google.Apps.Script.Type.Drive.DriveExtensionPoint.Parser, new[]{ "RunFunction" }, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Drive add-on manifest.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class DriveAddOnManifest : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DriveAddOnManifest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Drive.DriveAddonManifestReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DriveAddOnManifest() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DriveAddOnManifest(DriveAddOnManifest other) : this() {
- homepageTrigger_ = other.homepageTrigger_ != null ? other.homepageTrigger_.Clone() : null;
- onItemsSelectedTrigger_ = other.onItemsSelectedTrigger_ != null ? other.onItemsSelectedTrigger_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DriveAddOnManifest Clone() {
- return new DriveAddOnManifest(this);
- }
-
- /// Field number for the "homepage_trigger" field.
- public const int HomepageTriggerFieldNumber = 1;
- private global::Google.Apps.Script.Type.HomepageExtensionPoint homepageTrigger_;
- ///
- /// If present, this overrides the configuration from
- /// `addOns.common.homepageTrigger`.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.HomepageExtensionPoint HomepageTrigger {
- get { return homepageTrigger_; }
- set {
- homepageTrigger_ = value;
- }
- }
-
- /// Field number for the "on_items_selected_trigger" field.
- public const int OnItemsSelectedTriggerFieldNumber = 2;
- private global::Google.Apps.Script.Type.Drive.DriveExtensionPoint onItemsSelectedTrigger_;
- ///
- /// Corresponds to behvior that should execute when items are selected
- /// in relevant Drive view (e.g. the My Drive Doclist).
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Drive.DriveExtensionPoint OnItemsSelectedTrigger {
- get { return onItemsSelectedTrigger_; }
- set {
- onItemsSelectedTrigger_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as DriveAddOnManifest);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(DriveAddOnManifest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(HomepageTrigger, other.HomepageTrigger)) return false;
- if (!object.Equals(OnItemsSelectedTrigger, other.OnItemsSelectedTrigger)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (homepageTrigger_ != null) hash ^= HomepageTrigger.GetHashCode();
- if (onItemsSelectedTrigger_ != null) hash ^= OnItemsSelectedTrigger.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (homepageTrigger_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(HomepageTrigger);
- }
- if (onItemsSelectedTrigger_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OnItemsSelectedTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (homepageTrigger_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(HomepageTrigger);
- }
- if (onItemsSelectedTrigger_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OnItemsSelectedTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (homepageTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(HomepageTrigger);
- }
- if (onItemsSelectedTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OnItemsSelectedTrigger);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(DriveAddOnManifest other) {
- if (other == null) {
- return;
- }
- if (other.homepageTrigger_ != null) {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- HomepageTrigger.MergeFrom(other.HomepageTrigger);
- }
- if (other.onItemsSelectedTrigger_ != null) {
- if (onItemsSelectedTrigger_ == null) {
- OnItemsSelectedTrigger = new global::Google.Apps.Script.Type.Drive.DriveExtensionPoint();
- }
- OnItemsSelectedTrigger.MergeFrom(other.OnItemsSelectedTrigger);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 18: {
- if (onItemsSelectedTrigger_ == null) {
- OnItemsSelectedTrigger = new global::Google.Apps.Script.Type.Drive.DriveExtensionPoint();
- }
- input.ReadMessage(OnItemsSelectedTrigger);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 18: {
- if (onItemsSelectedTrigger_ == null) {
- OnItemsSelectedTrigger = new global::Google.Apps.Script.Type.Drive.DriveExtensionPoint();
- }
- input.ReadMessage(OnItemsSelectedTrigger);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// A generic extension point with common features, e.g. something that simply
- /// needs a corresponding run function to work.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class DriveExtensionPoint : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DriveExtensionPoint());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Drive.DriveAddonManifestReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DriveExtensionPoint() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DriveExtensionPoint(DriveExtensionPoint other) : this() {
- runFunction_ = other.runFunction_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DriveExtensionPoint Clone() {
- return new DriveExtensionPoint(this);
- }
-
- /// Field number for the "run_function" field.
- public const int RunFunctionFieldNumber = 1;
- private string runFunction_ = "";
- ///
- /// Required. The endpoint to execute when this extension point is
- /// activated.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string RunFunction {
- get { return runFunction_; }
- set {
- runFunction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as DriveExtensionPoint);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(DriveExtensionPoint other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (RunFunction != other.RunFunction) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (RunFunction.Length != 0) hash ^= RunFunction.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (RunFunction.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(RunFunction);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(DriveExtensionPoint other) {
- if (other == null) {
- return;
- }
- if (other.RunFunction.Length != 0) {
- RunFunction = other.RunFunction;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Gmail/GmailAddonManifest.g.cs b/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Gmail/GmailAddonManifest.g.cs
deleted file mode 100644
index 5b6015b3e1ac..000000000000
--- a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Gmail/GmailAddonManifest.g.cs
+++ /dev/null
@@ -1,1476 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/apps/script/type/gmail/gmail_addon_manifest.proto
-//
-#pragma warning disable 1591, 0612, 3021, 8981
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Apps.Script.Type.Gmail {
-
- /// Holder for reflection information generated from google/apps/script/type/gmail/gmail_addon_manifest.proto
- public static partial class GmailAddonManifestReflection {
-
- #region Descriptor
- /// File descriptor for google/apps/script/type/gmail/gmail_addon_manifest.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static GmailAddonManifestReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cjhnb29nbGUvYXBwcy9zY3JpcHQvdHlwZS9nbWFpbC9nbWFpbF9hZGRvbl9t",
- "YW5pZmVzdC5wcm90bxIdZ29vZ2xlLmFwcHMuc2NyaXB0LnR5cGUuZ21haWwa",
- "Lmdvb2dsZS9hcHBzL3NjcmlwdC90eXBlL2FkZG9uX3dpZGdldF9zZXQucHJv",
- "dG8aLWdvb2dsZS9hcHBzL3NjcmlwdC90eXBlL2V4dGVuc2lvbl9wb2ludC5w",
- "cm90byLnAgoSR21haWxBZGRPbk1hbmlmZXN0EkkKEGhvbWVwYWdlX3RyaWdn",
- "ZXIYDiABKAsyLy5nb29nbGUuYXBwcy5zY3JpcHQudHlwZS5Ib21lcGFnZUV4",
- "dGVuc2lvblBvaW50Ek0KE2NvbnRleHR1YWxfdHJpZ2dlcnMYAyADKAsyMC5n",
- "b29nbGUuYXBwcy5zY3JpcHQudHlwZS5nbWFpbC5Db250ZXh0dWFsVHJpZ2dl",
- "chJJChF1bml2ZXJzYWxfYWN0aW9ucxgEIAMoCzIuLmdvb2dsZS5hcHBzLnNj",
- "cmlwdC50eXBlLmdtYWlsLlVuaXZlcnNhbEFjdGlvbhJGCg9jb21wb3NlX3Ry",
- "aWdnZXIYDCABKAsyLS5nb29nbGUuYXBwcy5zY3JpcHQudHlwZS5nbWFpbC5D",
- "b21wb3NlVHJpZ2dlchIkChxhdXRob3JpemF0aW9uX2NoZWNrX2Z1bmN0aW9u",
- "GAcgASgJIlsKD1VuaXZlcnNhbEFjdGlvbhIMCgR0ZXh0GAEgASgJEhMKCW9w",
- "ZW5fbGluaxgCIAEoCUgAEhYKDHJ1bl9mdW5jdGlvbhgDIAEoCUgAQg0KC2Fj",
- "dGlvbl90eXBlItsBCg5Db21wb3NlVHJpZ2dlchJACgdhY3Rpb25zGAUgAygL",
- "Mi8uZ29vZ2xlLmFwcHMuc2NyaXB0LnR5cGUuTWVudUl0ZW1FeHRlbnNpb25Q",
- "b2ludBJPCgxkcmFmdF9hY2Nlc3MYBCABKA4yOS5nb29nbGUuYXBwcy5zY3Jp",
- "cHQudHlwZS5nbWFpbC5Db21wb3NlVHJpZ2dlci5EcmFmdEFjY2VzcyI2CgtE",
- "cmFmdEFjY2VzcxIPCgtVTlNQRUNJRklFRBAAEggKBE5PTkUQARIMCghNRVRB",
- "REFUQRACIokBChFDb250ZXh0dWFsVHJpZ2dlchJMCg11bmNvbmRpdGlvbmFs",
- "GAEgASgLMjMuZ29vZ2xlLmFwcHMuc2NyaXB0LnR5cGUuZ21haWwuVW5jb25k",
- "aXRpb25hbFRyaWdnZXJIABIbChNvbl90cmlnZ2VyX2Z1bmN0aW9uGAQgASgJ",
- "QgkKB3RyaWdnZXIiFgoUVW5jb25kaXRpb25hbFRyaWdnZXJC4AEKIWNvbS5n",
- "b29nbGUuYXBwcy5zY3JpcHQudHlwZS5nbWFpbEIXR21haWxBZGRPbk1hbmlm",
- "ZXN0UHJvdG9QAVo8Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl",
- "YXBpcy9hcHBzL3NjcmlwdC90eXBlL2dtYWlsqgIdR29vZ2xlLkFwcHMuU2Ny",
- "aXB0LlR5cGUuR21haWzKAh1Hb29nbGVcQXBwc1xTY3JpcHRcVHlwZVxHbWFp",
- "bOoCIUdvb2dsZTo6QXBwczo6U2NyaXB0OjpUeXBlOjpHbWFpbGIGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Apps.Script.Type.AddonWidgetSetReflection.Descriptor, global::Google.Apps.Script.Type.ExtensionPointReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Gmail.GmailAddOnManifest), global::Google.Apps.Script.Type.Gmail.GmailAddOnManifest.Parser, new[]{ "HomepageTrigger", "ContextualTriggers", "UniversalActions", "ComposeTrigger", "AuthorizationCheckFunction" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Gmail.UniversalAction), global::Google.Apps.Script.Type.Gmail.UniversalAction.Parser, new[]{ "Text", "OpenLink", "RunFunction" }, new[]{ "ActionType" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Gmail.ComposeTrigger), global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Parser, new[]{ "Actions", "DraftAccess" }, null, new[]{ typeof(global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess) }, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Gmail.ContextualTrigger), global::Google.Apps.Script.Type.Gmail.ContextualTrigger.Parser, new[]{ "Unconditional", "OnTriggerFunction" }, new[]{ "Trigger" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Gmail.UnconditionalTrigger), global::Google.Apps.Script.Type.Gmail.UnconditionalTrigger.Parser, null, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Properties customizing the appearance and execution of a Gmail add-on.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class GmailAddOnManifest : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GmailAddOnManifest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Gmail.GmailAddonManifestReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public GmailAddOnManifest() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public GmailAddOnManifest(GmailAddOnManifest other) : this() {
- homepageTrigger_ = other.homepageTrigger_ != null ? other.homepageTrigger_.Clone() : null;
- contextualTriggers_ = other.contextualTriggers_.Clone();
- universalActions_ = other.universalActions_.Clone();
- composeTrigger_ = other.composeTrigger_ != null ? other.composeTrigger_.Clone() : null;
- authorizationCheckFunction_ = other.authorizationCheckFunction_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public GmailAddOnManifest Clone() {
- return new GmailAddOnManifest(this);
- }
-
- /// Field number for the "homepage_trigger" field.
- public const int HomepageTriggerFieldNumber = 14;
- private global::Google.Apps.Script.Type.HomepageExtensionPoint homepageTrigger_;
- ///
- /// Defines an endpoint that will be executed in contexts that don't
- /// match a declared contextual trigger. Any cards generated by this function
- /// will always be available to the user, but may be eclipsed by contextual
- /// content when this add-on declares more targeted triggers.
- ///
- /// If present, this overrides the configuration from
- /// `addOns.common.homepageTrigger`.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.HomepageExtensionPoint HomepageTrigger {
- get { return homepageTrigger_; }
- set {
- homepageTrigger_ = value;
- }
- }
-
- /// Field number for the "contextual_triggers" field.
- public const int ContextualTriggersFieldNumber = 3;
- private static readonly pb::FieldCodec _repeated_contextualTriggers_codec
- = pb::FieldCodec.ForMessage(26, global::Google.Apps.Script.Type.Gmail.ContextualTrigger.Parser);
- private readonly pbc::RepeatedField contextualTriggers_ = new pbc::RepeatedField();
- ///
- /// Defines the set of conditions that trigger the add-on.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField ContextualTriggers {
- get { return contextualTriggers_; }
- }
-
- /// Field number for the "universal_actions" field.
- public const int UniversalActionsFieldNumber = 4;
- private static readonly pb::FieldCodec _repeated_universalActions_codec
- = pb::FieldCodec.ForMessage(34, global::Google.Apps.Script.Type.Gmail.UniversalAction.Parser);
- private readonly pbc::RepeatedField universalActions_ = new pbc::RepeatedField();
- ///
- /// Defines set of [universal
- /// actions](/gmail/add-ons/how-tos/universal-actions) for the add-on. The user
- /// triggers universal actions from the add-on toolbar menu.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField UniversalActions {
- get { return universalActions_; }
- }
-
- /// Field number for the "compose_trigger" field.
- public const int ComposeTriggerFieldNumber = 12;
- private global::Google.Apps.Script.Type.Gmail.ComposeTrigger composeTrigger_;
- ///
- /// Defines the compose time trigger for a compose time add-on. This is the
- /// trigger that causes an add-on to take action when the user is composing an
- /// email.
- /// All compose time addons are required to have the
- /// gmail.addons.current.action.compose scope even though it might not edit the
- /// draft.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Gmail.ComposeTrigger ComposeTrigger {
- get { return composeTrigger_; }
- set {
- composeTrigger_ = value;
- }
- }
-
- /// Field number for the "authorization_check_function" field.
- public const int AuthorizationCheckFunctionFieldNumber = 7;
- private string authorizationCheckFunction_ = "";
- ///
- /// The name of an endpoint that verifies that the add-on has
- /// all the required third-party authorizations, by probing the third-party
- /// APIs. If the probe fails, the function should throw an exception to
- /// initiate the authorization flow. This function is called before each
- /// invocation of the add-on, in order to ensure a smooth user experience.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string AuthorizationCheckFunction {
- get { return authorizationCheckFunction_; }
- set {
- authorizationCheckFunction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as GmailAddOnManifest);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(GmailAddOnManifest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(HomepageTrigger, other.HomepageTrigger)) return false;
- if(!contextualTriggers_.Equals(other.contextualTriggers_)) return false;
- if(!universalActions_.Equals(other.universalActions_)) return false;
- if (!object.Equals(ComposeTrigger, other.ComposeTrigger)) return false;
- if (AuthorizationCheckFunction != other.AuthorizationCheckFunction) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (homepageTrigger_ != null) hash ^= HomepageTrigger.GetHashCode();
- hash ^= contextualTriggers_.GetHashCode();
- hash ^= universalActions_.GetHashCode();
- if (composeTrigger_ != null) hash ^= ComposeTrigger.GetHashCode();
- if (AuthorizationCheckFunction.Length != 0) hash ^= AuthorizationCheckFunction.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- contextualTriggers_.WriteTo(output, _repeated_contextualTriggers_codec);
- universalActions_.WriteTo(output, _repeated_universalActions_codec);
- if (AuthorizationCheckFunction.Length != 0) {
- output.WriteRawTag(58);
- output.WriteString(AuthorizationCheckFunction);
- }
- if (composeTrigger_ != null) {
- output.WriteRawTag(98);
- output.WriteMessage(ComposeTrigger);
- }
- if (homepageTrigger_ != null) {
- output.WriteRawTag(114);
- output.WriteMessage(HomepageTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- contextualTriggers_.WriteTo(ref output, _repeated_contextualTriggers_codec);
- universalActions_.WriteTo(ref output, _repeated_universalActions_codec);
- if (AuthorizationCheckFunction.Length != 0) {
- output.WriteRawTag(58);
- output.WriteString(AuthorizationCheckFunction);
- }
- if (composeTrigger_ != null) {
- output.WriteRawTag(98);
- output.WriteMessage(ComposeTrigger);
- }
- if (homepageTrigger_ != null) {
- output.WriteRawTag(114);
- output.WriteMessage(HomepageTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (homepageTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(HomepageTrigger);
- }
- size += contextualTriggers_.CalculateSize(_repeated_contextualTriggers_codec);
- size += universalActions_.CalculateSize(_repeated_universalActions_codec);
- if (composeTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComposeTrigger);
- }
- if (AuthorizationCheckFunction.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(AuthorizationCheckFunction);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(GmailAddOnManifest other) {
- if (other == null) {
- return;
- }
- if (other.homepageTrigger_ != null) {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- HomepageTrigger.MergeFrom(other.HomepageTrigger);
- }
- contextualTriggers_.Add(other.contextualTriggers_);
- universalActions_.Add(other.universalActions_);
- if (other.composeTrigger_ != null) {
- if (composeTrigger_ == null) {
- ComposeTrigger = new global::Google.Apps.Script.Type.Gmail.ComposeTrigger();
- }
- ComposeTrigger.MergeFrom(other.ComposeTrigger);
- }
- if (other.AuthorizationCheckFunction.Length != 0) {
- AuthorizationCheckFunction = other.AuthorizationCheckFunction;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 26: {
- contextualTriggers_.AddEntriesFrom(input, _repeated_contextualTriggers_codec);
- break;
- }
- case 34: {
- universalActions_.AddEntriesFrom(input, _repeated_universalActions_codec);
- break;
- }
- case 58: {
- AuthorizationCheckFunction = input.ReadString();
- break;
- }
- case 98: {
- if (composeTrigger_ == null) {
- ComposeTrigger = new global::Google.Apps.Script.Type.Gmail.ComposeTrigger();
- }
- input.ReadMessage(ComposeTrigger);
- break;
- }
- case 114: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 26: {
- contextualTriggers_.AddEntriesFrom(ref input, _repeated_contextualTriggers_codec);
- break;
- }
- case 34: {
- universalActions_.AddEntriesFrom(ref input, _repeated_universalActions_codec);
- break;
- }
- case 58: {
- AuthorizationCheckFunction = input.ReadString();
- break;
- }
- case 98: {
- if (composeTrigger_ == null) {
- ComposeTrigger = new global::Google.Apps.Script.Type.Gmail.ComposeTrigger();
- }
- input.ReadMessage(ComposeTrigger);
- break;
- }
- case 114: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// An action that is always available in the add-on toolbar menu regardless of
- /// message context.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class UniversalAction : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UniversalAction());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Gmail.GmailAddonManifestReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public UniversalAction() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public UniversalAction(UniversalAction other) : this() {
- text_ = other.text_;
- switch (other.ActionTypeCase) {
- case ActionTypeOneofCase.OpenLink:
- OpenLink = other.OpenLink;
- break;
- case ActionTypeOneofCase.RunFunction:
- RunFunction = other.RunFunction;
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public UniversalAction Clone() {
- return new UniversalAction(this);
- }
-
- /// Field number for the "text" field.
- public const int TextFieldNumber = 1;
- private string text_ = "";
- ///
- /// Required. User-visible text describing the action, for example, "Add a new
- /// contact."
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Text {
- get { return text_; }
- set {
- text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "open_link" field.
- public const int OpenLinkFieldNumber = 2;
- ///
- /// A link that is opened by Gmail when the user triggers the action.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string OpenLink {
- get { return HasOpenLink ? (string) actionType_ : ""; }
- set {
- actionType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- actionTypeCase_ = ActionTypeOneofCase.OpenLink;
- }
- }
- /// Gets whether the "open_link" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasOpenLink {
- get { return actionTypeCase_ == ActionTypeOneofCase.OpenLink; }
- }
- /// Clears the value of the oneof if it's currently set to "open_link"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearOpenLink() {
- if (HasOpenLink) {
- ClearActionType();
- }
- }
-
- /// Field number for the "run_function" field.
- public const int RunFunctionFieldNumber = 3;
- ///
- /// An endpoint that is called when the user triggers the
- /// action. See the [universal actions
- /// guide](/gmail/add-ons/how-tos/universal-actions) for details.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string RunFunction {
- get { return HasRunFunction ? (string) actionType_ : ""; }
- set {
- actionType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- actionTypeCase_ = ActionTypeOneofCase.RunFunction;
- }
- }
- /// Gets whether the "run_function" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasRunFunction {
- get { return actionTypeCase_ == ActionTypeOneofCase.RunFunction; }
- }
- /// Clears the value of the oneof if it's currently set to "run_function"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearRunFunction() {
- if (HasRunFunction) {
- ClearActionType();
- }
- }
-
- private object actionType_;
- /// Enum of possible cases for the "action_type" oneof.
- public enum ActionTypeOneofCase {
- None = 0,
- OpenLink = 2,
- RunFunction = 3,
- }
- private ActionTypeOneofCase actionTypeCase_ = ActionTypeOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ActionTypeOneofCase ActionTypeCase {
- get { return actionTypeCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearActionType() {
- actionTypeCase_ = ActionTypeOneofCase.None;
- actionType_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as UniversalAction);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(UniversalAction other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Text != other.Text) return false;
- if (OpenLink != other.OpenLink) return false;
- if (RunFunction != other.RunFunction) return false;
- if (ActionTypeCase != other.ActionTypeCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Text.Length != 0) hash ^= Text.GetHashCode();
- if (HasOpenLink) hash ^= OpenLink.GetHashCode();
- if (HasRunFunction) hash ^= RunFunction.GetHashCode();
- hash ^= (int) actionTypeCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Text.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Text);
- }
- if (HasOpenLink) {
- output.WriteRawTag(18);
- output.WriteString(OpenLink);
- }
- if (HasRunFunction) {
- output.WriteRawTag(26);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Text.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Text);
- }
- if (HasOpenLink) {
- output.WriteRawTag(18);
- output.WriteString(OpenLink);
- }
- if (HasRunFunction) {
- output.WriteRawTag(26);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Text.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
- }
- if (HasOpenLink) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(OpenLink);
- }
- if (HasRunFunction) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(RunFunction);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(UniversalAction other) {
- if (other == null) {
- return;
- }
- if (other.Text.Length != 0) {
- Text = other.Text;
- }
- switch (other.ActionTypeCase) {
- case ActionTypeOneofCase.OpenLink:
- OpenLink = other.OpenLink;
- break;
- case ActionTypeOneofCase.RunFunction:
- RunFunction = other.RunFunction;
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Text = input.ReadString();
- break;
- }
- case 18: {
- OpenLink = input.ReadString();
- break;
- }
- case 26: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- Text = input.ReadString();
- break;
- }
- case 18: {
- OpenLink = input.ReadString();
- break;
- }
- case 26: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// A trigger that activates when user is composing an email.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class ComposeTrigger : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComposeTrigger());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Gmail.GmailAddonManifestReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ComposeTrigger() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ComposeTrigger(ComposeTrigger other) : this() {
- actions_ = other.actions_.Clone();
- draftAccess_ = other.draftAccess_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ComposeTrigger Clone() {
- return new ComposeTrigger(this);
- }
-
- /// Field number for the "actions" field.
- public const int ActionsFieldNumber = 5;
- private static readonly pb::FieldCodec _repeated_actions_codec
- = pb::FieldCodec.ForMessage(42, global::Google.Apps.Script.Type.MenuItemExtensionPoint.Parser);
- private readonly pbc::RepeatedField actions_ = new pbc::RepeatedField();
- ///
- /// Defines the set of actions for compose time add-on. These are actions
- /// that user can trigger on a compose time addon.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField Actions {
- get { return actions_; }
- }
-
- /// Field number for the "draft_access" field.
- public const int DraftAccessFieldNumber = 4;
- private global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess draftAccess_ = global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess.Unspecified;
- ///
- /// Define the level of data access when a compose time addon is triggered.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess DraftAccess {
- get { return draftAccess_; }
- set {
- draftAccess_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as ComposeTrigger);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(ComposeTrigger other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!actions_.Equals(other.actions_)) return false;
- if (DraftAccess != other.DraftAccess) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= actions_.GetHashCode();
- if (DraftAccess != global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess.Unspecified) hash ^= DraftAccess.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (DraftAccess != global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess.Unspecified) {
- output.WriteRawTag(32);
- output.WriteEnum((int) DraftAccess);
- }
- actions_.WriteTo(output, _repeated_actions_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (DraftAccess != global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess.Unspecified) {
- output.WriteRawTag(32);
- output.WriteEnum((int) DraftAccess);
- }
- actions_.WriteTo(ref output, _repeated_actions_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += actions_.CalculateSize(_repeated_actions_codec);
- if (DraftAccess != global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess.Unspecified) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DraftAccess);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(ComposeTrigger other) {
- if (other == null) {
- return;
- }
- actions_.Add(other.actions_);
- if (other.DraftAccess != global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess.Unspecified) {
- DraftAccess = other.DraftAccess;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 32: {
- DraftAccess = (global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess) input.ReadEnum();
- break;
- }
- case 42: {
- actions_.AddEntriesFrom(input, _repeated_actions_codec);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 32: {
- DraftAccess = (global::Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess) input.ReadEnum();
- break;
- }
- case 42: {
- actions_.AddEntriesFrom(ref input, _repeated_actions_codec);
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// Container for nested types declared in the ComposeTrigger message type.
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- ///
- /// An enum defining the level of data access this compose trigger requires.
- ///
- public enum DraftAccess {
- ///
- /// Default value when nothing is set for DraftAccess.
- ///
- [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
- ///
- /// NONE means compose trigger won't be able to access any data of the draft
- /// when a compose addon is triggered.
- ///
- [pbr::OriginalName("NONE")] None = 1,
- ///
- /// METADATA gives compose trigger the permission to access the metadata of
- /// the draft when a compose addon is triggered. This includes the audience
- /// list (To/cc list) of a draft message.
- ///
- [pbr::OriginalName("METADATA")] Metadata = 2,
- }
-
- }
- #endregion
-
- }
-
- ///
- /// Defines a trigger that fires when the open email meets a specific criteria.
- /// When the trigger fires, it executes a specific endpoint, usually
- /// in order to create new cards and update the UI.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class ContextualTrigger : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContextualTrigger());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Gmail.GmailAddonManifestReflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ContextualTrigger() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ContextualTrigger(ContextualTrigger other) : this() {
- onTriggerFunction_ = other.onTriggerFunction_;
- switch (other.TriggerCase) {
- case TriggerOneofCase.Unconditional:
- Unconditional = other.Unconditional.Clone();
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ContextualTrigger Clone() {
- return new ContextualTrigger(this);
- }
-
- /// Field number for the "unconditional" field.
- public const int UnconditionalFieldNumber = 1;
- ///
- /// UnconditionalTriggers are executed when any mail message is opened.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Gmail.UnconditionalTrigger Unconditional {
- get { return triggerCase_ == TriggerOneofCase.Unconditional ? (global::Google.Apps.Script.Type.Gmail.UnconditionalTrigger) trigger_ : null; }
- set {
- trigger_ = value;
- triggerCase_ = value == null ? TriggerOneofCase.None : TriggerOneofCase.Unconditional;
- }
- }
-
- /// Field number for the "on_trigger_function" field.
- public const int OnTriggerFunctionFieldNumber = 4;
- private string onTriggerFunction_ = "";
- ///
- /// Required. The name of the endpoint to call when a message matches the
- /// trigger.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string OnTriggerFunction {
- get { return onTriggerFunction_; }
- set {
- onTriggerFunction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- private object trigger_;
- /// Enum of possible cases for the "trigger" oneof.
- public enum TriggerOneofCase {
- None = 0,
- Unconditional = 1,
- }
- private TriggerOneofCase triggerCase_ = TriggerOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TriggerOneofCase TriggerCase {
- get { return triggerCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearTrigger() {
- triggerCase_ = TriggerOneofCase.None;
- trigger_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as ContextualTrigger);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(ContextualTrigger other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Unconditional, other.Unconditional)) return false;
- if (OnTriggerFunction != other.OnTriggerFunction) return false;
- if (TriggerCase != other.TriggerCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (triggerCase_ == TriggerOneofCase.Unconditional) hash ^= Unconditional.GetHashCode();
- if (OnTriggerFunction.Length != 0) hash ^= OnTriggerFunction.GetHashCode();
- hash ^= (int) triggerCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (triggerCase_ == TriggerOneofCase.Unconditional) {
- output.WriteRawTag(10);
- output.WriteMessage(Unconditional);
- }
- if (OnTriggerFunction.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(OnTriggerFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (triggerCase_ == TriggerOneofCase.Unconditional) {
- output.WriteRawTag(10);
- output.WriteMessage(Unconditional);
- }
- if (OnTriggerFunction.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(OnTriggerFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (triggerCase_ == TriggerOneofCase.Unconditional) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unconditional);
- }
- if (OnTriggerFunction.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(OnTriggerFunction);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(ContextualTrigger other) {
- if (other == null) {
- return;
- }
- if (other.OnTriggerFunction.Length != 0) {
- OnTriggerFunction = other.OnTriggerFunction;
- }
- switch (other.TriggerCase) {
- case TriggerOneofCase.Unconditional:
- if (Unconditional == null) {
- Unconditional = new global::Google.Apps.Script.Type.Gmail.UnconditionalTrigger();
- }
- Unconditional.MergeFrom(other.Unconditional);
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- global::Google.Apps.Script.Type.Gmail.UnconditionalTrigger subBuilder = new global::Google.Apps.Script.Type.Gmail.UnconditionalTrigger();
- if (triggerCase_ == TriggerOneofCase.Unconditional) {
- subBuilder.MergeFrom(Unconditional);
- }
- input.ReadMessage(subBuilder);
- Unconditional = subBuilder;
- break;
- }
- case 34: {
- OnTriggerFunction = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- global::Google.Apps.Script.Type.Gmail.UnconditionalTrigger subBuilder = new global::Google.Apps.Script.Type.Gmail.UnconditionalTrigger();
- if (triggerCase_ == TriggerOneofCase.Unconditional) {
- subBuilder.MergeFrom(Unconditional);
- }
- input.ReadMessage(subBuilder);
- Unconditional = subBuilder;
- break;
- }
- case 34: {
- OnTriggerFunction = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// A trigger that fires when any email message is opened.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class UnconditionalTrigger : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnconditionalTrigger());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Gmail.GmailAddonManifestReflection.Descriptor.MessageTypes[4]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public UnconditionalTrigger() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public UnconditionalTrigger(UnconditionalTrigger other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public UnconditionalTrigger Clone() {
- return new UnconditionalTrigger(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as UnconditionalTrigger);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(UnconditionalTrigger other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(UnconditionalTrigger other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- }
- }
- }
- #endif
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/ScriptManifest.g.cs b/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/ScriptManifest.g.cs
index 3ef7322a26d7..bfa8796b88bd 100644
--- a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/ScriptManifest.g.cs
+++ b/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/ScriptManifest.g.cs
@@ -70,7 +70,7 @@ public enum HttpAuthorizationHeader {
///
[pbr::OriginalName("HTTP_AUTHORIZATION_HEADER_UNSPECIFIED")] Unspecified = 0,
///
- /// Send an ID token for the project-specific Google Workspace Add-ons system
+ /// Send an ID token for the project-specific Google Workspace add-ons system
/// service account (default)
///
[pbr::OriginalName("SYSTEM_ID_TOKEN")] SystemIdToken = 1,
diff --git a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Sheets/SheetsAddonManifest.g.cs b/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Sheets/SheetsAddonManifest.g.cs
deleted file mode 100644
index eb933f9f83dd..000000000000
--- a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Sheets/SheetsAddonManifest.g.cs
+++ /dev/null
@@ -1,509 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/apps/script/type/sheets/sheets_addon_manifest.proto
-//
-#pragma warning disable 1591, 0612, 3021, 8981
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Apps.Script.Type.Sheets {
-
- /// Holder for reflection information generated from google/apps/script/type/sheets/sheets_addon_manifest.proto
- public static partial class SheetsAddonManifestReflection {
-
- #region Descriptor
- /// File descriptor for google/apps/script/type/sheets/sheets_addon_manifest.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static SheetsAddonManifestReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cjpnb29nbGUvYXBwcy9zY3JpcHQvdHlwZS9zaGVldHMvc2hlZXRzX2FkZG9u",
- "X21hbmlmZXN0LnByb3RvEh5nb29nbGUuYXBwcy5zY3JpcHQudHlwZS5zaGVl",
- "dHMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aLWdvb2dsZS9h",
- "cHBzL3NjcmlwdC90eXBlL2V4dGVuc2lvbl9wb2ludC5wcm90byK9AQoTU2hl",
- "ZXRzQWRkT25NYW5pZmVzdBJJChBob21lcGFnZV90cmlnZ2VyGAMgASgLMi8u",
- "Z29vZ2xlLmFwcHMuc2NyaXB0LnR5cGUuSG9tZXBhZ2VFeHRlbnNpb25Qb2lu",
- "dBJbCh1vbl9maWxlX3Njb3BlX2dyYW50ZWRfdHJpZ2dlchgFIAEoCzI0Lmdv",
- "b2dsZS5hcHBzLnNjcmlwdC50eXBlLnNoZWV0cy5TaGVldHNFeHRlbnNpb25Q",
- "b2ludCIxChRTaGVldHNFeHRlbnNpb25Qb2ludBIZCgxydW5fZnVuY3Rpb24Y",
- "ASABKAlCA+BBAkLmAQoiY29tLmdvb2dsZS5hcHBzLnNjcmlwdC50eXBlLnNo",
- "ZWV0c0IYU2hlZXRzQWRkT25NYW5pZmVzdFByb3RvUAFaPWdvb2dsZS5nb2xh",
- "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBwcy9zY3JpcHQvdHlwZS9z",
- "aGVldHOqAh5Hb29nbGUuQXBwcy5TY3JpcHQuVHlwZS5TaGVldHPKAh5Hb29n",
- "bGVcQXBwc1xTY3JpcHRcVHlwZVxTaGVldHPqAiJHb29nbGU6OkFwcHM6OlNj",
- "cmlwdDo6VHlwZTo6U2hlZXRzYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Apps.Script.Type.ExtensionPointReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Sheets.SheetsAddOnManifest), global::Google.Apps.Script.Type.Sheets.SheetsAddOnManifest.Parser, new[]{ "HomepageTrigger", "OnFileScopeGrantedTrigger" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Sheets.SheetsExtensionPoint), global::Google.Apps.Script.Type.Sheets.SheetsExtensionPoint.Parser, new[]{ "RunFunction" }, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Sheets add-on manifest.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class SheetsAddOnManifest : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SheetsAddOnManifest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Sheets.SheetsAddonManifestReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SheetsAddOnManifest() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SheetsAddOnManifest(SheetsAddOnManifest other) : this() {
- homepageTrigger_ = other.homepageTrigger_ != null ? other.homepageTrigger_.Clone() : null;
- onFileScopeGrantedTrigger_ = other.onFileScopeGrantedTrigger_ != null ? other.onFileScopeGrantedTrigger_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SheetsAddOnManifest Clone() {
- return new SheetsAddOnManifest(this);
- }
-
- /// Field number for the "homepage_trigger" field.
- public const int HomepageTriggerFieldNumber = 3;
- private global::Google.Apps.Script.Type.HomepageExtensionPoint homepageTrigger_;
- ///
- /// If present, this overrides the configuration from
- /// `addOns.common.homepageTrigger`.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.HomepageExtensionPoint HomepageTrigger {
- get { return homepageTrigger_; }
- set {
- homepageTrigger_ = value;
- }
- }
-
- /// Field number for the "on_file_scope_granted_trigger" field.
- public const int OnFileScopeGrantedTriggerFieldNumber = 5;
- private global::Google.Apps.Script.Type.Sheets.SheetsExtensionPoint onFileScopeGrantedTrigger_;
- ///
- /// Endpoint to execute when file scope authorization is granted
- /// for this document/user pair.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Sheets.SheetsExtensionPoint OnFileScopeGrantedTrigger {
- get { return onFileScopeGrantedTrigger_; }
- set {
- onFileScopeGrantedTrigger_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as SheetsAddOnManifest);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(SheetsAddOnManifest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(HomepageTrigger, other.HomepageTrigger)) return false;
- if (!object.Equals(OnFileScopeGrantedTrigger, other.OnFileScopeGrantedTrigger)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (homepageTrigger_ != null) hash ^= HomepageTrigger.GetHashCode();
- if (onFileScopeGrantedTrigger_ != null) hash ^= OnFileScopeGrantedTrigger.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (homepageTrigger_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(HomepageTrigger);
- }
- if (onFileScopeGrantedTrigger_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(OnFileScopeGrantedTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (homepageTrigger_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(HomepageTrigger);
- }
- if (onFileScopeGrantedTrigger_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(OnFileScopeGrantedTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (homepageTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(HomepageTrigger);
- }
- if (onFileScopeGrantedTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OnFileScopeGrantedTrigger);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(SheetsAddOnManifest other) {
- if (other == null) {
- return;
- }
- if (other.homepageTrigger_ != null) {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- HomepageTrigger.MergeFrom(other.HomepageTrigger);
- }
- if (other.onFileScopeGrantedTrigger_ != null) {
- if (onFileScopeGrantedTrigger_ == null) {
- OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Sheets.SheetsExtensionPoint();
- }
- OnFileScopeGrantedTrigger.MergeFrom(other.OnFileScopeGrantedTrigger);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 26: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 42: {
- if (onFileScopeGrantedTrigger_ == null) {
- OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Sheets.SheetsExtensionPoint();
- }
- input.ReadMessage(OnFileScopeGrantedTrigger);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 26: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 42: {
- if (onFileScopeGrantedTrigger_ == null) {
- OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Sheets.SheetsExtensionPoint();
- }
- input.ReadMessage(OnFileScopeGrantedTrigger);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// Common format for declaring a Sheets add-on's triggers.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class SheetsExtensionPoint : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SheetsExtensionPoint());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Sheets.SheetsAddonManifestReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SheetsExtensionPoint() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SheetsExtensionPoint(SheetsExtensionPoint other) : this() {
- runFunction_ = other.runFunction_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SheetsExtensionPoint Clone() {
- return new SheetsExtensionPoint(this);
- }
-
- /// Field number for the "run_function" field.
- public const int RunFunctionFieldNumber = 1;
- private string runFunction_ = "";
- ///
- /// Required. The endpoint to execute when this extension point is activated.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string RunFunction {
- get { return runFunction_; }
- set {
- runFunction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as SheetsExtensionPoint);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(SheetsExtensionPoint other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (RunFunction != other.RunFunction) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (RunFunction.Length != 0) hash ^= RunFunction.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (RunFunction.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(RunFunction);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(SheetsExtensionPoint other) {
- if (other == null) {
- return;
- }
- if (other.RunFunction.Length != 0) {
- RunFunction = other.RunFunction;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Slides/SlidesAddonManifest.g.cs b/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Slides/SlidesAddonManifest.g.cs
deleted file mode 100644
index d6562c37ab37..000000000000
--- a/apis/Google.Apps.Script.Type/Google.Apps.Script.Type/Slides/SlidesAddonManifest.g.cs
+++ /dev/null
@@ -1,509 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/apps/script/type/slides/slides_addon_manifest.proto
-//
-#pragma warning disable 1591, 0612, 3021, 8981
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Apps.Script.Type.Slides {
-
- /// Holder for reflection information generated from google/apps/script/type/slides/slides_addon_manifest.proto
- public static partial class SlidesAddonManifestReflection {
-
- #region Descriptor
- /// File descriptor for google/apps/script/type/slides/slides_addon_manifest.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static SlidesAddonManifestReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cjpnb29nbGUvYXBwcy9zY3JpcHQvdHlwZS9zbGlkZXMvc2xpZGVzX2FkZG9u",
- "X21hbmlmZXN0LnByb3RvEh5nb29nbGUuYXBwcy5zY3JpcHQudHlwZS5zbGlk",
- "ZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aLWdvb2dsZS9h",
- "cHBzL3NjcmlwdC90eXBlL2V4dGVuc2lvbl9wb2ludC5wcm90byK9AQoTU2xp",
- "ZGVzQWRkT25NYW5pZmVzdBJJChBob21lcGFnZV90cmlnZ2VyGAEgASgLMi8u",
- "Z29vZ2xlLmFwcHMuc2NyaXB0LnR5cGUuSG9tZXBhZ2VFeHRlbnNpb25Qb2lu",
- "dBJbCh1vbl9maWxlX3Njb3BlX2dyYW50ZWRfdHJpZ2dlchgCIAEoCzI0Lmdv",
- "b2dsZS5hcHBzLnNjcmlwdC50eXBlLnNsaWRlcy5TbGlkZXNFeHRlbnNpb25Q",
- "b2ludCIxChRTbGlkZXNFeHRlbnNpb25Qb2ludBIZCgxydW5fZnVuY3Rpb24Y",
- "ASABKAlCA+BBAkLmAQoiY29tLmdvb2dsZS5hcHBzLnNjcmlwdC50eXBlLnNs",
- "aWRlc0IYU2xpZGVzQWRkT25NYW5pZmVzdFByb3RvUAFaPWdvb2dsZS5nb2xh",
- "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBwcy9zY3JpcHQvdHlwZS9z",
- "bGlkZXOqAh5Hb29nbGUuQXBwcy5TY3JpcHQuVHlwZS5TbGlkZXPKAh5Hb29n",
- "bGVcQXBwc1xTY3JpcHRcVHlwZVxTbGlkZXPqAiJHb29nbGU6OkFwcHM6OlNj",
- "cmlwdDo6VHlwZTo6U2xpZGVzYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Apps.Script.Type.ExtensionPointReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Slides.SlidesAddOnManifest), global::Google.Apps.Script.Type.Slides.SlidesAddOnManifest.Parser, new[]{ "HomepageTrigger", "OnFileScopeGrantedTrigger" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.Slides.SlidesExtensionPoint), global::Google.Apps.Script.Type.Slides.SlidesExtensionPoint.Parser, new[]{ "RunFunction" }, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Slides add-on manifest.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class SlidesAddOnManifest : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SlidesAddOnManifest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Slides.SlidesAddonManifestReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SlidesAddOnManifest() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SlidesAddOnManifest(SlidesAddOnManifest other) : this() {
- homepageTrigger_ = other.homepageTrigger_ != null ? other.homepageTrigger_.Clone() : null;
- onFileScopeGrantedTrigger_ = other.onFileScopeGrantedTrigger_ != null ? other.onFileScopeGrantedTrigger_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SlidesAddOnManifest Clone() {
- return new SlidesAddOnManifest(this);
- }
-
- /// Field number for the "homepage_trigger" field.
- public const int HomepageTriggerFieldNumber = 1;
- private global::Google.Apps.Script.Type.HomepageExtensionPoint homepageTrigger_;
- ///
- /// If present, this overrides the configuration from
- /// `addOns.common.homepageTrigger`.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.HomepageExtensionPoint HomepageTrigger {
- get { return homepageTrigger_; }
- set {
- homepageTrigger_ = value;
- }
- }
-
- /// Field number for the "on_file_scope_granted_trigger" field.
- public const int OnFileScopeGrantedTriggerFieldNumber = 2;
- private global::Google.Apps.Script.Type.Slides.SlidesExtensionPoint onFileScopeGrantedTrigger_;
- ///
- /// Endpoint to execute when file scope authorization is granted
- /// for this document/user pair.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Apps.Script.Type.Slides.SlidesExtensionPoint OnFileScopeGrantedTrigger {
- get { return onFileScopeGrantedTrigger_; }
- set {
- onFileScopeGrantedTrigger_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as SlidesAddOnManifest);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(SlidesAddOnManifest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(HomepageTrigger, other.HomepageTrigger)) return false;
- if (!object.Equals(OnFileScopeGrantedTrigger, other.OnFileScopeGrantedTrigger)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (homepageTrigger_ != null) hash ^= HomepageTrigger.GetHashCode();
- if (onFileScopeGrantedTrigger_ != null) hash ^= OnFileScopeGrantedTrigger.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (homepageTrigger_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(HomepageTrigger);
- }
- if (onFileScopeGrantedTrigger_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OnFileScopeGrantedTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (homepageTrigger_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(HomepageTrigger);
- }
- if (onFileScopeGrantedTrigger_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OnFileScopeGrantedTrigger);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (homepageTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(HomepageTrigger);
- }
- if (onFileScopeGrantedTrigger_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OnFileScopeGrantedTrigger);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(SlidesAddOnManifest other) {
- if (other == null) {
- return;
- }
- if (other.homepageTrigger_ != null) {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- HomepageTrigger.MergeFrom(other.HomepageTrigger);
- }
- if (other.onFileScopeGrantedTrigger_ != null) {
- if (onFileScopeGrantedTrigger_ == null) {
- OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Slides.SlidesExtensionPoint();
- }
- OnFileScopeGrantedTrigger.MergeFrom(other.OnFileScopeGrantedTrigger);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 18: {
- if (onFileScopeGrantedTrigger_ == null) {
- OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Slides.SlidesExtensionPoint();
- }
- input.ReadMessage(OnFileScopeGrantedTrigger);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- if (homepageTrigger_ == null) {
- HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
- }
- input.ReadMessage(HomepageTrigger);
- break;
- }
- case 18: {
- if (onFileScopeGrantedTrigger_ == null) {
- OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Slides.SlidesExtensionPoint();
- }
- input.ReadMessage(OnFileScopeGrantedTrigger);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// Common format for declaring a Slides add-on's triggers.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class SlidesExtensionPoint : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SlidesExtensionPoint());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Apps.Script.Type.Slides.SlidesAddonManifestReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SlidesExtensionPoint() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SlidesExtensionPoint(SlidesExtensionPoint other) : this() {
- runFunction_ = other.runFunction_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SlidesExtensionPoint Clone() {
- return new SlidesExtensionPoint(this);
- }
-
- /// Field number for the "run_function" field.
- public const int RunFunctionFieldNumber = 1;
- private string runFunction_ = "";
- ///
- /// Required. The endpoint to execute when this extension point is activated.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string RunFunction {
- get { return runFunction_; }
- set {
- runFunction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as SlidesExtensionPoint);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(SlidesExtensionPoint other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (RunFunction != other.RunFunction) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (RunFunction.Length != 0) hash ^= RunFunction.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (RunFunction.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(RunFunction);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (RunFunction.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(RunFunction);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(SlidesExtensionPoint other) {
- if (other == null) {
- return;
- }
- if (other.RunFunction.Length != 0) {
- RunFunction = other.RunFunction;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- RunFunction = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code