Skip to content

Commit d07fe32

Browse files
feat(all): auto-regenerate discovery clients (#2279)
1 parent 510f0f9 commit d07fe32

File tree

10 files changed

+232
-76
lines changed

10 files changed

+232
-76
lines changed

chat/v1/chat-api.json

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@
957957
}
958958
}
959959
},
960-
"revision": "20231114",
960+
"revision": "20231121",
961961
"rootUrl": "https://chat.googleapis.com/",
962962
"schemas": {
963963
"ActionParameter": {
@@ -981,7 +981,7 @@
981981
"properties": {
982982
"dialogAction": {
983983
"$ref": "DialogAction",
984-
"description": "Input only. A response to an event related to a [dialog](https://developers.google.com/chat/how-tos/dialogs). Must be accompanied by `ResponseType.Dialog`."
984+
"description": "Input only. A response to an interaction event related to a [dialog](https://developers.google.com/chat/how-tos/dialogs). Must be accompanied by `ResponseType.Dialog`."
985985
},
986986
"type": {
987987
"description": "Input only. The type of Chat app response.",
@@ -991,18 +991,24 @@
991991
"UPDATE_MESSAGE",
992992
"UPDATE_USER_MESSAGE_CARDS",
993993
"REQUEST_CONFIG",
994-
"DIALOG"
994+
"DIALOG",
995+
"UPDATE_WIDGET"
995996
],
996997
"enumDescriptions": [
997998
"Default type that's handled as `NEW_MESSAGE`.",
998999
"Post as a new message in the topic.",
9991000
"Update the Chat app's message. This is only permitted on a `CARD_CLICKED` event where the message sender type is `BOT`.",
10001001
"Update the cards on a user's message. This is only permitted as a response to a `MESSAGE` event with a matched url, or a `CARD_CLICKED` event where the message sender type is `HUMAN`. Text is ignored.",
10011002
"Privately ask the user for additional authentication or configuration.",
1002-
"Presents a [dialog](https://developers.google.com/chat/how-tos/dialogs)."
1003+
"Presents a [dialog](https://developers.google.com/chat/how-tos/dialogs).",
1004+
"Widget text autocomplete options query."
10031005
],
10041006
"type": "string"
10051007
},
1008+
"updatedWidget": {
1009+
"$ref": "UpdatedWidget",
1010+
"description": "Input only. The response of the updated widget."
1011+
},
10061012
"url": {
10071013
"description": "Input only. URL for users to authenticate or configure. (Only for `REQUEST_CONFIG` response types.)",
10081014
"type": "string"
@@ -1561,14 +1567,16 @@
15611567
"MESSAGE",
15621568
"ADDED_TO_SPACE",
15631569
"REMOVED_FROM_SPACE",
1564-
"CARD_CLICKED"
1570+
"CARD_CLICKED",
1571+
"WIDGET_UPDATED"
15651572
],
15661573
"enumDescriptions": [
15671574
"Default value for the enum. DO NOT USE.",
15681575
"A user sends the Chat app a message, or invokes the Chat app in a space.",
15691576
"A user adds the Chat app to a space, or a Google Workspace administrator installs the Chat app in direct message spaces for users in their organization.",
15701577
"A user removes the Chat app from a space.",
1571-
"A user clicks an interactive element of a card or dialog from a Chat app, such as a button. If a user interacts with a dialog, the `CARD_CLICKED` interaction event's `isDialogEvent` field is set to `true` and includes a [`DialogEventType`](https://developers.google.com/chat/api/reference/rest/v1/DialogEventType)."
1578+
"A user clicks an interactive element of a card or dialog from a Chat app, such as a button. If a user interacts with a dialog, the `CARD_CLICKED` interaction event's `isDialogEvent` field is set to `true` and includes a [`DialogEventType`](https://developers.google.com/chat/api/reference/rest/v1/DialogEventType).",
1579+
"A user updates a widget in a card message or dialog."
15721580
],
15731581
"type": "string"
15741582
},
@@ -3310,6 +3318,20 @@
33103318
},
33113319
"type": "object"
33123320
},
3321+
"SelectionItems": {
3322+
"description": "List of widget autocomplete results.",
3323+
"id": "SelectionItems",
3324+
"properties": {
3325+
"items": {
3326+
"description": "An array of the SelectionItem objects.",
3327+
"items": {
3328+
"$ref": "GoogleAppsCardV1SelectionItem"
3329+
},
3330+
"type": "array"
3331+
}
3332+
},
3333+
"type": "object"
3334+
},
33133335
"SetUpSpaceRequest": {
33143336
"id": "SetUpSpaceRequest",
33153337
"properties": {
@@ -3622,6 +3644,21 @@
36223644
},
36233645
"type": "object"
36243646
},
3647+
"UpdatedWidget": {
3648+
"description": "The response of the updated widget. Used to provide autocomplete options for a widget.",
3649+
"id": "UpdatedWidget",
3650+
"properties": {
3651+
"suggestions": {
3652+
"$ref": "SelectionItems",
3653+
"description": "List of widget autocomplete results"
3654+
},
3655+
"widget": {
3656+
"description": "The ID of the updated widget. The ID must match the one for the widget that triggered the update request.",
3657+
"type": "string"
3658+
}
3659+
},
3660+
"type": "object"
3661+
},
36253662
"UploadAttachmentRequest": {
36263663
"id": "UploadAttachmentRequest",
36273664
"properties": {

chat/v1/chat-gen.go

Lines changed: 70 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chromepolicy/v1/chromepolicy-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
}
558558
}
559559
},
560-
"revision": "20231011",
560+
"revision": "20231127",
561561
"rootUrl": "https://chromepolicy.googleapis.com/",
562562
"schemas": {
563563
"GoogleChromePolicyVersionsV1AdditionalTargetKeyName": {
@@ -1628,7 +1628,7 @@
16281628
"type": "integer"
16291629
},
16301630
"proto3Optional": {
1631-
"description": "If true, this is a proto3 \"optional\". When a proto3 field is optional, it tracks presence regardless of field type. When proto3_optional is true, this field must be belong to a oneof to signal to old proto3 clients that presence is tracked for this field. This oneof is known as a \"synthetic\" oneof, and this field must be its sole member (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs exist in the descriptor only, and do not generate any API. Synthetic oneofs must be ordered after all \"real\" oneofs. For message fields, proto3_optional doesn't create any semantic change, since non-repeated message fields always track presence. However it still indicates the semantic detail of whether the user wrote \"optional\" or not. This can be useful for round-tripping the .proto file. For consistency we give message fields a synthetic oneof also, even though it is not required to track presence. This is especially important because the parser can't tell if a field is a message or an enum, so it must always create a synthetic oneof. Proto2 optional fields do not set this flag, because they already indicate optional with `LABEL_OPTIONAL`.",
1631+
"description": "If true, this is a proto3 \"optional\". When a proto3 field is optional, it tracks presence regardless of field type. When proto3_optional is true, this field must belong to a oneof to signal to old proto3 clients that presence is tracked for this field. This oneof is known as a \"synthetic\" oneof, and this field must be its sole member (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs exist in the descriptor only, and do not generate any API. Synthetic oneofs must be ordered after all \"real\" oneofs. For message fields, proto3_optional doesn't create any semantic change, since non-repeated message fields always track presence. However it still indicates the semantic detail of whether the user wrote \"optional\" or not. This can be useful for round-tripping the .proto file. For consistency we give message fields a synthetic oneof also, even though it is not required to track presence. This is especially important because the parser can't tell if a field is a message or an enum, so it must always create a synthetic oneof. Proto2 optional fields do not set this flag, because they already indicate optional with `LABEL_OPTIONAL`.",
16321632
"type": "boolean"
16331633
},
16341634
"type": {

chromepolicy/v1/chromepolicy-gen.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

networksecurity/v1beta1/networksecurity-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,7 @@
19851985
],
19861986
"parameters": {
19871987
"firewallEndpointAssociationId": {
1988-
"description": "Required. Id of the requesting object. If auto-generating Id server-side, remove this field and firewall_endpoint_association_id from the method_signature of Create RPC.",
1988+
"description": "Optional. Id of the requesting object. If auto-generating Id server-side, remove this field and firewall_endpoint_association_id from the method_signature of Create RPC.",
19891989
"location": "query",
19901990
"type": "string"
19911991
},
@@ -3162,7 +3162,7 @@
31623162
}
31633163
}
31643164
},
3165-
"revision": "20230920",
3165+
"revision": "20231101",
31663166
"rootUrl": "https://networksecurity.googleapis.com/",
31673167
"schemas": {
31683168
"AddAddressGroupItemsRequest": {

networksecurity/v1beta1/networksecurity-gen.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)