google-apps-card-v1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/google/apps/card/v1/card_pb.rb +244 -161
- data/lib/google/apps/card/v1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d46d853665d40cf4b9016d25b6e514cc45692d3b3b32917033fe380272587796
|
4
|
+
data.tar.gz: 07223720d06da213e0f8b4f202d0b61d0d21bbc9400096b63040b5ac2bb50ea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2807933bb7f35e8153d0b8132a77c715eb4b1077a525609164a20858c0d0c34b74b8476b8dd886dbc86b1724f5fb229cff61351da22a0533e9396845c0bea499
|
7
|
+
data.tar.gz: 119781f8b9b1edc303fed514b683a59b6fa8fe359caf464e7e36bba0168c0c63e0284e30f8516b54f9dac759ee8f35c1b4dd281c6de2ad74496d1ed602b7cdb4
|
data/CHANGELOG.md
CHANGED
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/type/color_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n\x1egoogle/apps/card/v1/card.proto\x12\x13google.apps.card.v1\x1a\x17google/type/color.proto\"\xc7\x08\n\x04\x43\x61rd\x12\x34\n\x06header\x18\x01 \x01(\x0b\x32$.google.apps.card.v1.Card.CardHeader\x12\x33\n\x08sections\x18\x02 \x03(\x0b\x32!.google.apps.card.v1.Card.Section\x12\x45\n\x15section_divider_style\x18\t \x01(\x0e\x32&.google.apps.card.v1.Card.DividerStyle\x12:\n\x0c\x63\x61rd_actions\x18\x03 \x03(\x0b\x32$.google.apps.card.v1.Card.CardAction\x12\x0c\n\x04name\x18\x04 \x01(\t\x12?\n\x0c\x66ixed_footer\x18\x05 \x01(\x0b\x32).google.apps.card.v1.Card.CardFixedFooter\x12=\n\rdisplay_style\x18\x06 \x01(\x0e\x32&.google.apps.card.v1.Card.DisplayStyle\x12>\n\x10peek_card_header\x18\x07 \x01(\x0b\x32$.google.apps.card.v1.Card.CardHeader\x1a\x93\x01\n\nCardHeader\x12\r\n\x05title\x18\x01 \x01(\t\x12\x10\n\x08subtitle\x18\x02 \x01(\t\x12\x39\n\nimage_type\x18\x03 \x01(\x0e\x32%.google.apps.card.v1.Widget.ImageType\x12\x11\n\timage_url\x18\x04 \x01(\t\x12\x16\n\x0eimage_alt_text\x18\x05 \x01(\t\x1a\x81\x01\n\x07Section\x12\x0e\n\x06header\x18\x01 \x01(\t\x12,\n\x07widgets\x18\x02 \x03(\x0b\x32\x1b.google.apps.card.v1.Widget\x12\x13\n\x0b\x63ollapsible\x18\x05 \x01(\x08\x12#\n\x1buncollapsible_widgets_count\x18\x06 \x01(\x05\x1aR\n\nCardAction\x12\x14\n\x0c\x61\x63tion_label\x18\x01 \x01(\t\x12.\n\x08on_click\x18\x02 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x1a}\n\x0f\x43\x61rdFixedFooter\x12\x33\n\x0eprimary_button\x18\x01 \x01(\x0b\x32\x1b.google.apps.card.v1.Button\x12\x35\n\x10secondary_button\x18\x02 \x01(\x0b\x32\x1b.google.apps.card.v1.Button\"P\n\x0c\x44ividerStyle\x12\x1d\n\x19\x44IVIDER_STYLE_UNSPECIFIED\x10\x00\x12\x11\n\rSOLID_DIVIDER\x10\x01\x12\x0e\n\nNO_DIVIDER\x10\x02\"D\n\x0c\x44isplayStyle\x12\x1d\n\x19\x44ISPLAY_STYLE_UNSPECIFIED\x10\x00\x12\x08\n\x04PEEK\x10\x01\x12\x0b\n\x07REPLACE\x10\x02\"\x86\x06\n\x06Widget\x12<\n\x0etext_paragraph\x18\x01 \x01(\x0b\x32\".google.apps.card.v1.TextParagraphH\x00\x12+\n\x05image\x18\x02 \x01(\x0b\x32\x1a.google.apps.card.v1.ImageH\x00\x12<\n\x0e\x64\x65\x63orated_text\x18\x03 \x01(\x0b\x32\".google.apps.card.v1.DecoratedTextH\x00\x12\x36\n\x0b\x62utton_list\x18\x04 \x01(\x0b\x32\x1f.google.apps.card.v1.ButtonListH\x00\x12\x34\n\ntext_input\x18\x05 \x01(\x0b\x32\x1e.google.apps.card.v1.TextInputH\x00\x12>\n\x0fselection_input\x18\x06 \x01(\x0b\x32#.google.apps.card.v1.SelectionInputH\x00\x12?\n\x10\x64\x61te_time_picker\x18\x07 \x01(\x0b\x32#.google.apps.card.v1.DateTimePickerH\x00\x12/\n\x07\x64ivider\x18\t \x01(\x0b\x32\x1c.google.apps.card.v1.DividerH\x00\x12)\n\x04grid\x18\n \x01(\x0b\x32\x19.google.apps.card.v1.GridH\x00\x12/\n\x07\x63olumns\x18\x0b \x01(\x0b\x32\x1c.google.apps.card.v1.ColumnsH\x00\x12M\n\x14horizontal_alignment\x18\x08 \x01(\x0e\x32/.google.apps.card.v1.Widget.HorizontalAlignment\"#\n\tImageType\x12\n\n\x06SQUARE\x10\x00\x12\n\n\x06\x43IRCLE\x10\x01\"[\n\x13HorizontalAlignment\x12$\n HORIZONTAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\t\n\x05START\x10\x01\x12\n\n\x06\x43\x45NTER\x10\x02\x12\x07\n\x03\x45ND\x10\x03\x42\x06\n\x04\x64\x61ta\"\x1d\n\rTextParagraph\x12\x0c\n\x04text\x18\x01 \x01(\t\"\\\n\x05Image\x12\x11\n\timage_url\x18\x01 \x01(\t\x12.\n\x08on_click\x18\x02 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x12\x10\n\x08\x61lt_text\x18\x03 \x01(\t\"\t\n\x07\x44ivider\"\x9e\x05\n\rDecoratedText\x12+\n\x04icon\x18\x01 \x01(\x0b\x32\x19.google.apps.card.v1.IconB\x02\x18\x01\x12-\n\nstart_icon\x18\x0c \x01(\x0b\x32\x19.google.apps.card.v1.Icon\x12\x11\n\ttop_label\x18\x03 \x01(\t\x12\x0c\n\x04text\x18\x04 \x01(\t\x12\x11\n\twrap_text\x18\x05 \x01(\x08\x12\x14\n\x0c\x62ottom_label\x18\x06 \x01(\t\x12.\n\x08on_click\x18\x07 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x12-\n\x06\x62utton\x18\x08 \x01(\x0b\x32\x1b.google.apps.card.v1.ButtonH\x00\x12J\n\x0eswitch_control\x18\t \x01(\x0b\x32\x30.google.apps.card.v1.DecoratedText.SwitchControlH\x00\x12-\n\x08\x65nd_icon\x18\x0b \x01(\x0b\x32\x19.google.apps.card.v1.IconH\x00\x1a\x81\x02\n\rSwitchControl\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x10\n\x08selected\x18\x03 \x01(\x08\x12\x35\n\x10on_change_action\x18\x04 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\x12R\n\x0c\x63ontrol_type\x18\x05 \x01(\x0e\x32<.google.apps.card.v1.DecoratedText.SwitchControl.ControlType\"6\n\x0b\x43ontrolType\x12\n\n\x06SWITCH\x10\x00\x12\x0c\n\x08\x43HECKBOX\x10\x01\x12\r\n\tCHECK_BOX\x10\x02\x42\t\n\x07\x63ontrol\"\xf4\x02\n\tTextInput\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\thint_text\x18\x03 \x01(\t\x12\r\n\x05value\x18\x04 \x01(\t\x12\x31\n\x04type\x18\x05 \x01(\x0e\x32#.google.apps.card.v1.TextInput.Type\x12\x35\n\x10on_change_action\x18\x06 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\x12=\n\x13initial_suggestions\x18\x07 \x01(\x0b\x32 .google.apps.card.v1.Suggestions\x12\x39\n\x14\x61uto_complete_action\x18\x08 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\x12\x18\n\x10placeholder_text\x18\x0c \x01(\t\"*\n\x04Type\x12\x0f\n\x0bSINGLE_LINE\x10\x00\x12\x11\n\rMULTIPLE_LINE\x10\x01\"z\n\x0bSuggestions\x12>\n\x05items\x18\x01 \x03(\x0b\x32/.google.apps.card.v1.Suggestions.SuggestionItem\x1a+\n\x0eSuggestionItem\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x42\t\n\x07\x63ontent\":\n\nButtonList\x12,\n\x07\x62uttons\x18\x01 \x03(\x0b\x32\x1b.google.apps.card.v1.Button\"\xeb\x06\n\x0eSelectionInput\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12?\n\x04type\x18\x03 \x01(\x0e\x32\x31.google.apps.card.v1.SelectionInput.SelectionType\x12@\n\x05items\x18\x04 \x03(\x0b\x32\x31.google.apps.card.v1.SelectionInput.SelectionItem\x12\x35\n\x10on_change_action\x18\x05 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\x12\'\n\x1fmulti_select_max_selected_items\x18\x06 \x01(\x05\x12%\n\x1dmulti_select_min_query_length\x18\x07 \x01(\x05\x12;\n\x14\x65xternal_data_source\x18\x08 \x01(\x0b\x32\x1b.google.apps.card.v1.ActionH\x00\x12V\n\x14platform_data_source\x18\t \x01(\x0b\x32\x36.google.apps.card.v1.SelectionInput.PlatformDataSourceH\x00\x1ak\n\rSelectionItem\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x10\n\x08selected\x18\x03 \x01(\x08\x12\x16\n\x0estart_icon_uri\x18\x04 \x01(\t\x12\x13\n\x0b\x62ottom_text\x18\x05 \x01(\t\x1a\xb5\x01\n\x12PlatformDataSource\x12\x65\n\x12\x63ommon_data_source\x18\x01 \x01(\x0e\x32G.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSourceH\x00\")\n\x10\x43ommonDataSource\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04USER\x10\x01\x42\r\n\x0b\x64\x61ta_source\"\\\n\rSelectionType\x12\r\n\tCHECK_BOX\x10\x00\x12\x10\n\x0cRADIO_BUTTON\x10\x01\x12\n\n\x06SWITCH\x10\x02\x12\x0c\n\x08\x44ROPDOWN\x10\x03\x12\x10\n\x0cMULTI_SELECT\x10\x04\x42\x1a\n\x18multi_select_data_source\"\xa7\x02\n\x0e\x44\x61teTimePicker\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x44\n\x04type\x18\x03 \x01(\x0e\x32\x36.google.apps.card.v1.DateTimePicker.DateTimePickerType\x12\x16\n\x0evalue_ms_epoch\x18\x04 \x01(\x03\x12\x1c\n\x14timezone_offset_date\x18\x05 \x01(\x05\x12\x35\n\x10on_change_action\x18\x06 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\"E\n\x12\x44\x61teTimePickerType\x12\x11\n\rDATE_AND_TIME\x10\x00\x12\r\n\tDATE_ONLY\x10\x01\x12\r\n\tTIME_ONLY\x10\x02\"\xb6\x01\n\x06\x42utton\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\'\n\x04icon\x18\x02 \x01(\x0b\x32\x19.google.apps.card.v1.Icon\x12!\n\x05\x63olor\x18\x03 \x01(\x0b\x32\x12.google.type.Color\x12.\n\x08on_click\x18\x04 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x12\x10\n\x08\x64isabled\x18\x05 \x01(\x08\x12\x10\n\x08\x61lt_text\x18\x06 \x01(\t\"\x86\x01\n\x04Icon\x12\x14\n\nknown_icon\x18\x01 \x01(\tH\x00\x12\x12\n\x08icon_url\x18\x02 \x01(\tH\x00\x12\x10\n\x08\x61lt_text\x18\x03 \x01(\t\x12\x39\n\nimage_type\x18\x04 \x01(\x0e\x32%.google.apps.card.v1.Widget.ImageTypeB\x07\n\x05icons\"\xda\x01\n\x0eImageCropStyle\x12?\n\x04type\x18\x01 \x01(\x0e\x32\x31.google.apps.card.v1.ImageCropStyle.ImageCropType\x12\x14\n\x0c\x61spect_ratio\x18\x02 \x01(\x01\"q\n\rImageCropType\x12\x1f\n\x1bIMAGE_CROP_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06SQUARE\x10\x01\x12\n\n\x06\x43IRCLE\x10\x02\x12\x14\n\x10RECTANGLE_CUSTOM\x10\x03\x12\x11\n\rRECTANGLE_4_3\x10\x04\"\xcf\x01\n\x0b\x42orderStyle\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.apps.card.v1.BorderStyle.BorderType\x12(\n\x0cstroke_color\x18\x02 \x01(\x0b\x32\x12.google.type.Color\x12\x15\n\rcorner_radius\x18\x03 \x01(\x05\"D\n\nBorderType\x12\x1b\n\x17\x42ORDER_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tNO_BORDER\x10\x01\x12\n\n\x06STROKE\x10\x02\"\xa6\x01\n\x0eImageComponent\x12\x11\n\timage_uri\x18\x01 \x01(\t\x12\x10\n\x08\x61lt_text\x18\x02 \x01(\t\x12\x37\n\ncrop_style\x18\x03 \x01(\x0b\x32#.google.apps.card.v1.ImageCropStyle\x12\x36\n\x0c\x62order_style\x18\x04 \x01(\x0b\x32 .google.apps.card.v1.BorderStyle\"\xcb\x03\n\x04Grid\x12\r\n\x05title\x18\x01 \x01(\t\x12\x31\n\x05items\x18\x02 \x03(\x0b\x32\".google.apps.card.v1.Grid.GridItem\x12\x36\n\x0c\x62order_style\x18\x03 \x01(\x0b\x32 .google.apps.card.v1.BorderStyle\x12\x14\n\x0c\x63olumn_count\x18\x04 \x01(\x05\x12.\n\x08on_click\x18\x05 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x1a\x82\x02\n\x08GridItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x32\n\x05image\x18\x02 \x01(\x0b\x32#.google.apps.card.v1.ImageComponent\x12\r\n\x05title\x18\x03 \x01(\t\x12\x10\n\x08subtitle\x18\x04 \x01(\t\x12\x41\n\x06layout\x18\t \x01(\x0e\x32\x31.google.apps.card.v1.Grid.GridItem.GridItemLayout\"R\n\x0eGridItemLayout\x12 \n\x1cGRID_ITEM_LAYOUT_UNSPECIFIED\x10\x00\x12\x0e\n\nTEXT_BELOW\x10\x01\x12\x0e\n\nTEXT_ABOVE\x10\x02\"\xfd\x07\n\x07\x43olumns\x12\x39\n\x0c\x63olumn_items\x18\x02 \x03(\x0b\x32#.google.apps.card.v1.Columns.Column\x1a\xb6\x07\n\x06\x43olumn\x12V\n\x15horizontal_size_style\x18\x01 \x01(\x0e\x32\x37.google.apps.card.v1.Columns.Column.HorizontalSizeStyle\x12M\n\x14horizontal_alignment\x18\x02 \x01(\x0e\x32/.google.apps.card.v1.Widget.HorizontalAlignment\x12Q\n\x12vertical_alignment\x18\x03 \x01(\x0e\x32\x35.google.apps.card.v1.Columns.Column.VerticalAlignment\x12<\n\x07widgets\x18\x04 \x03(\x0b\x32+.google.apps.card.v1.Columns.Column.Widgets\x1a\xa9\x03\n\x07Widgets\x12<\n\x0etext_paragraph\x18\x01 \x01(\x0b\x32\".google.apps.card.v1.TextParagraphH\x00\x12+\n\x05image\x18\x02 \x01(\x0b\x32\x1a.google.apps.card.v1.ImageH\x00\x12<\n\x0e\x64\x65\x63orated_text\x18\x03 \x01(\x0b\x32\".google.apps.card.v1.DecoratedTextH\x00\x12\x36\n\x0b\x62utton_list\x18\x04 \x01(\x0b\x32\x1f.google.apps.card.v1.ButtonListH\x00\x12\x34\n\ntext_input\x18\x05 \x01(\x0b\x32\x1e.google.apps.card.v1.TextInputH\x00\x12>\n\x0fselection_input\x18\x06 \x01(\x0b\x32#.google.apps.card.v1.SelectionInputH\x00\x12?\n\x10\x64\x61te_time_picker\x18\x07 \x01(\x0b\x32#.google.apps.card.v1.DateTimePickerH\x00\x42\x06\n\x04\x64\x61ta\"n\n\x13HorizontalSizeStyle\x12%\n!HORIZONTAL_SIZE_STYLE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x46ILL_AVAILABLE_SPACE\x10\x01\x12\x16\n\x12\x46ILL_MINIMUM_SPACE\x10\x02\"X\n\x11VerticalAlignment\x12\"\n\x1eVERTICAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\n\n\x06\x43\x45NTER\x10\x01\x12\x07\n\x03TOP\x10\x02\x12\n\n\x06\x42OTTOM\x10\x03\"\xe0\x01\n\x07OnClick\x12-\n\x06\x61\x63tion\x18\x01 \x01(\x0b\x32\x1b.google.apps.card.v1.ActionH\x00\x12\x32\n\topen_link\x18\x02 \x01(\x0b\x32\x1d.google.apps.card.v1.OpenLinkH\x00\x12?\n\x18open_dynamic_link_action\x18\x03 \x01(\x0b\x32\x1b.google.apps.card.v1.ActionH\x00\x12)\n\x04\x63\x61rd\x18\x04 \x01(\x0b\x32\x19.google.apps.card.v1.CardH\x00\x42\x06\n\x04\x64\x61ta\"\xd1\x01\n\x08OpenLink\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x35\n\x07open_as\x18\x02 \x01(\x0e\x32$.google.apps.card.v1.OpenLink.OpenAs\x12\x37\n\x08on_close\x18\x03 \x01(\x0e\x32%.google.apps.card.v1.OpenLink.OnClose\"$\n\x06OpenAs\x12\r\n\tFULL_SIZE\x10\x00\x12\x0b\n\x07OVERLAY\x10\x01\"\"\n\x07OnClose\x12\x0b\n\x07NOTHING\x10\x00\x12\n\n\x06RELOAD\x10\x01\"\x88\x03\n\x06\x41\x63tion\x12\x10\n\x08\x66unction\x18\x01 \x01(\t\x12?\n\nparameters\x18\x02 \x03(\x0b\x32+.google.apps.card.v1.Action.ActionParameter\x12\x41\n\x0eload_indicator\x18\x03 \x01(\x0e\x32).google.apps.card.v1.Action.LoadIndicator\x12\x16\n\x0epersist_values\x18\x04 \x01(\x08\x12<\n\x0binteraction\x18\x05 \x01(\x0e\x32\'.google.apps.card.v1.Action.Interaction\x1a-\n\x0f\x41\x63tionParameter\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"&\n\rLoadIndicator\x12\x0b\n\x07SPINNER\x10\x00\x12\x08\n\x04NONE\x10\x01\";\n\x0bInteraction\x12\x1b\n\x17INTERACTION_UNSPECIFIED\x10\x00\x12\x0f\n\x0bOPEN_DIALOG\x10\x01\x42\xa4\x01\n\x17\x63om.google.apps.card.v1B\tCardProtoP\x01Z7google.golang.org/genproto/googleapis/apps/card/v1;card\xaa\x02\x13Google.Apps.Card.V1\xca\x02\x13Google\\Apps\\Card\\V1\xea\x02\x16Google::Apps::Card::V1b\x06proto3"
|
10
|
+
descriptor_data = "\n\x1egoogle/apps/card/v1/card.proto\x12\x13google.apps.card.v1\x1a\x17google/type/color.proto\"\xc7\x08\n\x04\x43\x61rd\x12\x34\n\x06header\x18\x01 \x01(\x0b\x32$.google.apps.card.v1.Card.CardHeader\x12\x33\n\x08sections\x18\x02 \x03(\x0b\x32!.google.apps.card.v1.Card.Section\x12\x45\n\x15section_divider_style\x18\t \x01(\x0e\x32&.google.apps.card.v1.Card.DividerStyle\x12:\n\x0c\x63\x61rd_actions\x18\x03 \x03(\x0b\x32$.google.apps.card.v1.Card.CardAction\x12\x0c\n\x04name\x18\x04 \x01(\t\x12?\n\x0c\x66ixed_footer\x18\x05 \x01(\x0b\x32).google.apps.card.v1.Card.CardFixedFooter\x12=\n\rdisplay_style\x18\x06 \x01(\x0e\x32&.google.apps.card.v1.Card.DisplayStyle\x12>\n\x10peek_card_header\x18\x07 \x01(\x0b\x32$.google.apps.card.v1.Card.CardHeader\x1a\x93\x01\n\nCardHeader\x12\r\n\x05title\x18\x01 \x01(\t\x12\x10\n\x08subtitle\x18\x02 \x01(\t\x12\x39\n\nimage_type\x18\x03 \x01(\x0e\x32%.google.apps.card.v1.Widget.ImageType\x12\x11\n\timage_url\x18\x04 \x01(\t\x12\x16\n\x0eimage_alt_text\x18\x05 \x01(\t\x1a\x81\x01\n\x07Section\x12\x0e\n\x06header\x18\x01 \x01(\t\x12,\n\x07widgets\x18\x02 \x03(\x0b\x32\x1b.google.apps.card.v1.Widget\x12\x13\n\x0b\x63ollapsible\x18\x05 \x01(\x08\x12#\n\x1buncollapsible_widgets_count\x18\x06 \x01(\x05\x1aR\n\nCardAction\x12\x14\n\x0c\x61\x63tion_label\x18\x01 \x01(\t\x12.\n\x08on_click\x18\x02 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x1a}\n\x0f\x43\x61rdFixedFooter\x12\x33\n\x0eprimary_button\x18\x01 \x01(\x0b\x32\x1b.google.apps.card.v1.Button\x12\x35\n\x10secondary_button\x18\x02 \x01(\x0b\x32\x1b.google.apps.card.v1.Button\"P\n\x0c\x44ividerStyle\x12\x1d\n\x19\x44IVIDER_STYLE_UNSPECIFIED\x10\x00\x12\x11\n\rSOLID_DIVIDER\x10\x01\x12\x0e\n\nNO_DIVIDER\x10\x02\"D\n\x0c\x44isplayStyle\x12\x1d\n\x19\x44ISPLAY_STYLE_UNSPECIFIED\x10\x00\x12\x08\n\x04PEEK\x10\x01\x12\x0b\n\x07REPLACE\x10\x02\"\x86\x06\n\x06Widget\x12<\n\x0etext_paragraph\x18\x01 \x01(\x0b\x32\".google.apps.card.v1.TextParagraphH\x00\x12+\n\x05image\x18\x02 \x01(\x0b\x32\x1a.google.apps.card.v1.ImageH\x00\x12<\n\x0e\x64\x65\x63orated_text\x18\x03 \x01(\x0b\x32\".google.apps.card.v1.DecoratedTextH\x00\x12\x36\n\x0b\x62utton_list\x18\x04 \x01(\x0b\x32\x1f.google.apps.card.v1.ButtonListH\x00\x12\x34\n\ntext_input\x18\x05 \x01(\x0b\x32\x1e.google.apps.card.v1.TextInputH\x00\x12>\n\x0fselection_input\x18\x06 \x01(\x0b\x32#.google.apps.card.v1.SelectionInputH\x00\x12?\n\x10\x64\x61te_time_picker\x18\x07 \x01(\x0b\x32#.google.apps.card.v1.DateTimePickerH\x00\x12/\n\x07\x64ivider\x18\t \x01(\x0b\x32\x1c.google.apps.card.v1.DividerH\x00\x12)\n\x04grid\x18\n \x01(\x0b\x32\x19.google.apps.card.v1.GridH\x00\x12/\n\x07\x63olumns\x18\x0b \x01(\x0b\x32\x1c.google.apps.card.v1.ColumnsH\x00\x12M\n\x14horizontal_alignment\x18\x08 \x01(\x0e\x32/.google.apps.card.v1.Widget.HorizontalAlignment\"#\n\tImageType\x12\n\n\x06SQUARE\x10\x00\x12\n\n\x06\x43IRCLE\x10\x01\"[\n\x13HorizontalAlignment\x12$\n HORIZONTAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\t\n\x05START\x10\x01\x12\n\n\x06\x43\x45NTER\x10\x02\x12\x07\n\x03\x45ND\x10\x03\x42\x06\n\x04\x64\x61ta\"\x1d\n\rTextParagraph\x12\x0c\n\x04text\x18\x01 \x01(\t\"\\\n\x05Image\x12\x11\n\timage_url\x18\x01 \x01(\t\x12.\n\x08on_click\x18\x02 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x12\x10\n\x08\x61lt_text\x18\x03 \x01(\t\"\t\n\x07\x44ivider\"\x9e\x05\n\rDecoratedText\x12+\n\x04icon\x18\x01 \x01(\x0b\x32\x19.google.apps.card.v1.IconB\x02\x18\x01\x12-\n\nstart_icon\x18\x0c \x01(\x0b\x32\x19.google.apps.card.v1.Icon\x12\x11\n\ttop_label\x18\x03 \x01(\t\x12\x0c\n\x04text\x18\x04 \x01(\t\x12\x11\n\twrap_text\x18\x05 \x01(\x08\x12\x14\n\x0c\x62ottom_label\x18\x06 \x01(\t\x12.\n\x08on_click\x18\x07 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x12-\n\x06\x62utton\x18\x08 \x01(\x0b\x32\x1b.google.apps.card.v1.ButtonH\x00\x12J\n\x0eswitch_control\x18\t \x01(\x0b\x32\x30.google.apps.card.v1.DecoratedText.SwitchControlH\x00\x12-\n\x08\x65nd_icon\x18\x0b \x01(\x0b\x32\x19.google.apps.card.v1.IconH\x00\x1a\x81\x02\n\rSwitchControl\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x10\n\x08selected\x18\x03 \x01(\x08\x12\x35\n\x10on_change_action\x18\x04 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\x12R\n\x0c\x63ontrol_type\x18\x05 \x01(\x0e\x32<.google.apps.card.v1.DecoratedText.SwitchControl.ControlType\"6\n\x0b\x43ontrolType\x12\n\n\x06SWITCH\x10\x00\x12\x0c\n\x08\x43HECKBOX\x10\x01\x12\r\n\tCHECK_BOX\x10\x02\x42\t\n\x07\x63ontrol\"\xf4\x02\n\tTextInput\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\thint_text\x18\x03 \x01(\t\x12\r\n\x05value\x18\x04 \x01(\t\x12\x31\n\x04type\x18\x05 \x01(\x0e\x32#.google.apps.card.v1.TextInput.Type\x12\x35\n\x10on_change_action\x18\x06 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\x12=\n\x13initial_suggestions\x18\x07 \x01(\x0b\x32 .google.apps.card.v1.Suggestions\x12\x39\n\x14\x61uto_complete_action\x18\x08 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\x12\x18\n\x10placeholder_text\x18\x0c \x01(\t\"*\n\x04Type\x12\x0f\n\x0bSINGLE_LINE\x10\x00\x12\x11\n\rMULTIPLE_LINE\x10\x01\"z\n\x0bSuggestions\x12>\n\x05items\x18\x01 \x03(\x0b\x32/.google.apps.card.v1.Suggestions.SuggestionItem\x1a+\n\x0eSuggestionItem\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x42\t\n\x07\x63ontent\":\n\nButtonList\x12,\n\x07\x62uttons\x18\x01 \x03(\x0b\x32\x1b.google.apps.card.v1.Button\"\xeb\x06\n\x0eSelectionInput\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12?\n\x04type\x18\x03 \x01(\x0e\x32\x31.google.apps.card.v1.SelectionInput.SelectionType\x12@\n\x05items\x18\x04 \x03(\x0b\x32\x31.google.apps.card.v1.SelectionInput.SelectionItem\x12\x35\n\x10on_change_action\x18\x05 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\x12\'\n\x1fmulti_select_max_selected_items\x18\x06 \x01(\x05\x12%\n\x1dmulti_select_min_query_length\x18\x07 \x01(\x05\x12;\n\x14\x65xternal_data_source\x18\x08 \x01(\x0b\x32\x1b.google.apps.card.v1.ActionH\x00\x12V\n\x14platform_data_source\x18\t \x01(\x0b\x32\x36.google.apps.card.v1.SelectionInput.PlatformDataSourceH\x00\x1ak\n\rSelectionItem\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x10\n\x08selected\x18\x03 \x01(\x08\x12\x16\n\x0estart_icon_uri\x18\x04 \x01(\t\x12\x13\n\x0b\x62ottom_text\x18\x05 \x01(\t\x1a\xb5\x01\n\x12PlatformDataSource\x12\x65\n\x12\x63ommon_data_source\x18\x01 \x01(\x0e\x32G.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSourceH\x00\")\n\x10\x43ommonDataSource\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04USER\x10\x01\x42\r\n\x0b\x64\x61ta_source\"\\\n\rSelectionType\x12\r\n\tCHECK_BOX\x10\x00\x12\x10\n\x0cRADIO_BUTTON\x10\x01\x12\n\n\x06SWITCH\x10\x02\x12\x0c\n\x08\x44ROPDOWN\x10\x03\x12\x10\n\x0cMULTI_SELECT\x10\x04\x42\x1a\n\x18multi_select_data_source\"\xa7\x02\n\x0e\x44\x61teTimePicker\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x44\n\x04type\x18\x03 \x01(\x0e\x32\x36.google.apps.card.v1.DateTimePicker.DateTimePickerType\x12\x16\n\x0evalue_ms_epoch\x18\x04 \x01(\x03\x12\x1c\n\x14timezone_offset_date\x18\x05 \x01(\x05\x12\x35\n\x10on_change_action\x18\x06 \x01(\x0b\x32\x1b.google.apps.card.v1.Action\"E\n\x12\x44\x61teTimePickerType\x12\x11\n\rDATE_AND_TIME\x10\x00\x12\r\n\tDATE_ONLY\x10\x01\x12\r\n\tTIME_ONLY\x10\x02\"\xb6\x01\n\x06\x42utton\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\'\n\x04icon\x18\x02 \x01(\x0b\x32\x19.google.apps.card.v1.Icon\x12!\n\x05\x63olor\x18\x03 \x01(\x0b\x32\x12.google.type.Color\x12.\n\x08on_click\x18\x04 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x12\x10\n\x08\x64isabled\x18\x05 \x01(\x08\x12\x10\n\x08\x61lt_text\x18\x06 \x01(\t\"\xc2\x01\n\x04Icon\x12\x14\n\nknown_icon\x18\x01 \x01(\tH\x00\x12\x12\n\x08icon_url\x18\x02 \x01(\tH\x00\x12:\n\rmaterial_icon\x18\x05 \x01(\x0b\x32!.google.apps.card.v1.MaterialIconH\x00\x12\x10\n\x08\x61lt_text\x18\x03 \x01(\t\x12\x39\n\nimage_type\x18\x04 \x01(\x0e\x32%.google.apps.card.v1.Widget.ImageTypeB\x07\n\x05icons\"I\n\x0cMaterialIcon\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x66ill\x18\x02 \x01(\x08\x12\x0e\n\x06weight\x18\x03 \x01(\x05\x12\r\n\x05grade\x18\x04 \x01(\x05\"\xda\x01\n\x0eImageCropStyle\x12?\n\x04type\x18\x01 \x01(\x0e\x32\x31.google.apps.card.v1.ImageCropStyle.ImageCropType\x12\x14\n\x0c\x61spect_ratio\x18\x02 \x01(\x01\"q\n\rImageCropType\x12\x1f\n\x1bIMAGE_CROP_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06SQUARE\x10\x01\x12\n\n\x06\x43IRCLE\x10\x02\x12\x14\n\x10RECTANGLE_CUSTOM\x10\x03\x12\x11\n\rRECTANGLE_4_3\x10\x04\"\xcf\x01\n\x0b\x42orderStyle\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.apps.card.v1.BorderStyle.BorderType\x12(\n\x0cstroke_color\x18\x02 \x01(\x0b\x32\x12.google.type.Color\x12\x15\n\rcorner_radius\x18\x03 \x01(\x05\"D\n\nBorderType\x12\x1b\n\x17\x42ORDER_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tNO_BORDER\x10\x01\x12\n\n\x06STROKE\x10\x02\"\xa6\x01\n\x0eImageComponent\x12\x11\n\timage_uri\x18\x01 \x01(\t\x12\x10\n\x08\x61lt_text\x18\x02 \x01(\t\x12\x37\n\ncrop_style\x18\x03 \x01(\x0b\x32#.google.apps.card.v1.ImageCropStyle\x12\x36\n\x0c\x62order_style\x18\x04 \x01(\x0b\x32 .google.apps.card.v1.BorderStyle\"\xcb\x03\n\x04Grid\x12\r\n\x05title\x18\x01 \x01(\t\x12\x31\n\x05items\x18\x02 \x03(\x0b\x32\".google.apps.card.v1.Grid.GridItem\x12\x36\n\x0c\x62order_style\x18\x03 \x01(\x0b\x32 .google.apps.card.v1.BorderStyle\x12\x14\n\x0c\x63olumn_count\x18\x04 \x01(\x05\x12.\n\x08on_click\x18\x05 \x01(\x0b\x32\x1c.google.apps.card.v1.OnClick\x1a\x82\x02\n\x08GridItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x32\n\x05image\x18\x02 \x01(\x0b\x32#.google.apps.card.v1.ImageComponent\x12\r\n\x05title\x18\x03 \x01(\t\x12\x10\n\x08subtitle\x18\x04 \x01(\t\x12\x41\n\x06layout\x18\t \x01(\x0e\x32\x31.google.apps.card.v1.Grid.GridItem.GridItemLayout\"R\n\x0eGridItemLayout\x12 \n\x1cGRID_ITEM_LAYOUT_UNSPECIFIED\x10\x00\x12\x0e\n\nTEXT_BELOW\x10\x01\x12\x0e\n\nTEXT_ABOVE\x10\x02\"\xfd\x07\n\x07\x43olumns\x12\x39\n\x0c\x63olumn_items\x18\x02 \x03(\x0b\x32#.google.apps.card.v1.Columns.Column\x1a\xb6\x07\n\x06\x43olumn\x12V\n\x15horizontal_size_style\x18\x01 \x01(\x0e\x32\x37.google.apps.card.v1.Columns.Column.HorizontalSizeStyle\x12M\n\x14horizontal_alignment\x18\x02 \x01(\x0e\x32/.google.apps.card.v1.Widget.HorizontalAlignment\x12Q\n\x12vertical_alignment\x18\x03 \x01(\x0e\x32\x35.google.apps.card.v1.Columns.Column.VerticalAlignment\x12<\n\x07widgets\x18\x04 \x03(\x0b\x32+.google.apps.card.v1.Columns.Column.Widgets\x1a\xa9\x03\n\x07Widgets\x12<\n\x0etext_paragraph\x18\x01 \x01(\x0b\x32\".google.apps.card.v1.TextParagraphH\x00\x12+\n\x05image\x18\x02 \x01(\x0b\x32\x1a.google.apps.card.v1.ImageH\x00\x12<\n\x0e\x64\x65\x63orated_text\x18\x03 \x01(\x0b\x32\".google.apps.card.v1.DecoratedTextH\x00\x12\x36\n\x0b\x62utton_list\x18\x04 \x01(\x0b\x32\x1f.google.apps.card.v1.ButtonListH\x00\x12\x34\n\ntext_input\x18\x05 \x01(\x0b\x32\x1e.google.apps.card.v1.TextInputH\x00\x12>\n\x0fselection_input\x18\x06 \x01(\x0b\x32#.google.apps.card.v1.SelectionInputH\x00\x12?\n\x10\x64\x61te_time_picker\x18\x07 \x01(\x0b\x32#.google.apps.card.v1.DateTimePickerH\x00\x42\x06\n\x04\x64\x61ta\"n\n\x13HorizontalSizeStyle\x12%\n!HORIZONTAL_SIZE_STYLE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x46ILL_AVAILABLE_SPACE\x10\x01\x12\x16\n\x12\x46ILL_MINIMUM_SPACE\x10\x02\"X\n\x11VerticalAlignment\x12\"\n\x1eVERTICAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\n\n\x06\x43\x45NTER\x10\x01\x12\x07\n\x03TOP\x10\x02\x12\n\n\x06\x42OTTOM\x10\x03\"\xe0\x01\n\x07OnClick\x12-\n\x06\x61\x63tion\x18\x01 \x01(\x0b\x32\x1b.google.apps.card.v1.ActionH\x00\x12\x32\n\topen_link\x18\x02 \x01(\x0b\x32\x1d.google.apps.card.v1.OpenLinkH\x00\x12?\n\x18open_dynamic_link_action\x18\x03 \x01(\x0b\x32\x1b.google.apps.card.v1.ActionH\x00\x12)\n\x04\x63\x61rd\x18\x04 \x01(\x0b\x32\x19.google.apps.card.v1.CardH\x00\x42\x06\n\x04\x64\x61ta\"\xd1\x01\n\x08OpenLink\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x35\n\x07open_as\x18\x02 \x01(\x0e\x32$.google.apps.card.v1.OpenLink.OpenAs\x12\x37\n\x08on_close\x18\x03 \x01(\x0e\x32%.google.apps.card.v1.OpenLink.OnClose\"$\n\x06OpenAs\x12\r\n\tFULL_SIZE\x10\x00\x12\x0b\n\x07OVERLAY\x10\x01\"\"\n\x07OnClose\x12\x0b\n\x07NOTHING\x10\x00\x12\n\n\x06RELOAD\x10\x01\"\x88\x03\n\x06\x41\x63tion\x12\x10\n\x08\x66unction\x18\x01 \x01(\t\x12?\n\nparameters\x18\x02 \x03(\x0b\x32+.google.apps.card.v1.Action.ActionParameter\x12\x41\n\x0eload_indicator\x18\x03 \x01(\x0e\x32).google.apps.card.v1.Action.LoadIndicator\x12\x16\n\x0epersist_values\x18\x04 \x01(\x08\x12<\n\x0binteraction\x18\x05 \x01(\x0e\x32\'.google.apps.card.v1.Action.Interaction\x1a-\n\x0f\x41\x63tionParameter\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"&\n\rLoadIndicator\x12\x0b\n\x07SPINNER\x10\x00\x12\x08\n\x04NONE\x10\x01\";\n\x0bInteraction\x12\x1b\n\x17INTERACTION_UNSPECIFIED\x10\x00\x12\x0f\n\x0bOPEN_DIALOG\x10\x01\x42\xa4\x01\n\x17\x63om.google.apps.card.v1B\tCardProtoP\x01Z7google.golang.org/genproto/googleapis/apps/card/v1;card\xaa\x02\x13Google.Apps.Card.V1\xca\x02\x13Google\\Apps\\Card\\V1\xea\x02\x16Google::Apps::Card::V1b\x06proto3"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|
@@ -68,6 +68,7 @@ module Google
|
|
68
68
|
DateTimePicker::DateTimePickerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.card.v1.DateTimePicker.DateTimePickerType").enummodule
|
69
69
|
Button = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.card.v1.Button").msgclass
|
70
70
|
Icon = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.card.v1.Icon").msgclass
|
71
|
+
MaterialIcon = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.card.v1.MaterialIcon").msgclass
|
71
72
|
ImageCropStyle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.card.v1.ImageCropStyle").msgclass
|
72
73
|
ImageCropStyle::ImageCropType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.card.v1.ImageCropStyle.ImageCropType").enummodule
|
73
74
|
BorderStyle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.card.v1.BorderStyle").msgclass
|
@@ -136,15 +137,15 @@ end
|
|
136
137
|
# // To learn how
|
137
138
|
# // to build cards, see the following documentation:
|
138
139
|
# //
|
139
|
-
# // * For Google Chat apps, see [Design
|
140
|
-
# //
|
140
|
+
# // * For Google Chat apps, see [Design the components of a card or
|
141
|
+
# // dialog](https://developers.google.com/workspace/chat/design-components-card-dialog).
|
141
142
|
# // * For Google Workspace Add-ons, see [Card-based
|
142
143
|
# // interfaces](https://developers.google.com/apps-script/add-ons/concepts/cards).
|
143
144
|
# //
|
144
145
|
# // **Example: Card message for a Google Chat app**
|
145
146
|
# //
|
146
147
|
# // ![Example contact
|
147
|
-
# // card](https://developers.google.com/chat/images/card_api_reference.png)
|
148
|
+
# // card](https://developers.google.com/workspace/chat/images/card_api_reference.png)
|
148
149
|
# //
|
149
150
|
# // To create the sample card message in Google Chat, use the following JSON:
|
150
151
|
# //
|
@@ -155,82 +156,82 @@ end
|
|
155
156
|
# // "cardId": "unique-card-id",
|
156
157
|
# // "card": {
|
157
158
|
# // "header": {
|
158
|
-
# //
|
159
|
-
# //
|
160
|
-
# //
|
161
|
-
# //
|
162
|
-
# //
|
163
|
-
# //
|
164
|
-
# //
|
165
|
-
# //
|
166
|
-
# //
|
167
|
-
# //
|
168
|
-
# //
|
169
|
-
# //
|
170
|
-
# //
|
171
|
-
# //
|
172
|
-
# //
|
173
|
-
# //
|
174
|
-
# //
|
175
|
-
# //
|
176
|
-
# //
|
177
|
-
# //
|
178
|
-
# //
|
179
|
-
# //
|
180
|
-
# //
|
181
|
-
# //
|
182
|
-
# //
|
183
|
-
# //
|
184
|
-
# //
|
185
|
-
# //
|
186
|
-
# //
|
187
|
-
# //
|
188
|
-
# //
|
189
|
-
# //
|
190
|
-
# //
|
191
|
-
# //
|
192
|
-
# //
|
193
|
-
# //
|
194
|
-
# //
|
195
|
-
# //
|
196
|
-
# //
|
197
|
-
# //
|
198
|
-
# //
|
199
|
-
# //
|
200
|
-
# //
|
159
|
+
# // "title": "Sasha",
|
160
|
+
# // "subtitle": "Software Engineer",
|
161
|
+
# // "imageUrl":
|
162
|
+
# // "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
|
163
|
+
# // "imageType": "CIRCLE",
|
164
|
+
# // "imageAltText": "Avatar for Sasha"
|
165
|
+
# // },
|
166
|
+
# // "sections": [
|
167
|
+
# // {
|
168
|
+
# // "header": "Contact Info",
|
169
|
+
# // "collapsible": true,
|
170
|
+
# // "uncollapsibleWidgetsCount": 1,
|
171
|
+
# // "widgets": [
|
172
|
+
# // {
|
173
|
+
# // "decoratedText": {
|
174
|
+
# // "startIcon": {
|
175
|
+
# // "knownIcon": "EMAIL"
|
176
|
+
# // },
|
177
|
+
# // "text": "sasha@example.com"
|
178
|
+
# // }
|
179
|
+
# // },
|
180
|
+
# // {
|
181
|
+
# // "decoratedText": {
|
182
|
+
# // "startIcon": {
|
183
|
+
# // "knownIcon": "PERSON"
|
184
|
+
# // },
|
185
|
+
# // "text": "<font color=\"#80e27e\">Online</font>"
|
186
|
+
# // }
|
187
|
+
# // },
|
188
|
+
# // {
|
189
|
+
# // "decoratedText": {
|
190
|
+
# // "startIcon": {
|
191
|
+
# // "knownIcon": "PHONE"
|
192
|
+
# // },
|
193
|
+
# // "text": "+1 (555) 555-1234"
|
194
|
+
# // }
|
195
|
+
# // },
|
196
|
+
# // {
|
197
|
+
# // "buttonList": {
|
198
|
+
# // "buttons": [
|
199
|
+
# // {
|
200
|
+
# // "text": "Share",
|
201
|
+
# // "onClick": {
|
201
202
|
# // "openLink": {
|
202
|
-
# //
|
203
|
-
# //
|
204
|
-
# //
|
205
|
-
# //
|
206
|
-
# //
|
207
|
-
# //
|
208
|
-
# //
|
209
|
-
# //
|
210
|
-
# //
|
211
|
-
# //
|
212
|
-
# //
|
213
|
-
# //
|
214
|
-
# //
|
215
|
-
# //
|
216
|
-
# //
|
217
|
-
# //
|
218
|
-
# //
|
219
|
-
# //
|
220
|
-
# //
|
221
|
-
# //
|
222
|
-
# //
|
223
|
-
# //
|
224
|
-
# //
|
225
|
-
# //
|
226
|
-
# //
|
203
|
+
# // "url": "https://example.com/share"
|
204
|
+
# // }
|
205
|
+
# // }
|
206
|
+
# // },
|
207
|
+
# // {
|
208
|
+
# // "text": "Edit",
|
209
|
+
# // "onClick": {
|
210
|
+
# // "action": {
|
211
|
+
# // "function": "goToView",
|
212
|
+
# // "parameters": [
|
213
|
+
# // {
|
214
|
+
# // "key": "viewType",
|
215
|
+
# // "value": "EDIT"
|
216
|
+
# // }
|
217
|
+
# // ]
|
218
|
+
# // }
|
219
|
+
# // }
|
220
|
+
# // }
|
221
|
+
# // ]
|
222
|
+
# // }
|
223
|
+
# // }
|
224
|
+
# // ]
|
225
|
+
# // }
|
226
|
+
# // ]
|
227
|
+
# // }
|
227
228
|
# // }
|
228
|
-
# // ]
|
229
|
+
# // ]
|
229
230
|
# // }
|
230
231
|
# // ```
|
231
232
|
# message Card {
|
232
|
-
# // Represents a card header. For an example in Google Chat apps, see [
|
233
|
-
# // header](https://developers.google.com/chat/
|
233
|
+
# // Represents a card header. For an example in Google Chat apps, see [Add a
|
234
|
+
# // header](https://developers.google.com/workspace/chat/design-components-card-dialog#add_a_header).
|
234
235
|
# //
|
235
236
|
# // [Google Workspace Add-ons and Chat
|
236
237
|
# // apps](https://developers.google.com/workspace/extend):
|
@@ -268,7 +269,7 @@ end
|
|
268
269
|
# // Supports simple HTML formatted text. For more information
|
269
270
|
# // about formatting text, see
|
270
271
|
# // [Formatting text in Google Chat
|
271
|
-
# // apps](https://developers.google.com/chat/format-messages#card-formatting)
|
272
|
+
# // apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
|
272
273
|
# // and
|
273
274
|
# // [Formatting
|
274
275
|
# // text in Google Workspace
|
@@ -336,11 +337,11 @@ end
|
|
336
337
|
# // `secondaryButton` causes an error.
|
337
338
|
# //
|
338
339
|
# // For Chat apps, you can use fixed footers in
|
339
|
-
# // [dialogs](https://developers.google.com/chat/
|
340
|
+
# // [dialogs](https://developers.google.com/workspace/chat/dialogs), but not
|
340
341
|
# // [card
|
341
|
-
# // messages](https://developers.google.com/chat/
|
342
|
-
# // For an example in Google Chat apps, see [
|
343
|
-
# // footer](https://developers.google.com/chat/
|
342
|
+
# // messages](https://developers.google.com/workspace/chat/create-messages#create).
|
343
|
+
# // For an example in Google Chat apps, see [Add a persistent
|
344
|
+
# // footer](https://developers.google.com/workspace/chat/design-components-card-dialog#add_a_persistent_footer).
|
344
345
|
# //
|
345
346
|
# // [Google Workspace Add-ons and Chat
|
346
347
|
# // apps](https://developers.google.com/workspace/extend):
|
@@ -381,8 +382,8 @@ end
|
|
381
382
|
#
|
382
383
|
# // Contains a collection of widgets. Each section has its own, optional
|
383
384
|
# // header. Sections are visually separated by a line divider. For an example
|
384
|
-
# // in Google Chat apps, see [
|
385
|
-
# //
|
385
|
+
# // in Google Chat apps, see [Define a section of a
|
386
|
+
# // card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card).
|
386
387
|
# repeated Section sections = 2;
|
387
388
|
#
|
388
389
|
# // The divider style between sections.
|
@@ -436,9 +437,9 @@ end
|
|
436
437
|
# // Setting `fixedFooter` without specifying a `primaryButton` or a
|
437
438
|
# // `secondaryButton` causes an error. For Chat apps, you can use fixed footers
|
438
439
|
# // in
|
439
|
-
# // [dialogs](https://developers.google.com/chat/
|
440
|
+
# // [dialogs](https://developers.google.com/workspace/chat/dialogs), but not
|
440
441
|
# // [card
|
441
|
-
# // messages](https://developers.google.com/chat/
|
442
|
+
# // messages](https://developers.google.com/workspace/chat/create-messages#create).
|
442
443
|
# //
|
443
444
|
# // [Google Workspace Add-ons and Chat
|
444
445
|
# // apps](https://developers.google.com/workspace/extend):
|
@@ -481,7 +482,7 @@ end
|
|
481
482
|
#
|
482
483
|
# // Specifies whether widgets align to the left, right, or center of a column.
|
483
484
|
# //
|
484
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
485
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
485
486
|
# enum HorizontalAlignment {
|
486
487
|
# // Don't use. Unspecified.
|
487
488
|
# HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0;
|
@@ -506,7 +507,7 @@ end
|
|
506
507
|
# // Displays a text paragraph. Supports simple HTML formatted text. For more
|
507
508
|
# // information about formatting text, see
|
508
509
|
# // [Formatting text in Google Chat
|
509
|
-
# // apps](https://developers.google.com/chat/format-messages#card-formatting)
|
510
|
+
# // apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
|
510
511
|
# // and
|
511
512
|
# // [Formatting
|
512
513
|
# // text in Google Workspace
|
@@ -526,7 +527,7 @@ end
|
|
526
527
|
# // ```
|
527
528
|
# // "image": {
|
528
529
|
# // "imageUrl":
|
529
|
-
# // "https://developers.google.com/chat/images/quickstart-app-avatar.png",
|
530
|
+
# // "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
|
530
531
|
# // "altText": "Chat app avatar"
|
531
532
|
# // }
|
532
533
|
# // ```
|
@@ -778,12 +779,12 @@ end
|
|
778
779
|
# }
|
779
780
|
#
|
780
781
|
# // A paragraph of text that supports formatting. For an example in
|
781
|
-
# // Google Chat apps, see [
|
782
|
-
# //
|
782
|
+
# // Google Chat apps, see [Add a paragraph of formatted
|
783
|
+
# // text](https://developers.google.com/workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_formatted_text).
|
783
784
|
# // For more information
|
784
785
|
# // about formatting text, see
|
785
786
|
# // [Formatting text in Google Chat
|
786
|
-
# // apps](https://developers.google.com/chat/format-messages#card-formatting)
|
787
|
+
# // apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
|
787
788
|
# // and
|
788
789
|
# // [Formatting
|
789
790
|
# // text in Google Workspace
|
@@ -797,7 +798,8 @@ end
|
|
797
798
|
# }
|
798
799
|
#
|
799
800
|
# // An image that is specified by a URL and can have an `onClick` action. For an
|
800
|
-
# // example, see [
|
801
|
+
# // example, see [Add an
|
802
|
+
# // image](https://developers.google.com/workspace/chat/add-text-image-card-dialog#add_an_image).
|
801
803
|
# //
|
802
804
|
# // [Google Workspace Add-ons and Chat
|
803
805
|
# // apps](https://developers.google.com/workspace/extend):
|
@@ -807,7 +809,7 @@ end
|
|
807
809
|
# // For example:
|
808
810
|
# //
|
809
811
|
# // ```
|
810
|
-
# // https://developers.google.com/chat/images/quickstart-app-avatar.png
|
812
|
+
# // https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
|
811
813
|
# // ```
|
812
814
|
# string image_url = 1;
|
813
815
|
#
|
@@ -820,7 +822,8 @@ end
|
|
820
822
|
#
|
821
823
|
# // Displays a divider between widgets as a horizontal line. For an example in
|
822
824
|
# // Google Chat apps, see
|
823
|
-
# // [
|
825
|
+
# // [Add a horizontal divider between
|
826
|
+
# // widgets](https://developers.google.com/workspace/chat/format-structure-card-dialog#add_a_horizontal_divider_between_widgets).
|
824
827
|
# //
|
825
828
|
# // [Google Workspace Add-ons and Chat
|
826
829
|
# // apps](https://developers.google.com/workspace/extend):
|
@@ -835,8 +838,8 @@ end
|
|
835
838
|
# // A widget that displays text with optional decorations such as a label above
|
836
839
|
# // or below the text, an icon in front of the text, a selection widget, or a
|
837
840
|
# // button after the text. For an example in
|
838
|
-
# // Google Chat apps, see [
|
839
|
-
# // text](https://developers.google.com/chat/
|
841
|
+
# // Google Chat apps, see [Display text with decorative
|
842
|
+
# // text](https://developers.google.com/workspace/chat/add-text-image-card-dialog#display_text_with_decorative_elements).
|
840
843
|
# //
|
841
844
|
# // [Google Workspace Add-ons and Chat
|
842
845
|
# // apps](https://developers.google.com/workspace/extend):
|
@@ -866,13 +869,13 @@ end
|
|
866
869
|
# // The name by which the switch widget is identified in a form input event.
|
867
870
|
# //
|
868
871
|
# // For details about working with form inputs, see [Receive form
|
869
|
-
# // data](https://developers.google.com/chat/
|
872
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
870
873
|
# string name = 1;
|
871
874
|
#
|
872
875
|
# // The value entered by a user, returned as part of a form input event.
|
873
876
|
# //
|
874
877
|
# // For details about working with form inputs, see [Receive form
|
875
|
-
# // data](https://developers.google.com/chat/
|
878
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
876
879
|
# string value = 2;
|
877
880
|
#
|
878
881
|
# // When `true`, the switch is selected.
|
@@ -903,7 +906,7 @@ end
|
|
903
906
|
# // Supports simple formatting. For more information
|
904
907
|
# // about formatting text, see
|
905
908
|
# // [Formatting text in Google Chat
|
906
|
-
# // apps](https://developers.google.com/chat/format-messages#card-formatting)
|
909
|
+
# // apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
|
907
910
|
# // and
|
908
911
|
# // [Formatting
|
909
912
|
# // text in Google Workspace
|
@@ -935,21 +938,22 @@ end
|
|
935
938
|
# // An icon displayed after the text.
|
936
939
|
# //
|
937
940
|
# // Supports
|
938
|
-
# // [built-in](https://developers.google.com/chat/format-messages#builtinicons)
|
941
|
+
# // [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
|
939
942
|
# // and
|
940
|
-
# // [custom](https://developers.google.com/chat/format-messages#customicons)
|
943
|
+
# // [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
|
941
944
|
# // icons.
|
942
945
|
# Icon end_icon = 11;
|
943
946
|
# }
|
944
947
|
# }
|
945
948
|
#
|
946
949
|
# // A field in which users can enter text. Supports suggestions and on-change
|
947
|
-
# // actions. For an example in Google Chat apps, see [
|
948
|
-
# //
|
950
|
+
# // actions. For an example in Google Chat apps, see [Add a field in which a user
|
951
|
+
# // can enter
|
952
|
+
# // text](https://developers.google.com/workspace/chat/design-interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text).
|
949
953
|
# //
|
950
954
|
# // Chat apps receive and can process the value of entered text during form input
|
951
955
|
# // events. For details about working with form inputs, see [Receive form
|
952
|
-
# // data](https://developers.google.com/chat/
|
956
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
953
957
|
# //
|
954
958
|
# // When you need to collect undefined or abstract data from users,
|
955
959
|
# // use a text input. To collect defined or enumerated data from users, use the
|
@@ -976,7 +980,7 @@ end
|
|
976
980
|
# // The name by which the text input is identified in a form input event.
|
977
981
|
# //
|
978
982
|
# // For details about working with form inputs, see [Receive form
|
979
|
-
# // data](https://developers.google.com/chat/
|
983
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
980
984
|
# string name = 1;
|
981
985
|
#
|
982
986
|
# // The text that appears above the text input field in the user interface.
|
@@ -997,7 +1001,7 @@ end
|
|
997
1001
|
# // The value entered by a user, returned as part of a form input event.
|
998
1002
|
# //
|
999
1003
|
# // For details about working with form inputs, see [Receive form
|
1000
|
-
# // data](https://developers.google.com/chat/
|
1004
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
1001
1005
|
# string value = 4;
|
1002
1006
|
#
|
1003
1007
|
# // How a text input field appears in the user interface.
|
@@ -1008,7 +1012,7 @@ end
|
|
1008
1012
|
# // user adding to the field or deleting text.
|
1009
1013
|
# //
|
1010
1014
|
# // Examples of actions to take include running a custom function or opening
|
1011
|
-
# // a [dialog](https://developers.google.com/chat/
|
1015
|
+
# // a [dialog](https://developers.google.com/workspace/chat/dialogs)
|
1012
1016
|
# // in Google Chat.
|
1013
1017
|
# Action on_change_action = 6;
|
1014
1018
|
#
|
@@ -1049,7 +1053,7 @@ end
|
|
1049
1053
|
# // Use this text to prompt users to enter a value. For example, `Enter a
|
1050
1054
|
# // number from 0 to 100`.
|
1051
1055
|
# //
|
1052
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
1056
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
1053
1057
|
# string placeholder_text = 12;
|
1054
1058
|
# }
|
1055
1059
|
#
|
@@ -1091,7 +1095,8 @@ end
|
|
1091
1095
|
#
|
1092
1096
|
# // A list of buttons layed out horizontally. For an example in
|
1093
1097
|
# // Google Chat apps, see
|
1094
|
-
# // [
|
1098
|
+
# // [Add a
|
1099
|
+
# // button](https://developers.google.com/workspace/chat/design-interactive-card-dialog#add_a_button).
|
1095
1100
|
# //
|
1096
1101
|
# // [Google Workspace Add-ons and Chat
|
1097
1102
|
# // apps](https://developers.google.com/workspace/extend):
|
@@ -1103,12 +1108,12 @@ end
|
|
1103
1108
|
# // A widget that creates one or more UI items that users can select.
|
1104
1109
|
# // For example, a dropdown menu or checkboxes. You can use this widget to
|
1105
1110
|
# // collect data that can be predicted or enumerated. For an example in Google
|
1106
|
-
# // Chat apps, see [
|
1107
|
-
# //
|
1111
|
+
# // Chat apps, see [Add selectable UI
|
1112
|
+
# // elements](/workspace/chat/design-interactive-card-dialog#add_selectable_ui_elements).
|
1108
1113
|
# //
|
1109
1114
|
# // Chat apps can process the value of items that users select or input. For
|
1110
1115
|
# // details about working with form inputs, see [Receive form
|
1111
|
-
# // data](https://developers.google.com/chat/
|
1116
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
1112
1117
|
# //
|
1113
1118
|
# // To collect undefined or abstract data from users, use
|
1114
1119
|
# // the [TextInput][google.apps.card.v1.TextInput] widget.
|
@@ -1153,14 +1158,14 @@ end
|
|
1153
1158
|
# // * External data: Items are populated from an external data
|
1154
1159
|
# // source outside of Google Workspace.
|
1155
1160
|
# //
|
1156
|
-
# // For examples of how to implement multiselect menus, see
|
1157
|
-
# // [
|
1158
|
-
# //
|
1161
|
+
# // For examples of how to implement multiselect menus, see
|
1162
|
+
# // [Add a multiselect
|
1163
|
+
# // menu](https://developers.google.com/workspace/chat/design-interactive-card-dialog#multiselect-menu).
|
1159
1164
|
# //
|
1160
1165
|
# // [Google Workspace Add-ons and Chat
|
1161
1166
|
# // apps](https://developers.google.com/workspace/extend):
|
1162
|
-
# //
|
1163
|
-
# //
|
1167
|
+
# // Multiselect for Google Workspace Add-ons are in
|
1168
|
+
# // Developer Preview.
|
1164
1169
|
# MULTI_SELECT = 4;
|
1165
1170
|
# }
|
1166
1171
|
#
|
@@ -1177,7 +1182,7 @@ end
|
|
1177
1182
|
# // input value.
|
1178
1183
|
# //
|
1179
1184
|
# // For details about working with form inputs, see [Receive form
|
1180
|
-
# // data](https://developers.google.com/chat/
|
1185
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
1181
1186
|
# string value = 2;
|
1182
1187
|
#
|
1183
1188
|
# // Whether the item is selected by default. If the selection input only
|
@@ -1188,7 +1193,7 @@ end
|
|
1188
1193
|
# // For multiselect menus, the URL for the icon displayed next to
|
1189
1194
|
# // the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS`
|
1190
1195
|
# // URL. For example,
|
1191
|
-
# // `https://developers.google.com/chat/images/quickstart-app-avatar.png`.
|
1196
|
+
# // `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`.
|
1192
1197
|
# string start_icon_uri = 4;
|
1193
1198
|
#
|
1194
1199
|
# // For multiselect menus, a text description or label that's
|
@@ -1201,13 +1206,13 @@ end
|
|
1201
1206
|
# // multiselect menu, a data source from Google Workspace. Used to populate
|
1202
1207
|
# // items in a multiselect menu.
|
1203
1208
|
# //
|
1204
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
1209
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
1205
1210
|
# message PlatformDataSource {
|
1206
1211
|
# // A data source shared by all [Google Workspace
|
1207
1212
|
# // applications]
|
1208
|
-
# // (https://developers.google.com/chat/api/reference/rest/v1/HostApp).
|
1213
|
+
# // (https://developers.google.com/workspace/chat/api/reference/rest/v1/HostApp).
|
1209
1214
|
# //
|
1210
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
1215
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
1211
1216
|
# enum CommonDataSource {
|
1212
1217
|
# // Default value. Don't use.
|
1213
1218
|
# UNKNOWN = 0;
|
@@ -1228,7 +1233,7 @@ end
|
|
1228
1233
|
# // The name that identifies the selection input in a form input event.
|
1229
1234
|
# //
|
1230
1235
|
# // For details about working with form inputs, see [Receive form
|
1231
|
-
# // data](https://developers.google.com/chat/
|
1236
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
1232
1237
|
# string name = 1;
|
1233
1238
|
#
|
1234
1239
|
# // The text that appears above the selection input field in the user
|
@@ -1253,7 +1258,7 @@ end
|
|
1253
1258
|
# // specified, you must specify a separate button that submits the form.
|
1254
1259
|
# //
|
1255
1260
|
# // For details about working with form inputs, see [Receive form
|
1256
|
-
# // data](https://developers.google.com/chat/
|
1261
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
1257
1262
|
# Action on_change_action = 5;
|
1258
1263
|
#
|
1259
1264
|
# // For multiselect menus, the maximum number of items that a user can select.
|
@@ -1261,7 +1266,7 @@ end
|
|
1261
1266
|
# int32 multi_select_max_selected_items = 6;
|
1262
1267
|
#
|
1263
1268
|
# // For multiselect menus, the number of text characters that a user inputs
|
1264
|
-
# // before the
|
1269
|
+
# // before the app queries autocomplete and displays suggested items
|
1265
1270
|
# // in the menu.
|
1266
1271
|
# //
|
1267
1272
|
# // If unspecified, defaults to 0 characters for static data sources and 3
|
@@ -1271,7 +1276,7 @@ end
|
|
1271
1276
|
# // For a multiselect menu, the data source that populates
|
1272
1277
|
# // selection items.
|
1273
1278
|
# //
|
1274
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
1279
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
1275
1280
|
# oneof multi_select_data_source {
|
1276
1281
|
# // An external data source, such as a relational data base.
|
1277
1282
|
# Action external_data_source = 8;
|
@@ -1282,8 +1287,8 @@ end
|
|
1282
1287
|
# }
|
1283
1288
|
#
|
1284
1289
|
# // Lets users input a date, a time, or both a date and a time. For an example in
|
1285
|
-
# // Google Chat apps, see [
|
1286
|
-
# //
|
1290
|
+
# // Google Chat apps, see [Let a user pick a date and
|
1291
|
+
# // time](https://developers.google.com/workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time).
|
1287
1292
|
# //
|
1288
1293
|
# // Users can input text or use the picker to select dates and times. If users
|
1289
1294
|
# // input an invalid date or time, the picker shows an error that prompts users
|
@@ -1311,7 +1316,7 @@ end
|
|
1311
1316
|
# // The name by which the `DateTimePicker` is identified in a form input event.
|
1312
1317
|
# //
|
1313
1318
|
# // For details about working with form inputs, see [Receive form
|
1314
|
-
# // data](https://developers.google.com/chat/
|
1319
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
1315
1320
|
# string name = 1;
|
1316
1321
|
#
|
1317
1322
|
# // The text that prompts users to input a date, a time, or a date and time.
|
@@ -1347,7 +1352,8 @@ end
|
|
1347
1352
|
#
|
1348
1353
|
# // A text, icon, or text and icon button that users can click. For an example in
|
1349
1354
|
# // Google Chat apps, see
|
1350
|
-
# // [
|
1355
|
+
# // [Add a
|
1356
|
+
# // button](https://developers.google.com/workspace/chat/design-interactive-card-dialog#add_a_button).
|
1351
1357
|
# //
|
1352
1358
|
# // To make an image a clickable button, specify an
|
1353
1359
|
# // [`Image`][google.apps.card.v1.Image] (not an
|
@@ -1411,17 +1417,18 @@ end
|
|
1411
1417
|
# // Set descriptive text that lets users know what the button does. For
|
1412
1418
|
# // example, if a button opens a hyperlink, you might write: "Opens a new
|
1413
1419
|
# // browser tab and navigates to the Google Chat developer documentation at
|
1414
|
-
# // https://developers.google.com/chat".
|
1420
|
+
# // https://developers.google.com/workspace/chat".
|
1415
1421
|
# string alt_text = 6;
|
1416
1422
|
# }
|
1417
1423
|
#
|
1418
1424
|
# // An icon displayed in a widget on a card. For an example in Google Chat apps,
|
1419
|
-
# // see [
|
1425
|
+
# // see [Add an
|
1426
|
+
# // icon](https://developers.google.com/workspace/chat/add-text-image-card-dialog#add_an_icon).
|
1420
1427
|
# //
|
1421
1428
|
# // Supports
|
1422
|
-
# // [built-in](https://developers.google.com/chat/format-messages#builtinicons)
|
1429
|
+
# // [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
|
1423
1430
|
# // and
|
1424
|
-
# // [custom](https://developers.google.com/chat/format-messages#customicons)
|
1431
|
+
# // [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
|
1425
1432
|
# // icons.
|
1426
1433
|
# //
|
1427
1434
|
# // [Google Workspace Add-ons and Chat
|
@@ -1435,7 +1442,7 @@ end
|
|
1435
1442
|
# // For a bus, specify `BUS`.
|
1436
1443
|
# //
|
1437
1444
|
# // For a full list of supported icons, see [built-in
|
1438
|
-
# // icons](https://developers.google.com/chat/format-messages#builtinicons).
|
1445
|
+
# // icons](https://developers.google.com/workspace/chat/format-messages#builtinicons).
|
1439
1446
|
# string known_icon = 1;
|
1440
1447
|
#
|
1441
1448
|
# // Display a custom icon hosted at an HTTPS URL.
|
@@ -1444,11 +1451,26 @@ end
|
|
1444
1451
|
# //
|
1445
1452
|
# // ```
|
1446
1453
|
# // "iconUrl":
|
1447
|
-
# // "https://developers.google.com/chat/images/quickstart-app-avatar.png"
|
1454
|
+
# // "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png"
|
1448
1455
|
# // ```
|
1449
1456
|
# //
|
1450
1457
|
# // Supported file types include `.png` and `.jpg`.
|
1451
1458
|
# string icon_url = 2;
|
1459
|
+
#
|
1460
|
+
# // Display one of the [Google Material
|
1461
|
+
# // Icons](https://fonts.google.com/icons).
|
1462
|
+
# //
|
1463
|
+
# // For example, to display a [checkbox
|
1464
|
+
# // icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048),
|
1465
|
+
# // use
|
1466
|
+
# // ```
|
1467
|
+
# // "material_icon": {
|
1468
|
+
# // "name": "check_box"
|
1469
|
+
# // }
|
1470
|
+
# // ```
|
1471
|
+
# //
|
1472
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
1473
|
+
# MaterialIcon material_icon = 5;
|
1452
1474
|
# }
|
1453
1475
|
#
|
1454
1476
|
# // Optional. A description of the icon used for accessibility.
|
@@ -1456,7 +1478,7 @@ end
|
|
1456
1478
|
# // you should set a helpful description for what the icon displays, and if
|
1457
1479
|
# // applicable, what it does. For example, `A user's account portrait`, or
|
1458
1480
|
# // `Opens a new browser tab and navigates to the Google Chat developer
|
1459
|
-
# // documentation at https://developers.google.com/chat`.
|
1481
|
+
# // documentation at https://developers.google.com/workspace/chat`.
|
1460
1482
|
# //
|
1461
1483
|
# // If the icon is set in a [`Button`][google.apps.card.v1.Button], the
|
1462
1484
|
# // `altText` appears as helper text when the user hovers over the button.
|
@@ -1469,6 +1491,57 @@ end
|
|
1469
1491
|
# Widget.ImageType image_type = 4;
|
1470
1492
|
# }
|
1471
1493
|
#
|
1494
|
+
# // A [Google Material Icon](https://fonts.google.com/icons), which includes over
|
1495
|
+
# // 2500+ options.
|
1496
|
+
# //
|
1497
|
+
# // For example, to display a [checkbox
|
1498
|
+
# // icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048)
|
1499
|
+
# // with customized weight and grade, write the following:
|
1500
|
+
# //
|
1501
|
+
# // ```
|
1502
|
+
# // {
|
1503
|
+
# // "name": "check_box",
|
1504
|
+
# // "fill": true,
|
1505
|
+
# // "weight": 300,
|
1506
|
+
# // "grade": -25
|
1507
|
+
# // }
|
1508
|
+
# // ```
|
1509
|
+
# //
|
1510
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
1511
|
+
# message MaterialIcon {
|
1512
|
+
# // The icon name defined in the [Google Material
|
1513
|
+
# // Icon](https://fonts.google.com/icons), for example, `check_box`. Any
|
1514
|
+
# // invalid names are abandoned and replaced with empty string and
|
1515
|
+
# // results in the icon failing to render.
|
1516
|
+
# string name = 1;
|
1517
|
+
#
|
1518
|
+
# // Whether the icon renders as filled. Default value is false.
|
1519
|
+
# //
|
1520
|
+
# // To preview different icon settings, go to
|
1521
|
+
# // [Google Font Icons](https://fonts.google.com/icons) and adjust the
|
1522
|
+
# // settings under **Customize**.
|
1523
|
+
# bool fill = 2;
|
1524
|
+
#
|
1525
|
+
# // The stroke weight of the icon. Choose from {100, 200, 300, 400,
|
1526
|
+
# // 500, 600, 700}. If absent, default value is 400. If any other value is
|
1527
|
+
# // specified, the default value is used.
|
1528
|
+
# //
|
1529
|
+
# // To preview different icon settings, go to
|
1530
|
+
# // [Google Font Icons](https://fonts.google.com/icons) and adjust the
|
1531
|
+
# // settings under **Customize**.
|
1532
|
+
# int32 weight = 3;
|
1533
|
+
#
|
1534
|
+
# // Weight and grade affect a symbol’s thickness. Adjustments to grade are more
|
1535
|
+
# // granular than adjustments to weight and have a small impact on the size of
|
1536
|
+
# // the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If
|
1537
|
+
# // any other value is specified, the default value is used.
|
1538
|
+
# //
|
1539
|
+
# // To preview different icon settings, go to
|
1540
|
+
# // [Google Font Icons](https://fonts.google.com/icons) and adjust the
|
1541
|
+
# // settings under **Customize**.
|
1542
|
+
# int32 grade = 4;
|
1543
|
+
# }
|
1544
|
+
#
|
1472
1545
|
# // Represents the crop style applied to an image.
|
1473
1546
|
# //
|
1474
1547
|
# // [Google Workspace Add-ons and
|
@@ -1573,7 +1646,8 @@ end
|
|
1573
1646
|
# // Displays a grid with a collection of items. Items can only include text or
|
1574
1647
|
# // images. For responsive columns, or to include more than text or images, use
|
1575
1648
|
# // [`Columns`][google.apps.card.v1.Columns]. For an example in Google Chat apps,
|
1576
|
-
# // see [Grid
|
1649
|
+
# // see [Display a Grid with a collection of
|
1650
|
+
# // items](https://developers.google.com/workspace/chat/format-structure-card-dialog#display_a_grid_with_a_collection_of_items).
|
1577
1651
|
# //
|
1578
1652
|
# // A grid supports any number of columns and items. The number of rows is
|
1579
1653
|
# // determined by items divided by columns. A grid with
|
@@ -1678,7 +1752,8 @@ end
|
|
1678
1752
|
# // The `Columns` widget displays up to 2 columns in a card or dialog. You can
|
1679
1753
|
# // add widgets to each column; the widgets appear in the order that they are
|
1680
1754
|
# // specified. For an example in Google Chat apps, see
|
1681
|
-
# // [
|
1755
|
+
# // [Display cards and dialogs in
|
1756
|
+
# // columns](https://developers.google.com/workspace/chat/format-structure-card-dialog#display_cards_and_dialogs_in_columns).
|
1682
1757
|
# //
|
1683
1758
|
# // The height of each column is determined by the taller column. For example, if
|
1684
1759
|
# // the first column is taller than the second column, both columns have the
|
@@ -1703,17 +1778,23 @@ end
|
|
1703
1778
|
# // [Google Workspace Add-ons and Chat
|
1704
1779
|
# // apps](https://developers.google.com/workspace/extend):
|
1705
1780
|
# // Columns for Google Workspace Add-ons are in
|
1706
|
-
# //
|
1781
|
+
# // Developer Preview.
|
1707
1782
|
# message Columns {
|
1708
1783
|
# // A column.
|
1709
1784
|
# //
|
1710
|
-
# // [Google Chat
|
1785
|
+
# // [Google Workspace Add-ons and Chat
|
1786
|
+
# // apps](https://developers.google.com/workspace/extend):
|
1787
|
+
# // Columns for Google Workspace Add-ons are in
|
1788
|
+
# // Developer Preview.
|
1711
1789
|
# message Column {
|
1712
1790
|
# // Specifies how a column fills the width of the card. The width of each
|
1713
1791
|
# // column depends on both the `HorizontalSizeStyle` and the width of the
|
1714
1792
|
# // widgets within the column.
|
1715
1793
|
# //
|
1716
|
-
# // [Google Chat
|
1794
|
+
# // [Google Workspace Add-ons and Chat
|
1795
|
+
# // apps](https://developers.google.com/workspace/extend):
|
1796
|
+
# // Columns for Google Workspace Add-ons are in
|
1797
|
+
# // Developer Preview.
|
1717
1798
|
# enum HorizontalSizeStyle {
|
1718
1799
|
# // Don't use. Unspecified.
|
1719
1800
|
# HORIZONTAL_SIZE_STYLE_UNSPECIFIED = 0;
|
@@ -1731,7 +1812,10 @@ end
|
|
1731
1812
|
# // Specifies whether widgets align to the top, bottom, or center of a
|
1732
1813
|
# // column.
|
1733
1814
|
# //
|
1734
|
-
# // [Google Chat
|
1815
|
+
# // [Google Workspace Add-ons and Chat
|
1816
|
+
# // apps](https://developers.google.com/workspace/extend):
|
1817
|
+
# // Columns for Google Workspace Add-ons are in
|
1818
|
+
# // Developer Preview.
|
1735
1819
|
# enum VerticalAlignment {
|
1736
1820
|
# // Don't use. Unspecified.
|
1737
1821
|
# VERTICAL_ALIGNMENT_UNSPECIFIED = 0;
|
@@ -1748,7 +1832,10 @@ end
|
|
1748
1832
|
#
|
1749
1833
|
# // The supported widgets that you can include in a column.
|
1750
1834
|
# //
|
1751
|
-
# // [Google Chat
|
1835
|
+
# // [Google Workspace Add-ons and Chat
|
1836
|
+
# // apps](https://developers.google.com/workspace/extend):
|
1837
|
+
# // Columns for Google Workspace Add-ons are in
|
1838
|
+
# // Developer Preview.
|
1752
1839
|
# message Widgets {
|
1753
1840
|
# oneof data {
|
1754
1841
|
# // [TextParagraph][google.apps.card.v1.TextParagraph] widget.
|
@@ -1775,8 +1862,6 @@ end
|
|
1775
1862
|
# }
|
1776
1863
|
#
|
1777
1864
|
# // Specifies how a column fills the width of the card.
|
1778
|
-
# //
|
1779
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
1780
1865
|
# HorizontalSizeStyle horizontal_size_style = 1;
|
1781
1866
|
#
|
1782
1867
|
# // Specifies whether widgets align to the left, right, or center of a
|
@@ -1785,8 +1870,6 @@ end
|
|
1785
1870
|
#
|
1786
1871
|
# // Specifies whether widgets align to the top, bottom, or center of a
|
1787
1872
|
# // column.
|
1788
|
-
# //
|
1789
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
1790
1873
|
# VerticalAlignment vertical_alignment = 3;
|
1791
1874
|
#
|
1792
1875
|
# // An array of widgets included in a column. Widgets appear in the order
|
@@ -1903,7 +1986,7 @@ end
|
|
1903
1986
|
# // snooze type and snooze time in the list of string parameters.
|
1904
1987
|
# //
|
1905
1988
|
# // To learn more, see
|
1906
|
-
# // [`CommonEventObject`](https://developers.google.com/chat/api/reference/rest/v1/Event#commoneventobject).
|
1989
|
+
# // [`CommonEventObject`](https://developers.google.com/workspace/chat/api/reference/rest/v1/Event#commoneventobject).
|
1907
1990
|
# //
|
1908
1991
|
# // [Google Workspace Add-ons and Chat
|
1909
1992
|
# // apps](https://developers.google.com/workspace/extend):
|
@@ -1929,7 +2012,7 @@ end
|
|
1929
2012
|
# }
|
1930
2013
|
#
|
1931
2014
|
# // Optional. Required when opening a
|
1932
|
-
# // [dialog](https://developers.google.com/chat/
|
2015
|
+
# // [dialog](https://developers.google.com/workspace/chat/dialogs).
|
1933
2016
|
# //
|
1934
2017
|
# // What to do in response to an interaction with a user, such as a user
|
1935
2018
|
# // clicking a button in a card message.
|
@@ -1939,17 +2022,17 @@ end
|
|
1939
2022
|
# //
|
1940
2023
|
# // By specifying an `interaction`, the app can respond in special interactive
|
1941
2024
|
# // ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can
|
1942
|
-
# // open a [dialog](https://developers.google.com/chat/
|
2025
|
+
# // open a [dialog](https://developers.google.com/workspace/chat/dialogs).
|
1943
2026
|
# //
|
1944
2027
|
# // When specified, a loading indicator isn't shown. If specified for
|
1945
2028
|
# // an add-on, the entire card is stripped and nothing is shown in the client.
|
1946
2029
|
# //
|
1947
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
2030
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
1948
2031
|
# enum Interaction {
|
1949
2032
|
# // Default value. The `action` executes as normal.
|
1950
2033
|
# INTERACTION_UNSPECIFIED = 0;
|
1951
2034
|
#
|
1952
|
-
# // Opens a [dialog](https://developers.google.com/chat/
|
2035
|
+
# // Opens a [dialog](https://developers.google.com/workspace/chat/dialogs), a
|
1953
2036
|
# // windowed, card-based interface that Chat apps use to interact with users.
|
1954
2037
|
# //
|
1955
2038
|
# // Only supported by Chat apps in response to button-clicks on card
|
@@ -1957,15 +2040,15 @@ end
|
|
1957
2040
|
# // an add-on, the entire card is stripped and nothing is shown in the
|
1958
2041
|
# // client.
|
1959
2042
|
# //
|
1960
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
2043
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
1961
2044
|
# OPEN_DIALOG = 1;
|
1962
2045
|
# }
|
1963
2046
|
#
|
1964
2047
|
# // A custom function to invoke when the containing element is
|
1965
2048
|
# // clicked or othrwise activated.
|
1966
2049
|
# //
|
1967
|
-
# // For example usage, see [
|
1968
|
-
# //
|
2050
|
+
# // For example usage, see [Read form
|
2051
|
+
# // data](https://developers.google.com/workspace/chat/read-form-data).
|
1969
2052
|
# string function = 1;
|
1970
2053
|
#
|
1971
2054
|
# // List of action parameters.
|
@@ -1982,11 +2065,11 @@ end
|
|
1982
2065
|
# // user make changes while the action is being processed, set
|
1983
2066
|
# // [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator)
|
1984
2067
|
# // to `NONE`. For [card
|
1985
|
-
# // messages](https://developers.google.com/chat/api/guides/v1/messages/create#create)
|
2068
|
+
# // messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create)
|
1986
2069
|
# // in Chat apps, you must also set the action's
|
1987
|
-
# // [`ResponseType`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#responsetype)
|
2070
|
+
# // [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype)
|
1988
2071
|
# // to `UPDATE_MESSAGE` and use the same
|
1989
|
-
# // [`card_id`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#CardWithId)
|
2072
|
+
# // [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId)
|
1990
2073
|
# // from the card that contained the action.
|
1991
2074
|
# //
|
1992
2075
|
# // If `false`, the form values are cleared when the action is triggered.
|
@@ -1997,7 +2080,7 @@ end
|
|
1997
2080
|
# bool persist_values = 4;
|
1998
2081
|
#
|
1999
2082
|
# // Optional. Required when opening a
|
2000
|
-
# // [dialog](https://developers.google.com/chat/
|
2083
|
+
# // [dialog](https://developers.google.com/workspace/chat/dialogs).
|
2001
2084
|
# //
|
2002
2085
|
# // What to do in response to an interaction with a user, such as a user
|
2003
2086
|
# // clicking a button in a card message.
|
@@ -2007,10 +2090,10 @@ end
|
|
2007
2090
|
# //
|
2008
2091
|
# // By specifying an `interaction`, the app can respond in special interactive
|
2009
2092
|
# // ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can
|
2010
|
-
# // open a [dialog](https://developers.google.com/chat/
|
2093
|
+
# // open a [dialog](https://developers.google.com/workspace/chat/dialogs). When
|
2011
2094
|
# // specified, a loading indicator isn't shown. If specified for
|
2012
2095
|
# // an add-on, the entire card is stripped and nothing is shown in the client.
|
2013
2096
|
# //
|
2014
|
-
# // [Google Chat apps](https://developers.google.com/chat):
|
2097
|
+
# // [Google Chat apps](https://developers.google.com/workspace/chat):
|
2015
2098
|
# Interaction interaction = 5;
|
2016
2099
|
# }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apps-card-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: googleapis-common-protos-types
|