diff --git a/owl-bot-staging/Google.Apps.Script.Type/Google.Apps.Script.Type/AddonWidgetSet.g.cs b/owl-bot-staging/Google.Apps.Script.Type/Google.Apps.Script.Type/AddonWidgetSet.g.cs
new file mode 100755
index 000000000000..2d915904cbf2
--- /dev/null
+++ b/owl-bot-staging/Google.Apps.Script.Type/Google.Apps.Script.Type/AddonWidgetSet.g.cs
@@ -0,0 +1,287 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/apps/script/type/addon_widget_set.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 {
+
+ /// Holder for reflection information generated from google/apps/script/type/addon_widget_set.proto
+ public static partial class AddonWidgetSetReflection {
+
+ #region Descriptor
+ /// File descriptor for google/apps/script/type/addon_widget_set.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static AddonWidgetSetReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Ci5nb29nbGUvYXBwcy9zY3JpcHQvdHlwZS9hZGRvbl93aWRnZXRfc2V0LnBy",
+ "b3RvEhdnb29nbGUuYXBwcy5zY3JpcHQudHlwZSKkAgoOQWRkT25XaWRnZXRT",
+ "ZXQSSAoMdXNlZF93aWRnZXRzGAEgAygOMjIuZ29vZ2xlLmFwcHMuc2NyaXB0",
+ "LnR5cGUuQWRkT25XaWRnZXRTZXQuV2lkZ2V0VHlwZSLHAQoKV2lkZ2V0VHlw",
+ "ZRIbChdXSURHRVRfVFlQRV9VTlNQRUNJRklFRBAAEg8KC0RBVEVfUElDS0VS",
+ "EAESEgoOU1RZTEVEX0JVVFRPTlMQAhIUChBQRVJTSVNURU5UX0ZPUk1TEAMS",
+ "EAoMRklYRURfRk9PVEVSEAQSIQodVVBEQVRFX1NVQkpFQ1RfQU5EX1JFQ0lQ",
+ "SUVOVFMQBRIPCgtHUklEX1dJREdFVBAGEhsKF0FERE9OX0NPTVBPU0VfVUlf",
+ "QUNUSU9OEAdCvQEKG2NvbS5nb29nbGUuYXBwcy5zY3JpcHQudHlwZUITQWRk",
+ "T25XaWRnZXRTZXRQcm90b1ABWjZnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90",
+ "by9nb29nbGVhcGlzL2FwcHMvc2NyaXB0L3R5cGWqAhdHb29nbGUuQXBwcy5T",
+ "Y3JpcHQuVHlwZcoCF0dvb2dsZVxBcHBzXFNjcmlwdFxUeXBl6gIaR29vZ2xl",
+ "OjpBcHBzOjpTY3JpcHQ6OlR5cGViBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.AddOnWidgetSet), global::Google.Apps.Script.Type.AddOnWidgetSet.Parser, new[]{ "UsedWidgets" }, null, new[]{ typeof(global::Google.Apps.Script.Type.AddOnWidgetSet.Types.WidgetType) }, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ ///
+ /// The widget subset used by an add-on.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class AddOnWidgetSet : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddOnWidgetSet());
+ 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.AddonWidgetSetReflection.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 AddOnWidgetSet() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AddOnWidgetSet(AddOnWidgetSet other) : this() {
+ usedWidgets_ = other.usedWidgets_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AddOnWidgetSet Clone() {
+ return new AddOnWidgetSet(this);
+ }
+
+ /// Field number for the "used_widgets" field.
+ public const int UsedWidgetsFieldNumber = 1;
+ private static readonly pb::FieldCodec _repeated_usedWidgets_codec
+ = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Apps.Script.Type.AddOnWidgetSet.Types.WidgetType) x);
+ private readonly pbc::RepeatedField usedWidgets_ = new pbc::RepeatedField();
+ ///
+ /// The list of widgets used in an add-on.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField UsedWidgets {
+ get { return usedWidgets_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as AddOnWidgetSet);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(AddOnWidgetSet other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!usedWidgets_.Equals(other.usedWidgets_)) 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 ^= usedWidgets_.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
+ usedWidgets_.WriteTo(output, _repeated_usedWidgets_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) {
+ usedWidgets_.WriteTo(ref output, _repeated_usedWidgets_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 += usedWidgets_.CalculateSize(_repeated_usedWidgets_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(AddOnWidgetSet other) {
+ if (other == null) {
+ return;
+ }
+ usedWidgets_.Add(other.usedWidgets_);
+ _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:
+ case 8: {
+ usedWidgets_.AddEntriesFrom(input, _repeated_usedWidgets_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 10:
+ case 8: {
+ usedWidgets_.AddEntriesFrom(ref input, _repeated_usedWidgets_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ #region Nested types
+ /// Container for nested types declared in the AddOnWidgetSet message type.
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static partial class Types {
+ ///
+ /// The Widget type. DEFAULT is the basic widget set.
+ ///
+ public enum WidgetType {
+ ///
+ /// The default widget set.
+ ///
+ [pbr::OriginalName("WIDGET_TYPE_UNSPECIFIED")] Unspecified = 0,
+ ///
+ /// The date picker.
+ ///
+ [pbr::OriginalName("DATE_PICKER")] DatePicker = 1,
+ ///
+ /// Styled buttons include filled buttons and disabled buttons.
+ ///
+ [pbr::OriginalName("STYLED_BUTTONS")] StyledButtons = 2,
+ ///
+ /// Persistent forms allow persisting form values during actions.
+ ///
+ [pbr::OriginalName("PERSISTENT_FORMS")] PersistentForms = 3,
+ ///
+ /// Fixed footer in card.
+ ///
+ [pbr::OriginalName("FIXED_FOOTER")] FixedFooter = 4,
+ ///
+ /// Update the subject and recipients of a draft.
+ ///
+ [pbr::OriginalName("UPDATE_SUBJECT_AND_RECIPIENTS")] UpdateSubjectAndRecipients = 5,
+ ///
+ /// The grid widget.
+ ///
+ [pbr::OriginalName("GRID_WIDGET")] GridWidget = 6,
+ ///
+ /// A Gmail add-on action that applies to the addon compose UI.
+ ///
+ [pbr::OriginalName("ADDON_COMPOSE_UI_ACTION")] AddonComposeUiAction = 7,
+ }
+
+ }
+ #endregion
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/owl-bot-staging/Google.Apps.Script.Type/Google.Apps.Script.Type/ExtensionPoint.g.cs b/owl-bot-staging/Google.Apps.Script.Type/Google.Apps.Script.Type/ExtensionPoint.g.cs
new file mode 100755
index 000000000000..25a96e9355e5
--- /dev/null
+++ b/owl-bot-staging/Google.Apps.Script.Type/Google.Apps.Script.Type/ExtensionPoint.g.cs
@@ -0,0 +1,925 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/apps/script/type/extension_point.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 {
+
+ /// Holder for reflection information generated from google/apps/script/type/extension_point.proto
+ public static partial class ExtensionPointReflection {
+
+ #region Descriptor
+ /// File descriptor for google/apps/script/type/extension_point.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static ExtensionPointReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Ci1nb29nbGUvYXBwcy9zY3JpcHQvdHlwZS9leHRlbnNpb25fcG9pbnQucHJv",
+ "dG8SF2dvb2dsZS5hcHBzLnNjcmlwdC50eXBlGh5nb29nbGUvcHJvdG9idWYv",
+ "d3JhcHBlcnMucHJvdG8iTwoWTWVudUl0ZW1FeHRlbnNpb25Qb2ludBIUCgxy",
+ "dW5fZnVuY3Rpb24YASABKAkSDQoFbGFiZWwYAiABKAkSEAoIbG9nb191cmwY",
+ "AyABKAkiWwoWSG9tZXBhZ2VFeHRlbnNpb25Qb2ludBIUCgxydW5fZnVuY3Rp",
+ "b24YASABKAkSKwoHZW5hYmxlZBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5C",
+ "b29sVmFsdWUiagodVW5pdmVyc2FsQWN0aW9uRXh0ZW5zaW9uUG9pbnQSDQoF",
+ "bGFiZWwYASABKAkSEwoJb3Blbl9saW5rGAIgASgJSAASFgoMcnVuX2Z1bmN0",
+ "aW9uGAMgASgJSABCDQoLYWN0aW9uX3R5cGVCqAEKG2NvbS5nb29nbGUuYXBw",
+ "cy5zY3JpcHQudHlwZVABWjZnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n",
+ "b29nbGVhcGlzL2FwcHMvc2NyaXB0L3R5cGWqAhdHb29nbGUuQXBwcy5TY3Jp",
+ "cHQuVHlwZcoCF0dvb2dsZVxBcHBzXFNjcmlwdFxUeXBl6gIaR29vZ2xlOjpB",
+ "cHBzOjpTY3JpcHQ6OlR5cGViBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.MenuItemExtensionPoint), global::Google.Apps.Script.Type.MenuItemExtensionPoint.Parser, new[]{ "RunFunction", "Label", "LogoUrl" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.HomepageExtensionPoint), global::Google.Apps.Script.Type.HomepageExtensionPoint.Parser, new[]{ "RunFunction", "Enabled" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.UniversalActionExtensionPoint), global::Google.Apps.Script.Type.UniversalActionExtensionPoint.Parser, new[]{ "Label", "OpenLink", "RunFunction" }, new[]{ "ActionType" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ ///
+ /// Common format for declaring a menu item, or button, that appears within a
+ /// host app.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class MenuItemExtensionPoint : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MenuItemExtensionPoint());
+ 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.ExtensionPointReflection.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 MenuItemExtensionPoint() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MenuItemExtensionPoint(MenuItemExtensionPoint other) : this() {
+ runFunction_ = other.runFunction_;
+ label_ = other.label_;
+ logoUrl_ = other.logoUrl_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MenuItemExtensionPoint Clone() {
+ return new MenuItemExtensionPoint(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");
+ }
+ }
+
+ /// Field number for the "label" field.
+ public const int LabelFieldNumber = 2;
+ private string label_ = "";
+ ///
+ /// Required. User-visible text describing the action taken by activating this
+ /// extension point. For example, "Insert invoice".
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Label {
+ get { return label_; }
+ set {
+ label_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "logo_url" field.
+ public const int LogoUrlFieldNumber = 3;
+ private string logoUrl_ = "";
+ ///
+ /// The URL for the logo image shown in the add-on toolbar.
+ ///
+ /// If not set, defaults to the add-on's primary logo URL.
+ ///
+ [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 MenuItemExtensionPoint);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MenuItemExtensionPoint other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (RunFunction != other.RunFunction) return false;
+ if (Label != other.Label) 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 (RunFunction.Length != 0) hash ^= RunFunction.GetHashCode();
+ if (Label.Length != 0) hash ^= Label.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 (RunFunction.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(RunFunction);
+ }
+ if (Label.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Label);
+ }
+ if (LogoUrl.Length != 0) {
+ output.WriteRawTag(26);
+ 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 (RunFunction.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(RunFunction);
+ }
+ if (Label.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Label);
+ }
+ if (LogoUrl.Length != 0) {
+ output.WriteRawTag(26);
+ 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 (RunFunction.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(RunFunction);
+ }
+ if (Label.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
+ }
+ 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(MenuItemExtensionPoint other) {
+ if (other == null) {
+ return;
+ }
+ if (other.RunFunction.Length != 0) {
+ RunFunction = other.RunFunction;
+ }
+ if (other.Label.Length != 0) {
+ Label = other.Label;
+ }
+ 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: {
+ RunFunction = input.ReadString();
+ break;
+ }
+ case 18: {
+ Label = input.ReadString();
+ break;
+ }
+ case 26: {
+ 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: {
+ RunFunction = input.ReadString();
+ break;
+ }
+ case 18: {
+ Label = input.ReadString();
+ break;
+ }
+ case 26: {
+ LogoUrl = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// Common format for declaring an add-on's home-page view.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class HomepageExtensionPoint : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HomepageExtensionPoint());
+ 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.ExtensionPointReflection.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 HomepageExtensionPoint() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public HomepageExtensionPoint(HomepageExtensionPoint other) : this() {
+ runFunction_ = other.runFunction_;
+ Enabled = other.Enabled;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public HomepageExtensionPoint Clone() {
+ return new HomepageExtensionPoint(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");
+ }
+ }
+
+ /// Field number for the "enabled" field.
+ public const int EnabledFieldNumber = 2;
+ private static readonly pb::FieldCodec _single_enabled_codec = pb::FieldCodec.ForStructWrapper(18);
+ private bool? enabled_;
+ ///
+ /// Optional. If set to `false`, disable the home-page view in this context.
+ ///
+ /// Defaults to `true` if unset.
+ ///
+ /// If an add-ons custom home-page view is disabled, an autogenerated overview
+ /// card will be provided for users instead.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool? Enabled {
+ get { return enabled_; }
+ set {
+ enabled_ = value;
+ }
+ }
+
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as HomepageExtensionPoint);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(HomepageExtensionPoint other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (RunFunction != other.RunFunction) return false;
+ if (Enabled != other.Enabled) 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 (enabled_ != null) hash ^= Enabled.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 (enabled_ != null) {
+ _single_enabled_codec.WriteTagAndValue(output, Enabled);
+ }
+ 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 (enabled_ != null) {
+ _single_enabled_codec.WriteTagAndValue(ref output, Enabled);
+ }
+ 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 (enabled_ != null) {
+ size += _single_enabled_codec.CalculateSizeWithTag(Enabled);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(HomepageExtensionPoint other) {
+ if (other == null) {
+ return;
+ }
+ if (other.RunFunction.Length != 0) {
+ RunFunction = other.RunFunction;
+ }
+ if (other.enabled_ != null) {
+ if (enabled_ == null || other.Enabled != false) {
+ Enabled = other.Enabled;
+ }
+ }
+ _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;
+ }
+ case 18: {
+ bool? value = _single_enabled_codec.Read(input);
+ if (enabled_ == null || value != false) {
+ Enabled = value;
+ }
+ 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;
+ }
+ case 18: {
+ bool? value = _single_enabled_codec.Read(ref input);
+ if (enabled_ == null || value != false) {
+ Enabled = value;
+ }
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// Format for declaring a universal action menu item extension point.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class UniversalActionExtensionPoint : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UniversalActionExtensionPoint());
+ 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.ExtensionPointReflection.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 UniversalActionExtensionPoint() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UniversalActionExtensionPoint(UniversalActionExtensionPoint other) : this() {
+ label_ = other.label_;
+ 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 UniversalActionExtensionPoint Clone() {
+ return new UniversalActionExtensionPoint(this);
+ }
+
+ /// Field number for the "label" field.
+ public const int LabelFieldNumber = 1;
+ private string label_ = "";
+ ///
+ /// Required. User-visible text describing the action taken by activating this
+ /// extension point, for example, "Add a new contact".
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Label {
+ get { return label_; }
+ set {
+ label_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "open_link" field.
+ public const int OpenLinkFieldNumber = 2;
+ ///
+ /// URL to be opened by the UniversalAction.
+ ///
+ [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;
+ ///
+ /// Endpoint to be run by the UniversalAction.
+ ///
+ [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 UniversalActionExtensionPoint);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UniversalActionExtensionPoint other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Label != other.Label) 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 (Label.Length != 0) hash ^= Label.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 (Label.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Label);
+ }
+ 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 (Label.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Label);
+ }
+ 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 (Label.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
+ }
+ 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(UniversalActionExtensionPoint other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Label.Length != 0) {
+ Label = other.Label;
+ }
+ 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: {
+ Label = 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: {
+ Label = input.ReadString();
+ break;
+ }
+ case 18: {
+ OpenLink = input.ReadString();
+ break;
+ }
+ case 26: {
+ RunFunction = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/owl-bot-staging/Google.Apps.Script.Type/Google.Apps.Script.Type/ScriptManifest.g.cs b/owl-bot-staging/Google.Apps.Script.Type/Google.Apps.Script.Type/ScriptManifest.g.cs
new file mode 100755
index 000000000000..bfa8796b88bd
--- /dev/null
+++ b/owl-bot-staging/Google.Apps.Script.Type/Google.Apps.Script.Type/ScriptManifest.g.cs
@@ -0,0 +1,1046 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/apps/script/type/script_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 {
+
+ /// Holder for reflection information generated from google/apps/script/type/script_manifest.proto
+ public static partial class ScriptManifestReflection {
+
+ #region Descriptor
+ /// File descriptor for google/apps/script/type/script_manifest.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static ScriptManifestReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Ci1nb29nbGUvYXBwcy9zY3JpcHQvdHlwZS9zY3JpcHRfbWFuaWZlc3QucHJv",
+ "dG8SF2dvb2dsZS5hcHBzLnNjcmlwdC50eXBlGi5nb29nbGUvYXBwcy9zY3Jp",
+ "cHQvdHlwZS9hZGRvbl93aWRnZXRfc2V0LnByb3RvGi1nb29nbGUvYXBwcy9z",
+ "Y3JpcHQvdHlwZS9leHRlbnNpb25fcG9pbnQucHJvdG8aHGdvb2dsZS9wcm90",
+ "b2J1Zi9zdHJ1Y3QucHJvdG8itgMKE0NvbW1vbkFkZE9uTWFuaWZlc3QSDAoE",
+ "bmFtZRgBIAEoCRIQCghsb2dvX3VybBgCIAEoCRJEChFsYXlvdXRfcHJvcGVy",
+ "dGllcxgDIAEoCzIpLmdvb2dsZS5hcHBzLnNjcmlwdC50eXBlLkxheW91dFBy",
+ "b3BlcnRpZXMSQgoRYWRkX29uX3dpZGdldF9zZXQYBCABKAsyJy5nb29nbGUu",
+ "YXBwcy5zY3JpcHQudHlwZS5BZGRPbldpZGdldFNldBIbChN1c2VfbG9jYWxl",
+ "X2Zyb21fYXBwGAUgASgIEkkKEGhvbWVwYWdlX3RyaWdnZXIYBiABKAsyLy5n",
+ "b29nbGUuYXBwcy5zY3JpcHQudHlwZS5Ib21lcGFnZUV4dGVuc2lvblBvaW50",
+ "ElEKEXVuaXZlcnNhbF9hY3Rpb25zGAcgAygLMjYuZ29vZ2xlLmFwcHMuc2Ny",
+ "aXB0LnR5cGUuVW5pdmVyc2FsQWN0aW9uRXh0ZW5zaW9uUG9pbnQSOgoWb3Bl",
+ "bl9saW5rX3VybF9wcmVmaXhlcxgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5M",
+ "aXN0VmFsdWUiQgoQTGF5b3V0UHJvcGVydGllcxIVCg1wcmltYXJ5X2NvbG9y",
+ "GAEgASgJEhcKD3NlY29uZGFyeV9jb2xvchgCIAEoCSJdCgtIdHRwT3B0aW9u",
+ "cxJOChRhdXRob3JpemF0aW9uX2hlYWRlchgBIAEoDjIwLmdvb2dsZS5hcHBz",
+ "LnNjcmlwdC50eXBlLkh0dHBBdXRob3JpemF0aW9uSGVhZGVyKnYKF0h0dHBB",
+ "dXRob3JpemF0aW9uSGVhZGVyEikKJUhUVFBfQVVUSE9SSVpBVElPTl9IRUFE",
+ "RVJfVU5TUEVDSUZJRUQQABITCg9TWVNURU1fSURfVE9LRU4QARIRCg1VU0VS",
+ "X0lEX1RPS0VOEAISCAoETk9ORRADQqgBChtjb20uZ29vZ2xlLmFwcHMuc2Ny",
+ "aXB0LnR5cGVQAVo2Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl",
+ "YXBpcy9hcHBzL3NjcmlwdC90eXBlqgIXR29vZ2xlLkFwcHMuU2NyaXB0LlR5",
+ "cGXKAhdHb29nbGVcQXBwc1xTY3JpcHRcVHlwZeoCGkdvb2dsZTo6QXBwczo6",
+ "U2NyaXB0OjpUeXBlYgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Google.Apps.Script.Type.AddonWidgetSetReflection.Descriptor, global::Google.Apps.Script.Type.ExtensionPointReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Apps.Script.Type.HttpAuthorizationHeader), }, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.CommonAddOnManifest), global::Google.Apps.Script.Type.CommonAddOnManifest.Parser, new[]{ "Name", "LogoUrl", "LayoutProperties", "AddOnWidgetSet", "UseLocaleFromApp", "HomepageTrigger", "UniversalActions", "OpenLinkUrlPrefixes" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.LayoutProperties), global::Google.Apps.Script.Type.LayoutProperties.Parser, new[]{ "PrimaryColor", "SecondaryColor" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Apps.Script.Type.HttpOptions), global::Google.Apps.Script.Type.HttpOptions.Parser, new[]{ "AuthorizationHeader" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Enums
+ ///
+ /// Authorization header sent in add-on HTTP requests
+ ///
+ public enum HttpAuthorizationHeader {
+ ///
+ /// Default value, equivalent to `SYSTEM_ID_TOKEN`
+ ///
+ [pbr::OriginalName("HTTP_AUTHORIZATION_HEADER_UNSPECIFIED")] Unspecified = 0,
+ ///
+ /// Send an ID token for the project-specific Google Workspace add-ons system
+ /// service account (default)
+ ///
+ [pbr::OriginalName("SYSTEM_ID_TOKEN")] SystemIdToken = 1,
+ ///
+ /// Send an ID token for the end user
+ ///
+ [pbr::OriginalName("USER_ID_TOKEN")] UserIdToken = 2,
+ ///
+ /// Do not send an Authentication header
+ ///
+ [pbr::OriginalName("NONE")] None = 3,
+ }
+
+ #endregion
+
+ #region Messages
+ ///
+ /// Add-on configuration that is shared across all add-on host applications.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class CommonAddOnManifest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonAddOnManifest());
+ 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.ScriptManifestReflection.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 CommonAddOnManifest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CommonAddOnManifest(CommonAddOnManifest other) : this() {
+ name_ = other.name_;
+ logoUrl_ = other.logoUrl_;
+ layoutProperties_ = other.layoutProperties_ != null ? other.layoutProperties_.Clone() : null;
+ addOnWidgetSet_ = other.addOnWidgetSet_ != null ? other.addOnWidgetSet_.Clone() : null;
+ useLocaleFromApp_ = other.useLocaleFromApp_;
+ homepageTrigger_ = other.homepageTrigger_ != null ? other.homepageTrigger_.Clone() : null;
+ universalActions_ = other.universalActions_.Clone();
+ openLinkUrlPrefixes_ = other.openLinkUrlPrefixes_ != null ? other.openLinkUrlPrefixes_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CommonAddOnManifest Clone() {
+ return new CommonAddOnManifest(this);
+ }
+
+ /// Field number for the "name" field.
+ public const int NameFieldNumber = 1;
+ private string name_ = "";
+ ///
+ /// Required. The display name of the add-on.
+ ///
+ [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 = 2;
+ private string logoUrl_ = "";
+ ///
+ /// Required. The URL for the logo image shown in the add-on toolbar.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string LogoUrl {
+ get { return logoUrl_; }
+ set {
+ logoUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "layout_properties" field.
+ public const int LayoutPropertiesFieldNumber = 3;
+ private global::Google.Apps.Script.Type.LayoutProperties layoutProperties_;
+ ///
+ /// Common layout properties for the add-on cards.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Apps.Script.Type.LayoutProperties LayoutProperties {
+ get { return layoutProperties_; }
+ set {
+ layoutProperties_ = value;
+ }
+ }
+
+ /// Field number for the "add_on_widget_set" field.
+ public const int AddOnWidgetSetFieldNumber = 4;
+ private global::Google.Apps.Script.Type.AddOnWidgetSet addOnWidgetSet_;
+ ///
+ /// The widgets used in the add-on. If this field is not specified,
+ /// it indicates that default set is used.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Apps.Script.Type.AddOnWidgetSet AddOnWidgetSet {
+ get { return addOnWidgetSet_; }
+ set {
+ addOnWidgetSet_ = value;
+ }
+ }
+
+ /// Field number for the "use_locale_from_app" field.
+ public const int UseLocaleFromAppFieldNumber = 5;
+ private bool useLocaleFromApp_;
+ ///
+ /// Whether to pass locale information from host app.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool UseLocaleFromApp {
+ get { return useLocaleFromApp_; }
+ set {
+ useLocaleFromApp_ = value;
+ }
+ }
+
+ /// 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 in any context, in
+ /// any host. 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.
+ ///
+ [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 "universal_actions" field.
+ public const int UniversalActionsFieldNumber = 7;
+ private static readonly pb::FieldCodec _repeated_universalActions_codec
+ = pb::FieldCodec.ForMessage(58, global::Google.Apps.Script.Type.UniversalActionExtensionPoint.Parser);
+ private readonly pbc::RepeatedField universalActions_ = new pbc::RepeatedField();
+ ///
+ /// Defines a list of extension points in the universal action menu which
+ /// serves as a setting menu for the add-on. The extension point can be
+ /// link URL to open or an endpoint to execute as a form
+ /// submission.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField UniversalActions {
+ get { return universalActions_; }
+ }
+
+ /// Field number for the "open_link_url_prefixes" field.
+ public const int OpenLinkUrlPrefixesFieldNumber = 8;
+ private global::Google.Protobuf.WellKnownTypes.ListValue openLinkUrlPrefixes_;
+ ///
+ /// An OpenLink action
+ /// can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links,
+ /// the URL must also
+ /// [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
+ /// prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
+ /// is assumed. Notice that HTTP links are automatically rewritten to HTTPS
+ /// links.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Protobuf.WellKnownTypes.ListValue OpenLinkUrlPrefixes {
+ get { return openLinkUrlPrefixes_; }
+ set {
+ openLinkUrlPrefixes_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CommonAddOnManifest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CommonAddOnManifest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Name != other.Name) return false;
+ if (LogoUrl != other.LogoUrl) return false;
+ if (!object.Equals(LayoutProperties, other.LayoutProperties)) return false;
+ if (!object.Equals(AddOnWidgetSet, other.AddOnWidgetSet)) return false;
+ if (UseLocaleFromApp != other.UseLocaleFromApp) return false;
+ if (!object.Equals(HomepageTrigger, other.HomepageTrigger)) return false;
+ if(!universalActions_.Equals(other.universalActions_)) return false;
+ if (!object.Equals(OpenLinkUrlPrefixes, other.OpenLinkUrlPrefixes)) 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 (Name.Length != 0) hash ^= Name.GetHashCode();
+ if (LogoUrl.Length != 0) hash ^= LogoUrl.GetHashCode();
+ if (layoutProperties_ != null) hash ^= LayoutProperties.GetHashCode();
+ if (addOnWidgetSet_ != null) hash ^= AddOnWidgetSet.GetHashCode();
+ if (UseLocaleFromApp != false) hash ^= UseLocaleFromApp.GetHashCode();
+ if (homepageTrigger_ != null) hash ^= HomepageTrigger.GetHashCode();
+ hash ^= universalActions_.GetHashCode();
+ if (openLinkUrlPrefixes_ != null) hash ^= OpenLinkUrlPrefixes.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 (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ if (LogoUrl.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(LogoUrl);
+ }
+ if (layoutProperties_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(LayoutProperties);
+ }
+ if (addOnWidgetSet_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(AddOnWidgetSet);
+ }
+ if (UseLocaleFromApp != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(UseLocaleFromApp);
+ }
+ if (homepageTrigger_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(HomepageTrigger);
+ }
+ universalActions_.WriteTo(output, _repeated_universalActions_codec);
+ if (openLinkUrlPrefixes_ != null) {
+ output.WriteRawTag(66);
+ output.WriteMessage(OpenLinkUrlPrefixes);
+ }
+ 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 (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ if (LogoUrl.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(LogoUrl);
+ }
+ if (layoutProperties_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(LayoutProperties);
+ }
+ if (addOnWidgetSet_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(AddOnWidgetSet);
+ }
+ if (UseLocaleFromApp != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(UseLocaleFromApp);
+ }
+ if (homepageTrigger_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(HomepageTrigger);
+ }
+ universalActions_.WriteTo(ref output, _repeated_universalActions_codec);
+ if (openLinkUrlPrefixes_ != null) {
+ output.WriteRawTag(66);
+ output.WriteMessage(OpenLinkUrlPrefixes);
+ }
+ 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 (Name.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
+ }
+ if (LogoUrl.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(LogoUrl);
+ }
+ if (layoutProperties_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(LayoutProperties);
+ }
+ if (addOnWidgetSet_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(AddOnWidgetSet);
+ }
+ if (UseLocaleFromApp != false) {
+ size += 1 + 1;
+ }
+ if (homepageTrigger_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(HomepageTrigger);
+ }
+ size += universalActions_.CalculateSize(_repeated_universalActions_codec);
+ if (openLinkUrlPrefixes_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(OpenLinkUrlPrefixes);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CommonAddOnManifest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Name.Length != 0) {
+ Name = other.Name;
+ }
+ if (other.LogoUrl.Length != 0) {
+ LogoUrl = other.LogoUrl;
+ }
+ if (other.layoutProperties_ != null) {
+ if (layoutProperties_ == null) {
+ LayoutProperties = new global::Google.Apps.Script.Type.LayoutProperties();
+ }
+ LayoutProperties.MergeFrom(other.LayoutProperties);
+ }
+ if (other.addOnWidgetSet_ != null) {
+ if (addOnWidgetSet_ == null) {
+ AddOnWidgetSet = new global::Google.Apps.Script.Type.AddOnWidgetSet();
+ }
+ AddOnWidgetSet.MergeFrom(other.AddOnWidgetSet);
+ }
+ if (other.UseLocaleFromApp != false) {
+ UseLocaleFromApp = other.UseLocaleFromApp;
+ }
+ if (other.homepageTrigger_ != null) {
+ if (homepageTrigger_ == null) {
+ HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
+ }
+ HomepageTrigger.MergeFrom(other.HomepageTrigger);
+ }
+ universalActions_.Add(other.universalActions_);
+ if (other.openLinkUrlPrefixes_ != null) {
+ if (openLinkUrlPrefixes_ == null) {
+ OpenLinkUrlPrefixes = new global::Google.Protobuf.WellKnownTypes.ListValue();
+ }
+ OpenLinkUrlPrefixes.MergeFrom(other.OpenLinkUrlPrefixes);
+ }
+ _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: {
+ Name = input.ReadString();
+ break;
+ }
+ case 18: {
+ LogoUrl = input.ReadString();
+ break;
+ }
+ case 26: {
+ if (layoutProperties_ == null) {
+ LayoutProperties = new global::Google.Apps.Script.Type.LayoutProperties();
+ }
+ input.ReadMessage(LayoutProperties);
+ break;
+ }
+ case 34: {
+ if (addOnWidgetSet_ == null) {
+ AddOnWidgetSet = new global::Google.Apps.Script.Type.AddOnWidgetSet();
+ }
+ input.ReadMessage(AddOnWidgetSet);
+ break;
+ }
+ case 40: {
+ UseLocaleFromApp = input.ReadBool();
+ break;
+ }
+ case 50: {
+ if (homepageTrigger_ == null) {
+ HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
+ }
+ input.ReadMessage(HomepageTrigger);
+ break;
+ }
+ case 58: {
+ universalActions_.AddEntriesFrom(input, _repeated_universalActions_codec);
+ break;
+ }
+ case 66: {
+ if (openLinkUrlPrefixes_ == null) {
+ OpenLinkUrlPrefixes = new global::Google.Protobuf.WellKnownTypes.ListValue();
+ }
+ input.ReadMessage(OpenLinkUrlPrefixes);
+ 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: {
+ Name = input.ReadString();
+ break;
+ }
+ case 18: {
+ LogoUrl = input.ReadString();
+ break;
+ }
+ case 26: {
+ if (layoutProperties_ == null) {
+ LayoutProperties = new global::Google.Apps.Script.Type.LayoutProperties();
+ }
+ input.ReadMessage(LayoutProperties);
+ break;
+ }
+ case 34: {
+ if (addOnWidgetSet_ == null) {
+ AddOnWidgetSet = new global::Google.Apps.Script.Type.AddOnWidgetSet();
+ }
+ input.ReadMessage(AddOnWidgetSet);
+ break;
+ }
+ case 40: {
+ UseLocaleFromApp = input.ReadBool();
+ break;
+ }
+ case 50: {
+ if (homepageTrigger_ == null) {
+ HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
+ }
+ input.ReadMessage(HomepageTrigger);
+ break;
+ }
+ case 58: {
+ universalActions_.AddEntriesFrom(ref input, _repeated_universalActions_codec);
+ break;
+ }
+ case 66: {
+ if (openLinkUrlPrefixes_ == null) {
+ OpenLinkUrlPrefixes = new global::Google.Protobuf.WellKnownTypes.ListValue();
+ }
+ input.ReadMessage(OpenLinkUrlPrefixes);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// Card layout properties shared across all add-on host applications.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class LayoutProperties : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LayoutProperties());
+ 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.ScriptManifestReflection.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 LayoutProperties() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public LayoutProperties(LayoutProperties other) : this() {
+ primaryColor_ = other.primaryColor_;
+ secondaryColor_ = other.secondaryColor_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public LayoutProperties Clone() {
+ return new LayoutProperties(this);
+ }
+
+ /// Field number for the "primary_color" field.
+ public const int PrimaryColorFieldNumber = 1;
+ private string primaryColor_ = "";
+ ///
+ /// The primary color of the add-on. It sets the color of toolbar. If no
+ /// primary color is set explicitly, the default value provided by the
+ /// framework is used.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string PrimaryColor {
+ get { return primaryColor_; }
+ set {
+ primaryColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "secondary_color" field.
+ public const int SecondaryColorFieldNumber = 2;
+ private string secondaryColor_ = "";
+ ///
+ /// The secondary color of the add-on. It sets the color of buttons.
+ /// If primary color is set but no secondary color is set, the
+ /// secondary color is the same as the primary color. If neither primary
+ /// color nor secondary color is set, the default value provided by the
+ /// framework is used.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string SecondaryColor {
+ get { return secondaryColor_; }
+ set {
+ secondaryColor_ = 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 LayoutProperties);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(LayoutProperties other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PrimaryColor != other.PrimaryColor) return false;
+ if (SecondaryColor != other.SecondaryColor) 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 (PrimaryColor.Length != 0) hash ^= PrimaryColor.GetHashCode();
+ if (SecondaryColor.Length != 0) hash ^= SecondaryColor.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 (PrimaryColor.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(PrimaryColor);
+ }
+ if (SecondaryColor.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(SecondaryColor);
+ }
+ 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 (PrimaryColor.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(PrimaryColor);
+ }
+ if (SecondaryColor.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(SecondaryColor);
+ }
+ 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 (PrimaryColor.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(PrimaryColor);
+ }
+ if (SecondaryColor.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(SecondaryColor);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(LayoutProperties other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PrimaryColor.Length != 0) {
+ PrimaryColor = other.PrimaryColor;
+ }
+ if (other.SecondaryColor.Length != 0) {
+ SecondaryColor = other.SecondaryColor;
+ }
+ _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: {
+ PrimaryColor = input.ReadString();
+ break;
+ }
+ case 18: {
+ SecondaryColor = 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: {
+ PrimaryColor = input.ReadString();
+ break;
+ }
+ case 18: {
+ SecondaryColor = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// Options for sending requests to add-on HTTP endpoints
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class HttpOptions : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HttpOptions());
+ 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.ScriptManifestReflection.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 HttpOptions() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public HttpOptions(HttpOptions other) : this() {
+ authorizationHeader_ = other.authorizationHeader_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public HttpOptions Clone() {
+ return new HttpOptions(this);
+ }
+
+ /// Field number for the "authorization_header" field.
+ public const int AuthorizationHeaderFieldNumber = 1;
+ private global::Google.Apps.Script.Type.HttpAuthorizationHeader authorizationHeader_ = global::Google.Apps.Script.Type.HttpAuthorizationHeader.Unspecified;
+ ///
+ /// Configuration for the token sent in the HTTP Authorization header
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Apps.Script.Type.HttpAuthorizationHeader AuthorizationHeader {
+ get { return authorizationHeader_; }
+ set {
+ authorizationHeader_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as HttpOptions);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(HttpOptions other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (AuthorizationHeader != other.AuthorizationHeader) 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 (AuthorizationHeader != global::Google.Apps.Script.Type.HttpAuthorizationHeader.Unspecified) hash ^= AuthorizationHeader.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 (AuthorizationHeader != global::Google.Apps.Script.Type.HttpAuthorizationHeader.Unspecified) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) AuthorizationHeader);
+ }
+ 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 (AuthorizationHeader != global::Google.Apps.Script.Type.HttpAuthorizationHeader.Unspecified) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) AuthorizationHeader);
+ }
+ 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 (AuthorizationHeader != global::Google.Apps.Script.Type.HttpAuthorizationHeader.Unspecified) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AuthorizationHeader);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(HttpOptions other) {
+ if (other == null) {
+ return;
+ }
+ if (other.AuthorizationHeader != global::Google.Apps.Script.Type.HttpAuthorizationHeader.Unspecified) {
+ AuthorizationHeader = other.AuthorizationHeader;
+ }
+ _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 8: {
+ AuthorizationHeader = (global::Google.Apps.Script.Type.HttpAuthorizationHeader) 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 8: {
+ AuthorizationHeader = (global::Google.Apps.Script.Type.HttpAuthorizationHeader) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code