Skip to content

Commit

Permalink
docs: Minor documentation edits
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 719012138

Source-Link: googleapis/googleapis@d196cb2

Source-Link: googleapis/googleapis-gen@900acb8
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQXBwcy5TY3JpcHQuVHlwZS8uT3dsQm90LnlhbWwiLCJoIjoiOTAwYWNiODkwNmQzZmE2ODExMzY2MTBiZDVmMzM1Y2VmOGY0MzY4YSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Jan 24, 2025
1 parent 72c731d commit d2b5219
Show file tree
Hide file tree
Showing 3 changed files with 2,258 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,287 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/apps/script/type/addon_widget_set.proto
// </auto-generated>
#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 {

/// <summary>Holder for reflection information generated from google/apps/script/type/addon_widget_set.proto</summary>
public static partial class AddonWidgetSetReflection {

#region Descriptor
/// <summary>File descriptor for google/apps/script/type/addon_widget_set.proto</summary>
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
/// <summary>
/// The widget subset used by an add-on.
/// </summary>
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class AddOnWidgetSet : pb::IMessage<AddOnWidgetSet>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<AddOnWidgetSet> _parser = new pb::MessageParser<AddOnWidgetSet>(() => new AddOnWidgetSet());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<AddOnWidgetSet> 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);
}

/// <summary>Field number for the "used_widgets" field.</summary>
public const int UsedWidgetsFieldNumber = 1;
private static readonly pb::FieldCodec<global::Google.Apps.Script.Type.AddOnWidgetSet.Types.WidgetType> _repeated_usedWidgets_codec
= pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Apps.Script.Type.AddOnWidgetSet.Types.WidgetType) x);
private readonly pbc::RepeatedField<global::Google.Apps.Script.Type.AddOnWidgetSet.Types.WidgetType> usedWidgets_ = new pbc::RepeatedField<global::Google.Apps.Script.Type.AddOnWidgetSet.Types.WidgetType>();
/// <summary>
/// The list of widgets used in an add-on.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Google.Apps.Script.Type.AddOnWidgetSet.Types.WidgetType> 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
/// <summary>Container for nested types declared in the AddOnWidgetSet message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
/// <summary>
/// The Widget type. DEFAULT is the basic widget set.
/// </summary>
public enum WidgetType {
/// <summary>
/// The default widget set.
/// </summary>
[pbr::OriginalName("WIDGET_TYPE_UNSPECIFIED")] Unspecified = 0,
/// <summary>
/// The date picker.
/// </summary>
[pbr::OriginalName("DATE_PICKER")] DatePicker = 1,
/// <summary>
/// Styled buttons include filled buttons and disabled buttons.
/// </summary>
[pbr::OriginalName("STYLED_BUTTONS")] StyledButtons = 2,
/// <summary>
/// Persistent forms allow persisting form values during actions.
/// </summary>
[pbr::OriginalName("PERSISTENT_FORMS")] PersistentForms = 3,
/// <summary>
/// Fixed footer in card.
/// </summary>
[pbr::OriginalName("FIXED_FOOTER")] FixedFooter = 4,
/// <summary>
/// Update the subject and recipients of a draft.
/// </summary>
[pbr::OriginalName("UPDATE_SUBJECT_AND_RECIPIENTS")] UpdateSubjectAndRecipients = 5,
/// <summary>
/// The grid widget.
/// </summary>
[pbr::OriginalName("GRID_WIDGET")] GridWidget = 6,
/// <summary>
/// A Gmail add-on action that applies to the addon compose UI.
/// </summary>
[pbr::OriginalName("ADDON_COMPOSE_UI_ACTION")] AddonComposeUiAction = 7,
}

}
#endregion

}

#endregion

}

#endregion Designer generated code
Loading

0 comments on commit d2b5219

Please sign in to comment.