From 465e95b0a0edfc30c6e3b4565ea85bc51afce578 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 31 May 2023 00:24:12 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2007) --- .../v1/androidmanagement-api.json | 3 +- androidmanagement/v1/androidmanagement-gen.go | 1 + .../v1/authorizedbuyersmarketplace-api.json | 18 +- .../v1/authorizedbuyersmarketplace-gen.go | 44 +- chat/v1/chat-api.json | 84 ++- chat/v1/chat-gen.go | 425 ++++++------- classroom/v1/classroom-api.json | 4 +- classroom/v1/classroom-gen.go | 8 +- cloudfunctions/v2/cloudfunctions-api.json | 7 +- cloudfunctions/v2/cloudfunctions-gen.go | 3 + .../v2alpha/cloudfunctions-api.json | 7 +- cloudfunctions/v2alpha/cloudfunctions-gen.go | 3 + cloudfunctions/v2beta/cloudfunctions-api.json | 7 +- cloudfunctions/v2beta/cloudfunctions-gen.go | 3 + contentwarehouse/v1/contentwarehouse-api.json | 348 ++++++++--- contentwarehouse/v1/contentwarehouse-gen.go | 370 +++++++++--- displayvideo/v1/displayvideo-api.json | 60 +- displayvideo/v1/displayvideo-gen.go | 55 +- displayvideo/v2/displayvideo-api.json | 60 +- displayvideo/v2/displayvideo-gen.go | 55 +- .../v1beta/firebaseappcheck-api.json | 125 +++- .../v1beta/firebaseappcheck-gen.go | 569 +++++++++++++++++- playintegrity/v1/playintegrity-api.json | 8 +- playintegrity/v1/playintegrity-gen.go | 5 + pubsub/v1/pubsub-api.json | 3 +- pubsub/v1/pubsub-gen.go | 1 + retail/v2/retail-api.json | 4 +- retail/v2/retail-gen.go | 21 +- retail/v2alpha/retail-api.json | 4 +- retail/v2alpha/retail-gen.go | 21 +- retail/v2beta/retail-api.json | 4 +- retail/v2beta/retail-gen.go | 21 +- sheets/v4/sheets-api.json | 4 +- sheets/v4/sheets-gen.go | 34 +- testing/v1/testing-api.json | 12 +- testing/v1/testing-gen.go | 7 + 36 files changed, 1781 insertions(+), 627 deletions(-) diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 1bc5e94a101..4a296687a5e 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -115,6 +115,7 @@ "parameterOrder": [], "parameters": { "agreementAccepted": { + "deprecated": true, "description": "Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https://www.android.com/enterprise/terms/). Do not set this field for any customer-managed enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all EMM-managed enterprises (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).", "location": "query", "type": "boolean" @@ -1065,7 +1066,7 @@ } } }, - "revision": "20230516", + "revision": "20230522", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 810e11edb36..d45a50e2daa 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -6966,6 +6966,7 @@ func (c *EnterprisesCreateCall) Do(opts ...googleapi.CallOption) (*Enterprise, e // "parameterOrder": [], // "parameters": { // "agreementAccepted": { + // "deprecated": true, // "description": "Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https://www.android.com/enterprise/terms/). Do not set this field for any customer-managed enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all EMM-managed enterprises (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).", // "location": "query", // "type": "boolean" diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json index 127e52be53d..4ac40bda267 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json @@ -119,7 +119,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", "location": "query", "type": "string" }, @@ -459,7 +459,7 @@ ], "parameters": { "filter": { - "description": "Query string using the [Filtering Syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported fields for filtering are: * partnerClientId Use this field to filter the clients by the partnerClientId. For example, if the partnerClientId of the client is \"1234\", the value of this field should be `partnerClientId = \"1234\"`, in order to get only the client whose partnerClientId is \"1234\" in the response.", + "description": "Query string using the [Filtering Syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported fields for filtering are: * partnerClientId Use this field to filter the clients by the partnerClientId. For example, if the partnerClientId of the client is \"1234\", the value of this field should be `partnerClientId = \"1234\"`, in order to get only the client whose partnerClientId is \"1234\" in the response.", "location": "query", "type": "string" }, @@ -767,7 +767,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", "location": "query", "type": "string" }, @@ -976,7 +976,7 @@ ] }, "get": { - "description": "Gets a proposal using its name. The proposal is returned at most recent revision. revision.", + "description": "Gets a proposal using its resource name. The proposal is returned at the latest revision.", "flatPath": "v1/buyers/{buyersId}/proposals/{proposalsId}", "httpMethod": "GET", "id": "authorizedbuyersmarketplace.buyers.proposals.get", @@ -1001,7 +1001,7 @@ ] }, "list": { - "description": "Lists proposals. A filter expression (list filter syntax) may be specified to filter the results. This will not list finalized versions of proposals that are being renegotiated; to retrieve these use the finalizedProposals resource.", + "description": "Lists proposals. A filter expression using [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) may be specified to filter the results.", "flatPath": "v1/buyers/{buyersId}/proposals", "httpMethod": "GET", "id": "authorizedbuyersmarketplace.buyers.proposals.list", @@ -1010,7 +1010,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * displayName * dealType * updateTime * state", + "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * displayName * dealType * updateTime * state", "location": "query", "type": "string" }, @@ -1042,7 +1042,7 @@ ] }, "patch": { - "description": "Updates the proposal at the given revision number. If the revision number in the request is behind the latest from the server, an error message will be returned. See FieldMask for how to use FieldMask. Only fields specified in the UpdateProposalRequest.update_mask will be updated; Fields noted as 'Immutable' or 'Output only' yet specified in the UpdateProposalRequest.update_mask will be ignored and left unchanged. Updating a private auction proposal is not allowed and will result in an error.", + "description": "Updates the proposal at the given revision number. If the revision number in the request is behind the latest one kept in the server, an error message will be returned. See FieldMask for how to use FieldMask. Only fields specified in the UpdateProposalRequest.update_mask will be updated; Fields noted as 'Immutable' or 'Output only' yet specified in the UpdateProposalRequest.update_mask will be ignored and left unchanged. Updating a private auction proposal is not allowed and will result in an error.", "flatPath": "v1/buyers/{buyersId}/proposals/{proposalsId}", "httpMethod": "PATCH", "id": "authorizedbuyersmarketplace.buyers.proposals.patch", @@ -1271,7 +1271,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering] (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) syntax.", + "description": "Optional query string using the [Cloud API list filtering] (https://developers.google.com/authorized-buyers/apis/guides/list-filters) syntax.", "location": "query", "type": "string" }, @@ -1307,7 +1307,7 @@ } } }, - "revision": "20230508", + "revision": "20230530", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go index 0ec568e31d5..0af82549499 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go @@ -2960,7 +2960,7 @@ func (r *BiddersFinalizedDealsService) List(parent string) *BiddersFinalizedDeal // Filter sets the optional parameter "filter": Optional query string // using the Cloud API list filtering syntax -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported columns for filtering are: * deal.displayName * // deal.dealType * deal.createTime * deal.updateTime * // deal.flightStartTime * deal.flightEndTime * dealServingStatus @@ -3109,7 +3109,7 @@ func (c *BiddersFinalizedDealsListCall) Do(opts ...googleapi.CallOption) (*ListF // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", // "location": "query", // "type": "string" // }, @@ -4692,7 +4692,7 @@ func (r *BuyersClientsService) List(parent string) *BuyersClientsListCall { // Filter sets the optional parameter "filter": Query string using the // Filtering Syntax -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported fields for filtering are: * partnerClientId Use this field // to filter the clients by the partnerClientId. For example, if the // partnerClientId of the client is "1234", the value of this field @@ -4827,7 +4827,7 @@ func (c *BuyersClientsListCall) Do(opts ...googleapi.CallOption) (*ListClientsRe // ], // "parameters": { // "filter": { - // "description": "Query string using the [Filtering Syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported fields for filtering are: * partnerClientId Use this field to filter the clients by the partnerClientId. For example, if the partnerClientId of the client is \"1234\", the value of this field should be `partnerClientId = \"1234\"`, in order to get only the client whose partnerClientId is \"1234\" in the response.", + // "description": "Query string using the [Filtering Syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported fields for filtering are: * partnerClientId Use this field to filter the clients by the partnerClientId. For example, if the partnerClientId of the client is \"1234\", the value of this field should be `partnerClientId = \"1234\"`, in order to get only the client whose partnerClientId is \"1234\" in the response.", // "location": "query", // "type": "string" // }, @@ -6294,7 +6294,7 @@ func (r *BuyersFinalizedDealsService) List(parent string) *BuyersFinalizedDealsL // Filter sets the optional parameter "filter": Optional query string // using the Cloud API list filtering syntax -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported columns for filtering are: * deal.displayName * // deal.dealType * deal.createTime * deal.updateTime * // deal.flightStartTime * deal.flightEndTime * dealServingStatus @@ -6443,7 +6443,7 @@ func (c *BuyersFinalizedDealsListCall) Do(opts ...googleapi.CallOption) (*ListFi // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", // "location": "query", // "type": "string" // }, @@ -7401,8 +7401,8 @@ type BuyersProposalsGetCall struct { header_ http.Header } -// Get: Gets a proposal using its name. The proposal is returned at most -// recent revision. revision. +// Get: Gets a proposal using its resource name. The proposal is +// returned at the latest revision. // // - name: Name of the proposal. Format: // `buyers/{accountId}/proposals/{proposalId}`. @@ -7511,7 +7511,7 @@ func (c *BuyersProposalsGetCall) Do(opts ...googleapi.CallOption) (*Proposal, er } return ret, nil // { - // "description": "Gets a proposal using its name. The proposal is returned at most recent revision. revision.", + // "description": "Gets a proposal using its resource name. The proposal is returned at the latest revision.", // "flatPath": "v1/buyers/{buyersId}/proposals/{proposalsId}", // "httpMethod": "GET", // "id": "authorizedbuyersmarketplace.buyers.proposals.get", @@ -7549,10 +7549,10 @@ type BuyersProposalsListCall struct { header_ http.Header } -// List: Lists proposals. A filter expression (list filter syntax) may -// be specified to filter the results. This will not list finalized -// versions of proposals that are being renegotiated; to retrieve these -// use the finalizedProposals resource. +// List: Lists proposals. A filter expression using Cloud API list +// filtering syntax +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) +// may be specified to filter the results. // // - parent: Parent that owns the collection of proposals Format: // `buyers/{accountId}`. @@ -7564,7 +7564,7 @@ func (r *BuyersProposalsService) List(parent string) *BuyersProposalsListCall { // Filter sets the optional parameter "filter": Optional query string // using the Cloud API list filtering syntax -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported columns for filtering are: * displayName * dealType * // updateTime * state func (c *BuyersProposalsListCall) Filter(filter string) *BuyersProposalsListCall { @@ -7686,7 +7686,7 @@ func (c *BuyersProposalsListCall) Do(opts ...googleapi.CallOption) (*ListProposa } return ret, nil // { - // "description": "Lists proposals. A filter expression (list filter syntax) may be specified to filter the results. This will not list finalized versions of proposals that are being renegotiated; to retrieve these use the finalizedProposals resource.", + // "description": "Lists proposals. A filter expression using [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) may be specified to filter the results.", // "flatPath": "v1/buyers/{buyersId}/proposals", // "httpMethod": "GET", // "id": "authorizedbuyersmarketplace.buyers.proposals.list", @@ -7695,7 +7695,7 @@ func (c *BuyersProposalsListCall) Do(opts ...googleapi.CallOption) (*ListProposa // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * displayName * dealType * updateTime * state", + // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * displayName * dealType * updateTime * state", // "location": "query", // "type": "string" // }, @@ -7762,9 +7762,9 @@ type BuyersProposalsPatchCall struct { } // Patch: Updates the proposal at the given revision number. If the -// revision number in the request is behind the latest from the server, -// an error message will be returned. See FieldMask for how to use -// FieldMask. Only fields specified in the +// revision number in the request is behind the latest one kept in the +// server, an error message will be returned. See FieldMask for how to +// use FieldMask. Only fields specified in the // UpdateProposalRequest.update_mask will be updated; Fields noted as // 'Immutable' or 'Output only' yet specified in the // UpdateProposalRequest.update_mask will be ignored and left unchanged. @@ -7887,7 +7887,7 @@ func (c *BuyersProposalsPatchCall) Do(opts ...googleapi.CallOption) (*Proposal, } return ret, nil // { - // "description": "Updates the proposal at the given revision number. If the revision number in the request is behind the latest from the server, an error message will be returned. See FieldMask for how to use FieldMask. Only fields specified in the UpdateProposalRequest.update_mask will be updated; Fields noted as 'Immutable' or 'Output only' yet specified in the UpdateProposalRequest.update_mask will be ignored and left unchanged. Updating a private auction proposal is not allowed and will result in an error.", + // "description": "Updates the proposal at the given revision number. If the revision number in the request is behind the latest one kept in the server, an error message will be returned. See FieldMask for how to use FieldMask. Only fields specified in the UpdateProposalRequest.update_mask will be updated; Fields noted as 'Immutable' or 'Output only' yet specified in the UpdateProposalRequest.update_mask will be ignored and left unchanged. Updating a private auction proposal is not allowed and will result in an error.", // "flatPath": "v1/buyers/{buyersId}/proposals/{proposalsId}", // "httpMethod": "PATCH", // "id": "authorizedbuyersmarketplace.buyers.proposals.patch", @@ -8909,7 +8909,7 @@ func (r *BuyersPublisherProfilesService) List(parent string) *BuyersPublisherPro // Filter sets the optional parameter "filter": Optional query string // using the [Cloud API list filtering] -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // syntax. func (c *BuyersPublisherProfilesListCall) Filter(filter string) *BuyersPublisherProfilesListCall { c.urlParams_.Set("filter", filter) @@ -9040,7 +9040,7 @@ func (c *BuyersPublisherProfilesListCall) Do(opts ...googleapi.CallOption) (*Lis // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering] (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) syntax.", + // "description": "Optional query string using the [Cloud API list filtering] (https://developers.google.com/authorized-buyers/apis/guides/list-filters) syntax.", // "location": "query", // "type": "string" // }, diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 2554abf9938..baf43738d40 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -175,7 +175,7 @@ "supportsMediaDownload": true }, "upload": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Uploads an attachment. Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users). You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?\u0026co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).", + "description": "Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.create` authorization scope. You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?\u0026co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).", "flatPath": "v1/spaces/{spacesId}/attachments:upload", "httpMethod": "POST", "id": "chat.media.upload", @@ -225,7 +225,7 @@ "spaces": { "methods": { "create": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a named space. Spaces grouped by topics or that have guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", + "description": "Creates a named space. Spaces grouped by topics or that have guest access aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", "flatPath": "v1/spaces", "httpMethod": "POST", "id": "chat.spaces.create", @@ -250,7 +250,7 @@ ] }, "delete": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space, and the `chat.delete` scope.", + "description": "Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space, and the `chat.delete` scope.", "flatPath": "v1/spaces/{spacesId}", "httpMethod": "DELETE", "id": "chat.spaces.delete", @@ -275,7 +275,7 @@ ] }, "findDirectMessage": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Returns the existing direct message with the specified user. With [user authentication](https://developers.google.com/chat/api/guides/auth/users), returns the direct message space between the specified user and the authenticated user. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), returns the direct message space between the specified user and the calling Chat app. If no direct message space is found, returns a `404 NOT_FOUND` error. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) or [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + "description": "Returns the existing direct message with the specified user. If no direct message space is found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [user authentication](https://developers.google.com/chat/api/guides/auth/users), returns the direct message space between the specified user and the authenticated user. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), returns the direct message space between the specified user and the calling Chat app. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) or [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", "flatPath": "v1/spaces:findDirectMessage", "httpMethod": "GET", "id": "chat.spaces.findDirectMessage", @@ -298,7 +298,7 @@ ] }, "get": { - "description": "Returns a space. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope.", + "description": "Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope.", "flatPath": "v1/spaces/{spacesId}", "httpMethod": "GET", "id": "chat.spaces.get", @@ -325,14 +325,14 @@ ] }, "list": { - "description": "Lists spaces the caller is a member of. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.", + "description": "Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/chat/api/guides/v1/spaces/list). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.", "flatPath": "v1/spaces", "httpMethod": "GET", "id": "chat.spaces.list", "parameterOrder": [], "parameters": { "filter": { - "description": "Optional. A query filter. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can't be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = \"SPACE\" spaceType = \"GROUP_CHAT\" OR spaceType = \"DIRECT_MESSAGE\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), this field is ignored and the query always returns all spaces. But the Chat API still validates the query syntax with service accounts, so invalid queries are still rejected. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Optional. A query filter. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can't be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = \"SPACE\" spaceType = \"GROUP_CHAT\" OR spaceType = \"DIRECT_MESSAGE\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), this field is ignored and the query always returns all spaces. But the Chat API still validates the query syntax with service accounts, so invalid queries are still rejected.", "location": "query", "type": "string" }, @@ -359,7 +359,7 @@ ] }, "patch": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Updates a space. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.", + "description": "Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.", "flatPath": "v1/spaces/{spacesId}", "httpMethod": "PATCH", "id": "chat.spaces.patch", @@ -393,7 +393,7 @@ ] }, "setup": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by including a membership with `users/123456789` as the `member.name`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to true and don't specify any memberships. You can only use this method to add app memberships to DMs. To add the calling app as a member of other space types, use [create membership](https://developers.google.com/chat/api/reference/rest/v1/spaces.members/create) If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies or guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", + "description": "Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space](https://developers.google.com/chat/api/guides/v1/spaces/set-up). To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by including a membership with `users/123456789` as the `member.name`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see [create a membership](https://developers.google.com/chat/api/guides/v1/members/create). If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies or guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", "flatPath": "v1/spaces:setup", "httpMethod": "POST", "id": "chat.spaces.setup", @@ -416,7 +416,7 @@ "members": { "methods": { "create": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` (for human membership) or `chat.memberships.app` (for app membership) scope. To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add the calling app to the space, use `users/app`. - To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/123456789`.", + "description": "Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. For an example, see [ Create a membership](https://developers.google.com/chat/api/guides/v1/members/create). When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` (for human membership) or `chat.memberships.app` (for app membership) scope. To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add the calling app to a space or a direct message between two human users, use `users/app`. Unable to add other apps to the space. - To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/123456789`.", "flatPath": "v1/spaces/{spacesId}/members", "httpMethod": "POST", "id": "chat.spaces.members.create", @@ -445,7 +445,7 @@ ] }, "delete": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a membership. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` or `chat.memberships.app` authorization scope.", + "description": "Deletes a membership. For an example, see [Delete a membership](https://developers.google.com/chat/api/guides/v1/members/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` or `chat.memberships.app` authorization scope.", "flatPath": "v1/spaces/{spacesId}/members/{membersId}", "httpMethod": "DELETE", "id": "chat.spaces.members.delete", @@ -471,7 +471,7 @@ ] }, "get": { - "description": "Returns a membership. Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", + "description": "Returns details about a membership. For an example, see [Get a membership](https://developers.google.com/chat/api/guides/v1/members/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", "flatPath": "v1/spaces/{spacesId}/members/{membersId}", "httpMethod": "GET", "id": "chat.spaces.members.get", @@ -498,7 +498,7 @@ ] }, "list": { - "description": "Lists memberships in a space. Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", + "description": "Lists memberships in a space. For an example, see [List memberships](https://developers.google.com/chat/api/guides/v1/members/list). Listing memberships with [app authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with [User authentication](https://developers.google.com/chat/api/guides/auth/users) lists memberships in spaces that the authenticated user has access to. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", "flatPath": "v1/spaces/{spacesId}/members", "httpMethod": "GET", "id": "chat.spaces.members.list", @@ -550,7 +550,7 @@ "messages": { "methods": { "create": { - "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", + "description": "Creates a message. For an example, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Creating a text message supports both [user authentication](https://developers.google.com/chat/api/guides/auth/users) and [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Creating a card message requires [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts) Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", "flatPath": "v1/spaces/{spacesId}/messages", "httpMethod": "POST", "id": "chat.spaces.messages.create", @@ -559,7 +559,7 @@ ], "parameters": { "messageId": { - "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", "location": "query", "type": "string" }, @@ -611,7 +611,7 @@ ] }, "delete": { - "description": "Deletes a message. For example usage, see [Delete a message](https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + "description": "Deletes a message. For an example, see [Delete a message](https://developers.google.com/chat/api/guides/v1/messages/delete). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "DELETE", "id": "chat.spaces.messages.delete", @@ -642,7 +642,7 @@ ] }, "get": { - "description": "Returns a message. For example usage, see [Read a message](https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [Service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", + "description": "Returns details about a message. For an example, see [Read a message](https://developers.google.com/chat/api/guides/v1/messages/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "GET", "id": "chat.spaces.messages.get", @@ -669,7 +669,7 @@ ] }, "list": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", + "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", "flatPath": "v1/spaces/{spacesId}/messages", "httpMethod": "GET", "id": "chat.spaces.messages.list", @@ -721,7 +721,7 @@ ] }, "patch": { - "description": "Updates a message. There's a difference between `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + "description": "Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "PATCH", "id": "chat.spaces.messages.patch", @@ -742,7 +742,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` ", + "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -761,7 +761,7 @@ ] }, "update": { - "description": "Updates a message. There's a difference between `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + "description": "Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "PUT", "id": "chat.spaces.messages.update", @@ -782,7 +782,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` ", + "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -805,7 +805,7 @@ "attachments": { "methods": { "get": { - "description": "Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/chat/api/reference/rest/v1/media/download). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + "description": "Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/chat/api/reference/rest/v1/media/download). For an example, see [Get a message attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/get). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/attachments/{attachmentsId}", "httpMethod": "GET", "id": "chat.spaces.messages.attachments.get", @@ -834,7 +834,7 @@ "reactions": { "methods": { "create": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a reaction and adds it to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages`, `chat.messages.reactions`, or `chat.messages.reactions.create` scope. Only unicode emoji are supported.", + "description": "Creates a reaction and adds it to a message. For an example, see [Create a reaction](https://developers.google.com/chat/api/guides/v1/reactions/create). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages`, `chat.messages.reactions`, or `chat.messages.reactions.create` scope. Only unicode emoji are supported.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions", "httpMethod": "POST", "id": "chat.spaces.messages.reactions.create", @@ -864,7 +864,7 @@ ] }, "delete": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a reaction to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.reactions` scope.", + "description": "Deletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/chat/api/guides/v1/reactions/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.reactions` scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions/{reactionsId}", "httpMethod": "DELETE", "id": "chat.spaces.messages.reactions.delete", @@ -890,7 +890,7 @@ ] }, "list": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Lists reactions to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.messages.reactions.readonly` scope.", + "description": "Lists reactions to a message. For an example, see [List reactions](https://developers.google.com/chat/api/guides/v1/reactions/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.messages.reactions.readonly` scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions", "httpMethod": "GET", "id": "chat.spaces.messages.reactions.list", @@ -940,7 +940,7 @@ } } }, - "revision": "20230521", + "revision": "20230525", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1140,7 +1140,7 @@ "id": "AttachmentDataRef", "properties": { "attachmentUploadToken": { - "description": "Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.", "type": "string" }, "resourceName": { @@ -1382,7 +1382,7 @@ "type": "object" }, "CustomEmoji": { - "description": "Represents a custom emoji. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Represents a custom emoji.", "id": "CustomEmoji", "properties": { "uid": { @@ -1425,7 +1425,7 @@ "type": "object" }, "DeletionMetadata": { - "description": "Information about a deleted message. A message is deleted when `delete_time` is set. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Information about a deleted message. A message is deleted when `delete_time` is set.", "id": "DeletionMetadata", "properties": { "deletionType": { @@ -1573,7 +1573,7 @@ "type": "object" }, "Emoji": { - "description": "An emoji that is used as a reaction to a message. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "An emoji that is used as a reaction to a message.", "id": "Emoji", "properties": { "customEmoji": { @@ -1589,7 +1589,7 @@ "type": "object" }, "EmojiReactionSummary": { - "description": "The number of people who reacted to a message with a specific emoji. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "The number of people who reacted to a message with a specific emoji.", "id": "EmojiReactionSummary", "properties": { "emoji": { @@ -2009,7 +2009,7 @@ "id": "GoogleAppsCardV1DecoratedText", "properties": { "bottomLabel": { - "description": "The text that appears below `text`. Always truncates.", + "description": "The text that appears below `text`. Always wraps.", "type": "string" }, "button": { @@ -3043,7 +3043,7 @@ "type": "array" }, "clientAssignedMessageId": { - "description": "A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + "description": "A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", "type": "string" }, "createTime": { @@ -3053,18 +3053,18 @@ "type": "string" }, "deleteTime": { - "description": "Output only. The time at which the message was deleted in Google Chat server. If the message is never deleted, this field is empty. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Output only. The time at which the message was deleted in Google Chat. If the message is never deleted, this field is empty.", "format": "google-datetime", "readOnly": true, "type": "string" }, "deletionMetadata": { "$ref": "DeletionMetadata", - "description": "Output only. Information about a deleted message. A message is deleted when `delete_time` is set. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Output only. Information about a deleted message. A message is deleted when `delete_time` is set.", "readOnly": true }, "emojiReactionSummaries": { - "description": "Output only. The list of emoji reaction summaries on the message. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Output only. The list of emoji reaction summaries on the message.", "items": { "$ref": "EmojiReactionSummary" }, @@ -3147,7 +3147,7 @@ "type": "object" }, "Reaction": { - "description": "A reaction to a message. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "A reaction to a message.", "id": "Reaction", "properties": { "emoji": { @@ -3185,7 +3185,6 @@ "type": "object" }, "SetUpSpaceRequest": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview).", "id": "SetUpSpaceRequest", "properties": { "memberships": { @@ -3282,7 +3281,7 @@ "description": "Details about the space including description and rules." }, "spaceHistoryState": { - "description": "The message history state for messages and threads in this space. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "The message history state for messages and threads in this space.", "enum": [ "HISTORY_STATE_UNSPECIFIED", "HISTORY_OFF", @@ -3313,7 +3312,7 @@ "type": "string" }, "spaceType": { - "description": "The type of space. Required when creating or updating a space. Output only for other usage. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "The type of space. Required when creating a space or updating the space type of a space. Output only for other usage.", "enum": [ "SPACE_TYPE_UNSPECIFIED", "SPACE", @@ -3334,7 +3333,7 @@ "type": "boolean" }, "type": { - "description": "Output only. Deprecated: Use `singleUserBotDm` or `spaceType` (developer preview) instead. The type of a space.", + "description": "Output only. Deprecated: Use `space_type` instead. The type of a space.", "enum": [ "TYPE_UNSPECIFIED", "ROOM", @@ -3481,7 +3480,6 @@ "type": "object" }, "UploadAttachmentRequest": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview).", "id": "UploadAttachmentRequest", "properties": { "filename": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 7c8d9730d69..717045226f8 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -600,8 +600,7 @@ func (s *Attachment) MarshalJSON() ([]byte, error) { type AttachmentDataRef struct { // AttachmentUploadToken: Opaque token containing a reference to an // uploaded attachment. Treated by clients as an opaque string and used - // to create or update Chat messages with attachments. Developer Preview - // (https://developers.google.com/workspace/preview). + // to create or update Chat messages with attachments. AttachmentUploadToken string `json:"attachmentUploadToken,omitempty"` // ResourceName: The resource name of the attachment data. This field is @@ -1063,8 +1062,7 @@ func (s *CommonEventObject) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CustomEmoji: Represents a custom emoji. Developer Preview -// (https://developers.google.com/workspace/preview). +// CustomEmoji: Represents a custom emoji. type CustomEmoji struct { // Uid: Unique key for the custom emoji resource. Uid string `json:"uid,omitempty"` @@ -1155,8 +1153,7 @@ func (s *DateTimeInput) MarshalJSON() ([]byte, error) { } // DeletionMetadata: Information about a deleted message. A message is -// deleted when `delete_time` is set. Developer Preview -// (https://developers.google.com/workspace/preview). +// deleted when `delete_time` is set. type DeletionMetadata struct { // DeletionType: Indicates who deleted the message. // @@ -1395,8 +1392,7 @@ func (s *DriveDataRef) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Emoji: An emoji that is used as a reaction to a message. Developer -// Preview (https://developers.google.com/workspace/preview). +// Emoji: An emoji that is used as a reaction to a message. type Emoji struct { // CustomEmoji: Output only. A custom emoji. CustomEmoji *CustomEmoji `json:"customEmoji,omitempty"` @@ -1428,8 +1424,7 @@ func (s *Emoji) MarshalJSON() ([]byte, error) { } // EmojiReactionSummary: The number of people who reacted to a message -// with a specific emoji. Developer Preview -// (https://developers.google.com/workspace/preview). +// with a specific emoji. type EmojiReactionSummary struct { // Emoji: Emoji associated with the reactions. Emoji *Emoji `json:"emoji,omitempty"` @@ -2191,7 +2186,7 @@ func (s *GoogleAppsCardV1DateTimePicker) MarshalJSON() ([]byte, error) { // optional decorations such as a label above or below the text, an icon // in front of the text, a selection widget, or a button after the text. type GoogleAppsCardV1DecoratedText struct { - // BottomLabel: The text that appears below `text`. Always truncates. + // BottomLabel: The text that appears below `text`. Always wraps. BottomLabel string `json:"bottomLabel,omitempty"` // Button: A button that a user can click to trigger an action. @@ -3887,7 +3882,15 @@ type Message struct { // creation. Must start with `client-` and contain only lowercase // letters, numbers, and hyphens up to 63 characters in length. Specify // this field to get, update, or delete the message with the specified - // value. For example usage, see Name a created message + // value. Assigning a custom name lets a Chat app recall the message + // without saving the message `name` from the response body + // (/chat/api/reference/rest/v1/spaces.messages/get#response-body) + // returned when creating the message. Assigning a custom name doesn't + // replace the generated `name` field, the message's resource name. + // Instead, it sets the custom name as the `clientAssignedMessageId` + // field, which you can reference while processing later operations, + // like updating or deleting the message. For example usage, see Name a + // created message // (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message). ClientAssignedMessageId string `json:"clientAssignedMessageId,omitempty"` @@ -3896,19 +3899,15 @@ type Message struct { CreateTime string `json:"createTime,omitempty"` // DeleteTime: Output only. The time at which the message was deleted in - // Google Chat server. If the message is never deleted, this field is - // empty. Developer Preview - // (https://developers.google.com/workspace/preview). + // Google Chat. If the message is never deleted, this field is empty. DeleteTime string `json:"deleteTime,omitempty"` // DeletionMetadata: Output only. Information about a deleted message. A - // message is deleted when `delete_time` is set. Developer Preview - // (https://developers.google.com/workspace/preview). + // message is deleted when `delete_time` is set. DeletionMetadata *DeletionMetadata `json:"deletionMetadata,omitempty"` // EmojiReactionSummaries: Output only. The list of emoji reaction - // summaries on the message. Developer Preview - // (https://developers.google.com/workspace/preview). + // summaries on the message. EmojiReactionSummaries []*EmojiReactionSummary `json:"emojiReactionSummaries,omitempty"` // FallbackText: A plain-text description of the message's cards, used @@ -4053,8 +4052,7 @@ func (s *OpenLink) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Reaction: A reaction to a message. Developer Preview -// (https://developers.google.com/workspace/preview). +// Reaction: A reaction to a message. type Reaction struct { // Emoji: The emoji used in the reaction. Emoji *Emoji `json:"emoji,omitempty"` @@ -4132,8 +4130,6 @@ func (s *Section) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SetUpSpaceRequest: Developer Preview -// (https://developers.google.com/workspace/preview). type SetUpSpaceRequest struct { // Memberships: Optional. The initial set of in-domain users invited to // join the space. The calling user is automatically added to the space, @@ -4298,8 +4294,7 @@ type Space struct { SpaceDetails *SpaceDetails `json:"spaceDetails,omitempty"` // SpaceHistoryState: The message history state for messages and threads - // in this space. Developer Preview - // (https://developers.google.com/workspace/preview). + // in this space. // // Possible values: // "HISTORY_STATE_UNSPECIFIED" - Default value. Do not use. @@ -4324,9 +4319,8 @@ type Space struct { // and group conversations between 3 or more people. SpaceThreadingState string `json:"spaceThreadingState,omitempty"` - // SpaceType: The type of space. Required when creating or updating a - // space. Output only for other usage. Developer Preview - // (https://developers.google.com/workspace/preview). + // SpaceType: The type of space. Required when creating a space or + // updating the space type of a space. Output only for other usage. // // Possible values: // "SPACE_TYPE_UNSPECIFIED" - Reserved. @@ -4342,8 +4336,8 @@ type Space struct { // Whether messages are threaded in this space. Threaded bool `json:"threaded,omitempty"` - // Type: Output only. Deprecated: Use `singleUserBotDm` or `spaceType` - // (developer preview) instead. The type of a space. + // Type: Output only. Deprecated: Use `space_type` instead. The type of + // a space. // // Possible values: // "TYPE_UNSPECIFIED" @@ -4659,8 +4653,6 @@ func (s *TimeZone) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UploadAttachmentRequest: Developer Preview -// (https://developers.google.com/workspace/preview). type UploadAttachmentRequest struct { // Filename: Required. The filename of the attachment, including the // file extension. @@ -5029,12 +5021,14 @@ type MediaUploadCall struct { header_ http.Header } -// Upload: Developer Preview -// (https://developers.google.com/workspace/preview): Uploads an -// attachment. Requires user authentication -// (https://developers.google.com/chat/api/guides/auth/users). You can -// upload attachments up to 200 MB. Certain file types aren't supported. -// For details, see File types blocked by Google Chat +// Upload: Uploads an attachment. For an example, see Upload media as a +// file attachment +// (https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). +// Requires user authentication +// (https://developers.google.com/chat/api/guides/auth/users) and the +// `chat.messages` or `chat.messages.create` authorization scope. You +// can upload attachments up to 200 MB. Certain file types aren't +// supported. For details, see File types blocked by Google Chat // (https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat). // // - parent: Resource name of the Chat space in which the attachment is @@ -5204,7 +5198,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*UploadAttachmentRes } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Uploads an attachment. Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users). You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?\u0026co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).", + // "description": "Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.create` authorization scope. You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?\u0026co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).", // "flatPath": "v1/spaces/{spacesId}/attachments:upload", // "httpMethod": "POST", // "id": "chat.media.upload", @@ -5262,10 +5256,10 @@ type SpacesCreateCall struct { header_ http.Header } -// Create: Developer Preview -// (https://developers.google.com/workspace/preview): Creates a named -// space. Spaces grouped by topics or that have guest access aren't -// supported. Requires user authentication +// Create: Creates a named space. Spaces grouped by topics or that have +// guest access aren't supported. For an example, see Create a space +// (https://developers.google.com/chat/api/guides/v1/spaces/create). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.spaces.create` or `chat.spaces` scope. func (r *SpacesService) Create(space *Space) *SpacesCreateCall { @@ -5372,7 +5366,7 @@ func (c *SpacesCreateCall) Do(opts ...googleapi.CallOption) (*Space, error) { } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a named space. Spaces grouped by topics or that have guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", + // "description": "Creates a named space. Spaces grouped by topics or that have guest access aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", // "flatPath": "v1/spaces", // "httpMethod": "POST", // "id": "chat.spaces.create", @@ -5409,12 +5403,12 @@ type SpacesDeleteCall struct { header_ http.Header } -// Delete: Developer Preview -// (https://developers.google.com/workspace/preview): Deletes a named -// space. Always performs a cascading delete, which means that the -// space's child resources—like messages posted in the space and -// memberships in the space—are also deleted. Requires user -// authentication +// Delete: Deletes a named space. Always performs a cascading delete, +// which means that the space's child resources—like messages posted +// in the space and memberships in the space—are also deleted. For an +// example, see Delete a space +// (https://developers.google.com/chat/api/guides/v1/spaces/delete). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) from a // user who has permission to delete the space, and the `chat.delete` // scope. @@ -5513,7 +5507,7 @@ func (c *SpacesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space, and the `chat.delete` scope.", + // "description": "Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space, and the `chat.delete` scope.", // "flatPath": "v1/spaces/{spacesId}", // "httpMethod": "DELETE", // "id": "chat.spaces.delete", @@ -5550,17 +5544,17 @@ type SpacesFindDirectMessageCall struct { header_ http.Header } -// FindDirectMessage: Developer Preview -// (https://developers.google.com/workspace/preview): Returns the -// existing direct message with the specified user. With user +// FindDirectMessage: Returns the existing direct message with the +// specified user. If no direct message space is found, returns a `404 +// NOT_FOUND` error. For an example, see Find a direct message +// (/chat/api/guides/v1/spaces/find-direct-message). With user // authentication // (https://developers.google.com/chat/api/guides/auth/users), returns // the direct message space between the specified user and the // authenticated user. With service account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts), // returns the direct message space between the specified user and the -// calling Chat app. If no direct message space is found, returns a `404 -// NOT_FOUND` error. Requires user authentication +// calling Chat app. Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) or service // account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). @@ -5679,7 +5673,7 @@ func (c *SpacesFindDirectMessageCall) Do(opts ...googleapi.CallOption) (*Space, } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Returns the existing direct message with the specified user. With [user authentication](https://developers.google.com/chat/api/guides/auth/users), returns the direct message space between the specified user and the authenticated user. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), returns the direct message space between the specified user and the calling Chat app. If no direct message space is found, returns a `404 NOT_FOUND` error. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) or [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + // "description": "Returns the existing direct message with the specified user. If no direct message space is found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [user authentication](https://developers.google.com/chat/api/guides/auth/users), returns the direct message space between the specified user and the authenticated user. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), returns the direct message space between the specified user and the calling Chat app. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) or [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", // "flatPath": "v1/spaces:findDirectMessage", // "httpMethod": "GET", // "id": "chat.spaces.findDirectMessage", @@ -5715,15 +5709,15 @@ type SpacesGetCall struct { header_ http.Header } -// Get: Returns a space. Requires authentication +// Get: Returns details about a space. For an example, see Get a space +// (https://developers.google.com/chat/api/guides/v1/spaces/get). +// Requires authentication // (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.spaces` or `chat.spaces.readonly` authorization scope. // @@ -5834,7 +5828,7 @@ func (c *SpacesGetCall) Do(opts ...googleapi.CallOption) (*Space, error) { } return ret, nil // { - // "description": "Returns a space. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope.", + // "description": "Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope.", // "flatPath": "v1/spaces/{spacesId}", // "httpMethod": "GET", // "id": "chat.spaces.get", @@ -5873,15 +5867,15 @@ type SpacesListCall struct { header_ http.Header } -// List: Lists spaces the caller is a member of. Requires authentication +// List: Lists spaces the caller is a member of. Group chats and DMs +// aren't listed until the first message is sent. For an example, see +// List spaces +// (https://developers.google.com/chat/api/guides/v1/spaces/list). +// Requires authentication // (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.spaces` or `chat.spaces.readonly` authorization scope. // Lists spaces visible to the caller or authenticated user. Group chats @@ -5906,8 +5900,7 @@ func (r *SpacesService) List() *SpacesListCall { // (https://developers.google.com/chat/api/guides/auth/service-accounts), // this field is ignored and the query always returns all spaces. But // the Chat API still validates the query syntax with service accounts, -// so invalid queries are still rejected. Developer Preview -// (https://developers.google.com/workspace/preview). +// so invalid queries are still rejected. func (c *SpacesListCall) Filter(filter string) *SpacesListCall { c.urlParams_.Set("filter", filter) return c @@ -6029,14 +6022,14 @@ func (c *SpacesListCall) Do(opts ...googleapi.CallOption) (*ListSpacesResponse, } return ret, nil // { - // "description": "Lists spaces the caller is a member of. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.", + // "description": "Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/chat/api/guides/v1/spaces/list). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.", // "flatPath": "v1/spaces", // "httpMethod": "GET", // "id": "chat.spaces.list", // "parameterOrder": [], // "parameters": { // "filter": { - // "description": "Optional. A query filter. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can't be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = \"SPACE\" spaceType = \"GROUP_CHAT\" OR spaceType = \"DIRECT_MESSAGE\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), this field is ignored and the query always returns all spaces. But the Chat API still validates the query syntax with service accounts, so invalid queries are still rejected. [Developer Preview](https://developers.google.com/workspace/preview).", + // "description": "Optional. A query filter. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can't be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = \"SPACE\" spaceType = \"GROUP_CHAT\" OR spaceType = \"DIRECT_MESSAGE\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), this field is ignored and the query always returns all spaces. But the Chat API still validates the query syntax with service accounts, so invalid queries are still rejected.", // "location": "query", // "type": "string" // }, @@ -6097,8 +6090,8 @@ type SpacesPatchCall struct { header_ http.Header } -// Patch: Developer Preview -// (https://developers.google.com/workspace/preview): Updates a space. +// Patch: Updates a space. For an example, see Update a space +// (https://developers.google.com/chat/api/guides/v1/spaces/update). // Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.spaces` scope. @@ -6227,7 +6220,7 @@ func (c *SpacesPatchCall) Do(opts ...googleapi.CallOption) (*Space, error) { } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Updates a space. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.", + // "description": "Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.", // "flatPath": "v1/spaces/{spacesId}", // "httpMethod": "PATCH", // "id": "chat.spaces.patch", @@ -6273,14 +6266,14 @@ type SpacesSetupCall struct { header_ http.Header } -// Setup: Developer Preview -// (https://developers.google.com/workspace/preview): Creates a space -// and adds specified users to it. The calling user is automatically -// added to the space, and shouldn't be specified as a membership in the -// request. To specify the human members to add, add memberships with -// the appropriate `member.name` in the `SetUpSpaceRequest`. To add a -// human user, use `users/{user}`, where `{user}` is either the -// `{person_id}` for the person +// Setup: Creates a space and adds specified users to it. The calling +// user is automatically added to the space, and shouldn't be specified +// as a membership in the request. For an example, see Set up a space +// (https://developers.google.com/chat/api/guides/v1/spaces/set-up). To +// specify the human members to add, add memberships with the +// appropriate `member.name` in the `SetUpSpaceRequest`. To add a human +// user, use `users/{user}`, where `{user}` is either the `{person_id}` +// for the person // (https://developers.google.com/people/api/rest/v1/people) from the // People API, or the `id` for the user // (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) @@ -6293,13 +6286,14 @@ type SpacesSetupCall struct { // user and another human user, specify exactly one membership to // represent the human user. If one user blocks the other, the request // fails and the DM isn't created. To create a DM between the calling -// user and the calling app, set `Space.singleUserBotDm` to true and -// don't specify any memberships. You can only use this method to add -// app memberships to DMs. To add the calling app as a member of other -// space types, use create membership -// (https://developers.google.com/chat/api/reference/rest/v1/spaces.members/create) -// If a DM already exists between two users, even when one user blocks -// the other at the time a request is made, then the existing DM is +// user and the calling app, set `Space.singleUserBotDm` to `true` and +// don't specify any memberships. You can only use this method to set up +// a DM with the calling app. To add the calling app as a member of a +// space or an existing DM between two human users, see create a +// membership +// (https://developers.google.com/chat/api/guides/v1/members/create). If +// a DM already exists between two users, even when one user blocks the +// other at the time a request is made, then the existing DM is // returned. Spaces with threaded replies or guest access aren't // supported. Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the @@ -6398,7 +6392,7 @@ func (c *SpacesSetupCall) Do(opts ...googleapi.CallOption) (*Space, error) { } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by including a membership with `users/123456789` as the `member.name`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to true and don't specify any memberships. You can only use this method to add app memberships to DMs. To add the calling app as a member of other space types, use [create membership](https://developers.google.com/chat/api/reference/rest/v1/spaces.members/create) If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies or guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", + // "description": "Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space](https://developers.google.com/chat/api/guides/v1/spaces/set-up). To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by including a membership with `users/123456789` as the `member.name`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see [create a membership](https://developers.google.com/chat/api/guides/v1/members/create). If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies or guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", // "flatPath": "v1/spaces:setup", // "httpMethod": "POST", // "id": "chat.spaces.setup", @@ -6430,19 +6424,25 @@ type SpacesMembersCreateCall struct { header_ http.Header } -// Create: Developer Preview -// (https://developers.google.com/workspace/preview): Creates a human -// membership or app membership for the calling app. Creating -// memberships for other apps isn't supported. Requires user +// Create: Creates a human membership or app membership for the calling +// app. Creating memberships for other apps isn't supported. For an +// example, see Create a membership +// (https://developers.google.com/chat/api/guides/v1/members/create). +// When creating a membership, if the specified member has their +// auto-accept policy turned off, then they're invited, and must accept +// the space invitation before joining. Otherwise, creating a membership +// adds the member directly to the specified space. Requires user // authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.memberships` (for human membership) or `chat.memberships.app` // (for app membership) scope. To specify the member to add, set the // `membership.member.name` in the `CreateMembershipRequest`: - To add -// the calling app to the space, use `users/app`. - To add a human user, -// use `users/{user}`, where `{user}` is either the `{person_id}` for -// the person (https://developers.google.com/people/api/rest/v1/people) -// from the People API, or the `id` for the user +// the calling app to a space or a direct message between two human +// users, use `users/app`. Unable to add other apps to the space. - To +// add a human user, use `users/{user}`, where `{user}` is either the +// `{person_id}` for the person +// (https://developers.google.com/people/api/rest/v1/people) from the +// People API, or the `id` for the user // (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) // in the Directory API. For example, if the People API `Person` // `resourceName` is `people/123456789`, you can add the user to the @@ -6548,7 +6548,7 @@ func (c *SpacesMembersCreateCall) Do(opts ...googleapi.CallOption) (*Membership, } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` (for human membership) or `chat.memberships.app` (for app membership) scope. To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add the calling app to the space, use `users/app`. - To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/123456789`.", + // "description": "Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. For an example, see [ Create a membership](https://developers.google.com/chat/api/guides/v1/members/create). When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` (for human membership) or `chat.memberships.app` (for app membership) scope. To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add the calling app to a space or a direct message between two human users, use `users/app`. Unable to add other apps to the space. - To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/123456789`.", // "flatPath": "v1/spaces/{spacesId}/members", // "httpMethod": "POST", // "id": "chat.spaces.members.create", @@ -6589,9 +6589,9 @@ type SpacesMembersDeleteCall struct { header_ http.Header } -// Delete: Developer Preview -// (https://developers.google.com/workspace/preview): Deletes a -// membership. Requires user authentication +// Delete: Deletes a membership. For an example, see Delete a membership +// (https://developers.google.com/chat/api/guides/v1/members/delete). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.memberships` or `chat.memberships.app` authorization scope. // @@ -6695,7 +6695,7 @@ func (c *SpacesMembersDeleteCall) Do(opts ...googleapi.CallOption) (*Membership, } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a membership. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` or `chat.memberships.app` authorization scope.", + // "description": "Deletes a membership. For an example, see [Delete a membership](https://developers.google.com/chat/api/guides/v1/members/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` or `chat.memberships.app` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/members/{membersId}", // "httpMethod": "DELETE", // "id": "chat.spaces.members.delete", @@ -6734,15 +6734,16 @@ type SpacesMembersGetCall struct { header_ http.Header } -// Get: Returns a membership. Requires authentication -// (https://developers.google.com/chat/api/guides/auth/). Fully supports +// Get: Returns details about a membership. For an example, see Get a +// membership +// (https://developers.google.com/chat/api/guides/v1/members/get). +// Requires authentication +// (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.memberships` or `chat.memberships.readonly` authorization // scope. @@ -6854,7 +6855,7 @@ func (c *SpacesMembersGetCall) Do(opts ...googleapi.CallOption) (*Membership, er } return ret, nil // { - // "description": "Returns a membership. Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", + // "description": "Returns details about a membership. For an example, see [Get a membership](https://developers.google.com/chat/api/guides/v1/members/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/members/{membersId}", // "httpMethod": "GET", // "id": "chat.spaces.members.get", @@ -6894,15 +6895,23 @@ type SpacesMembersListCall struct { header_ http.Header } -// List: Lists memberships in a space. Requires authentication -// (https://developers.google.com/chat/api/guides/auth/). Fully supports +// List: Lists memberships in a space. For an example, see List +// memberships +// (https://developers.google.com/chat/api/guides/v1/members/list). +// Listing memberships with app authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// lists memberships in spaces that the Chat app has access to, but +// excludes Chat app memberships, including its own. Listing memberships +// with User authentication +// (https://developers.google.com/chat/api/guides/auth/users) lists +// memberships in spaces that the authenticated user has access to. +// Requires authentication +// (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.memberships` or `chat.memberships.readonly` authorization // scope. @@ -7066,7 +7075,7 @@ func (c *SpacesMembersListCall) Do(opts ...googleapi.CallOption) (*ListMembershi } return ret, nil // { - // "description": "Lists memberships in a space. Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", + // "description": "Lists memberships in a space. For an example, see [List memberships](https://developers.google.com/chat/api/guides/v1/members/list). Listing memberships with [app authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with [User authentication](https://developers.google.com/chat/api/guides/auth/users) lists memberships in spaces that the authenticated user has access to. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/members", // "httpMethod": "GET", // "id": "chat.spaces.members.list", @@ -7148,19 +7157,19 @@ type SpacesMessagesCreateCall struct { header_ http.Header } -// Create: Creates a message. For example usage, see Create a message +// Create: Creates a message. For an example, see Create a message // (https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). // Requires authentication -// (https://developers.google.com/chat/api/guides/auth). Fully supports -// service account authentication +// (https://developers.google.com/chat/api/guides/auth). Creating a text +// message supports both user authentication +// (https://developers.google.com/chat/api/guides/auth/users) and [app +// authentication] // (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// User authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` or `chat.messages.create` authorization scope. +// Creating a card message requires [app authentication] +// (https://developers.google.com/chat/api/guides/auth/service-accounts) // Because Chat provides authentication for webhooks // (https://developers.google.com/chat/how-tos/webhooks) as part of the // URL that's generated when a webhook is registered, webhooks can @@ -7179,7 +7188,15 @@ func (r *SpacesMessagesService) Create(parent string, message *Message) *SpacesM // a Chat message assigned at creation. Must start with `client-` and // contain only lowercase letters, numbers, and hyphens up to 63 // characters in length. Specify this field to get, update, or delete -// the message with the specified value. For example usage, see Name a +// the message with the specified value. Assigning a custom name lets a +// a Chat app recall the message without saving the message `name` from +// the response body +// (/chat/api/reference/rest/v1/spaces.messages/get#response-body) +// returned when creating the message. Assigning a custom name doesn't +// replace the generated `name` field, the message's resource name. +// Instead, it sets the custom name as the `clientAssignedMessageId` +// field, which you can reference while processing later operations, +// like updating or deleting the message. For example usage, see Name a // created message // (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message). func (c *SpacesMessagesCreateCall) MessageId(messageId string) *SpacesMessagesCreateCall { @@ -7318,7 +7335,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e } return ret, nil // { - // "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", + // "description": "Creates a message. For an example, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Creating a text message supports both [user authentication](https://developers.google.com/chat/api/guides/auth/users) and [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Creating a card message requires [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts) Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", // "flatPath": "v1/spaces/{spacesId}/messages", // "httpMethod": "POST", // "id": "chat.spaces.messages.create", @@ -7327,7 +7344,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e // ], // "parameters": { // "messageId": { - // "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + // "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", // "location": "query", // "type": "string" // }, @@ -7391,17 +7408,15 @@ type SpacesMessagesDeleteCall struct { header_ http.Header } -// Delete: Deletes a message. For example usage, see Delete a message -// (https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). +// Delete: Deletes a message. For an example, see Delete a message +// (https://developers.google.com/chat/api/guides/v1/messages/delete). // Requires authentication // (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` authorization scope. // @@ -7512,7 +7527,7 @@ func (c *SpacesMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, err } return ret, nil // { - // "description": "Deletes a message. For example usage, see [Delete a message](https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + // "description": "Deletes a message. For an example, see [Delete a message](https://developers.google.com/chat/api/guides/v1/messages/delete). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "DELETE", // "id": "chat.spaces.messages.delete", @@ -7556,17 +7571,16 @@ type SpacesMessagesGetCall struct { header_ http.Header } -// Get: Returns a message. For example usage, see Read a message -// (https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). +// Get: Returns details about a message. For an example, see Read a +// message +// (https://developers.google.com/chat/api/guides/v1/messages/get). // Requires authentication // (https://developers.google.com/chat/api/guides/auth). Fully supports -// Service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// service account authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` or `chat.messages.readonly` authorization scope. // Note: Might return a message from a blocked member or space. @@ -7683,7 +7697,7 @@ func (c *SpacesMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, erro } return ret, nil // { - // "description": "Returns a message. For example usage, see [Read a message](https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [Service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", + // "description": "Returns details about a message. For an example, see [Read a message](https://developers.google.com/chat/api/guides/v1/messages/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "GET", // "id": "chat.spaces.messages.get", @@ -7723,10 +7737,10 @@ type SpacesMessagesListCall struct { header_ http.Header } -// List: Developer Preview -// (https://developers.google.com/workspace/preview): Lists messages in -// a space that the caller is a member of, including messages from -// blocked members and spaces. Requires user authentication +// List: Lists messages in a space that the caller is a member of, +// including messages from blocked members and spaces. For an example, +// see List messages (/chat/api/guides/v1/messages/list). Requires user +// authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.messages` or `chat.messages.readonly` authorization scope. This // method is only supported in spaces that don't allow users from @@ -7906,7 +7920,7 @@ func (c *SpacesMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessages } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", + // "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", // "flatPath": "v1/spaces/{spacesId}/messages", // "httpMethod": "GET", // "id": "chat.spaces.messages.list", @@ -7992,20 +8006,18 @@ type SpacesMessagesPatchCall struct { header_ http.Header } -// Patch: Updates a message. There's a difference between `patch` and -// `update` methods. The `patch` method uses a `patch` request while the -// `update` method uses a `put` request. We recommend using the `patch` -// method. For example usage, see Update a message -// (https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). +// Patch: Updates a message. There's a difference between the `patch` +// and `update` methods. The `patch` method uses a `patch` request while +// the `update` method uses a `put` request. We recommend using the +// `patch` method. For an example, see Update a message +// (https://developers.google.com/chat/api/guides/v1/messages/update). // Requires authentication -// (https://developers.google.com/chat/api/guides/auth/). Fully supports +// (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` authorization scope. // @@ -8033,7 +8045,8 @@ func (c *SpacesMessagesPatchCall) AllowMissing(allowMissing bool) *SpacesMessage // field paths to update. Separate multiple values with commas. // Currently supported field paths: - `text` - `cards` (Requires service // account authentication (/chat/api/guides/auth/service-accounts).) - -// `cards_v2` +// `cards_v2` (Requires service account authentication +// (/chat/api/guides/auth/service-accounts).) func (c *SpacesMessagesPatchCall) UpdateMask(updateMask string) *SpacesMessagesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -8130,7 +8143,7 @@ func (c *SpacesMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, er } return ret, nil // { - // "description": "Updates a message. There's a difference between `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + // "description": "Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "PATCH", // "id": "chat.spaces.messages.patch", @@ -8151,7 +8164,7 @@ func (c *SpacesMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, er // "type": "string" // }, // "updateMask": { - // "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` ", + // "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -8183,20 +8196,18 @@ type SpacesMessagesUpdateCall struct { header_ http.Header } -// Update: Updates a message. There's a difference between `patch` and -// `update` methods. The `patch` method uses a `patch` request while the -// `update` method uses a `put` request. We recommend using the `patch` -// method. For example usage, see Update a message -// (https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). +// Update: Updates a message. There's a difference between the `patch` +// and `update` methods. The `patch` method uses a `patch` request while +// the `update` method uses a `put` request. We recommend using the +// `patch` method. For an example, see Update a message +// (https://developers.google.com/chat/api/guides/v1/messages/update). // Requires authentication -// (https://developers.google.com/chat/api/guides/auth/). Fully supports +// (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` authorization scope. // @@ -8224,7 +8235,8 @@ func (c *SpacesMessagesUpdateCall) AllowMissing(allowMissing bool) *SpacesMessag // field paths to update. Separate multiple values with commas. // Currently supported field paths: - `text` - `cards` (Requires service // account authentication (/chat/api/guides/auth/service-accounts).) - -// `cards_v2` +// `cards_v2` (Requires service account authentication +// (/chat/api/guides/auth/service-accounts).) func (c *SpacesMessagesUpdateCall) UpdateMask(updateMask string) *SpacesMessagesUpdateCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -8321,7 +8333,7 @@ func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, e } return ret, nil // { - // "description": "Updates a message. There's a difference between `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + // "description": "Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "PUT", // "id": "chat.spaces.messages.update", @@ -8342,7 +8354,7 @@ func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, e // "type": "string" // }, // "updateMask": { - // "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` ", + // "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -8377,6 +8389,8 @@ type SpacesMessagesAttachmentsGetCall struct { // Get: Gets the metadata of a message attachment. The attachment data // is fetched using the media API // (https://developers.google.com/chat/api/reference/rest/v1/media/download). +// For an example, see Get a message attachment +// (https://developers.google.com/chat/api/guides/v1/media-and-attachments/get). // Requires service account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). // @@ -8487,7 +8501,7 @@ func (c *SpacesMessagesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*At } return ret, nil // { - // "description": "Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/chat/api/reference/rest/v1/media/download). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + // "description": "Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/chat/api/reference/rest/v1/media/download). For an example, see [Get a message attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/get). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/attachments/{attachmentsId}", // "httpMethod": "GET", // "id": "chat.spaces.messages.attachments.get", @@ -8525,9 +8539,10 @@ type SpacesMessagesReactionsCreateCall struct { header_ http.Header } -// Create: Developer Preview -// (https://developers.google.com/workspace/preview): Creates a reaction -// and adds it to a message. Requires user authentication +// Create: Creates a reaction and adds it to a message. For an example, +// see Create a reaction +// (https://developers.google.com/chat/api/guides/v1/reactions/create). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.messages`, `chat.messages.reactions`, or // `chat.messages.reactions.create` scope. Only unicode emoji are @@ -8633,7 +8648,7 @@ func (c *SpacesMessagesReactionsCreateCall) Do(opts ...googleapi.CallOption) (*R } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a reaction and adds it to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages`, `chat.messages.reactions`, or `chat.messages.reactions.create` scope. Only unicode emoji are supported.", + // "description": "Creates a reaction and adds it to a message. For an example, see [Create a reaction](https://developers.google.com/chat/api/guides/v1/reactions/create). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages`, `chat.messages.reactions`, or `chat.messages.reactions.create` scope. Only unicode emoji are supported.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions", // "httpMethod": "POST", // "id": "chat.spaces.messages.reactions.create", @@ -8675,9 +8690,10 @@ type SpacesMessagesReactionsDeleteCall struct { header_ http.Header } -// Delete: Developer Preview -// (https://developers.google.com/workspace/preview): Deletes a reaction -// to a message. Requires user authentication +// Delete: Deletes a reaction to a message. For an example, see Delete a +// reaction +// (https://developers.google.com/chat/api/guides/v1/reactions/delete). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.messages` or `chat.messages.reactions` scope. // @@ -8775,7 +8791,7 @@ func (c *SpacesMessagesReactionsDeleteCall) Do(opts ...googleapi.CallOption) (*E } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a reaction to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.reactions` scope.", + // "description": "Deletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/chat/api/guides/v1/reactions/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.reactions` scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions/{reactionsId}", // "httpMethod": "DELETE", // "id": "chat.spaces.messages.reactions.delete", @@ -8814,9 +8830,10 @@ type SpacesMessagesReactionsListCall struct { header_ http.Header } -// List: Developer Preview -// (https://developers.google.com/workspace/preview): Lists reactions to -// a message. Requires user authentication +// List: Lists reactions to a message. For an example, see List +// reactions +// (https://developers.google.com/chat/api/guides/v1/reactions/list). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and // `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, // or `chat.messages.reactions.readonly` scope. @@ -8978,7 +8995,7 @@ func (c *SpacesMessagesReactionsListCall) Do(opts ...googleapi.CallOption) (*Lis } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Lists reactions to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.messages.reactions.readonly` scope.", + // "description": "Lists reactions to a message. For an example, see [List reactions](https://developers.google.com/chat/api/guides/v1/reactions/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.messages.reactions.readonly` scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions", // "httpMethod": "GET", // "id": "chat.spaces.messages.reactions.list", diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index 8cbbcab2246..63fc905c3df 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -2400,7 +2400,7 @@ } } }, - "revision": "20230522", + "revision": "20230524", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "Announcement": { @@ -2554,7 +2554,7 @@ "type": "string" }, "calendarId": { - "description": "The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the `course is set to the `CourseState.ACTIVE` for the first time (i.e. at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until this processing is completed. Read-only.", + "description": "The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.", "type": "string" }, "courseGroupEmail": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index 9ae35366a78..0041a85caf6 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -641,10 +641,10 @@ type Course struct { // CalendarId: The Calendar ID for a calendar that all course members // can see, to which Classroom adds events for course work and // announcements in the course. The Calendar for a course is created - // asynchronously when the `course is set to the `CourseState.ACTIVE` - // for the first time (i.e. at creation time or when it is updated to - // `ACTIVE` through the UI or the API). The Calendar ID will not be - // populated until this processing is completed. Read-only. + // asynchronously when the course is set to `CourseState.ACTIVE` for the + // first time (at creation time or when it is updated to `ACTIVE` + // through the UI or the API). The Calendar ID will not be populated + // until the creation process is completed. Read-only. CalendarId string `json:"calendarId,omitempty"` // CourseGroupEmail: The email address of a Google group containing all diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 231f501b647..7a95523c6b8 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230515", + "revision": "20230524", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -880,6 +880,11 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "url": { + "description": "Output only. The deployed url for the function.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index e9ab7b58ae0..4e3e8286c14 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -707,6 +707,9 @@ type Function struct { // Function. UpdateTime string `json:"updateTime,omitempty"` + // Url: Output only. The deployed url for the function. + Url string `json:"url,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 0aa502cbb51..8abc458a220 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230515", + "revision": "20230524", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -880,6 +880,11 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "url": { + "description": "Output only. The deployed url for the function.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index ccb010fd43c..a2b52294989 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -707,6 +707,9 @@ type Function struct { // Function. UpdateTime string `json:"updateTime,omitempty"` + // Url: Output only. The deployed url for the function. + Url string `json:"url,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index 4cf1db0d730..da64df36144 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230515", + "revision": "20230524", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -880,6 +880,11 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "url": { + "description": "Output only. The deployed url for the function.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index f5c91c568a4..f618e336332 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -707,6 +707,9 @@ type Function struct { // Function. UpdateTime string `json:"updateTime,omitempty"` + // Url: Output only. The deployed url for the function. + Url string `json:"url,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index 85616c693a2..9f8ba23df19 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -1103,7 +1103,7 @@ } } }, - "revision": "20230512", + "revision": "20230529", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -3628,7 +3628,8 @@ "MEET_AFFINITY", "PMW_TI_AFFINITY", "DRIVE_SEARCH_FILTER_PERSON_ONLY", - "ACCESSIBILITY_TRACKER_AFFINITY" + "ACCESSIBILITY_TRACKER_AFFINITY", + "PLX_DATASOURCE_AFFINITY" ], "enumDescriptions": [ "", @@ -3881,6 +3882,7 @@ "", "", "", + "", "" ], "type": "string" @@ -5444,8 +5446,7 @@ "PEOPLE_PLAYGROUND", "NEWS_360", "DUO", - "MEET", - "MESSAGES" + "MEET" ], "enumDescriptions": [ "Should never be stored in practice", @@ -5465,8 +5466,7 @@ "See go/people-playground-design.", "Also mdb/social-magazines", "Aka Taychon", - "Aka Google Meet", - "Aka Google Messages" + "Aka Google Meet" ], "type": "string" }, @@ -5534,8 +5534,7 @@ "PEOPLE_PLAYGROUND", "NEWS_360", "DUO", - "MEET", - "MESSAGES" + "MEET" ], "enumDescriptions": [ "Should never be stored in practice", @@ -5555,8 +5554,7 @@ "See go/people-playground-design.", "Also mdb/social-magazines", "Aka Taychon", - "Aka Google Meet", - "Aka Google Messages" + "Aka Google Meet" ], "type": "string" }, @@ -5619,8 +5617,7 @@ "LOUPE", "NEWS_360", "DUO", - "MEET", - "MESSAGES" + "MEET" ], "enumDescriptions": [ "should never be stored in practice", @@ -5640,8 +5637,7 @@ "Aka Camera by Google Photos", "Also mdb/social-magazines", "aka Taychon", - "Aka Google Meet", - "Aka Google Messages" + "Aka Google Meet" ], "type": "string" }, @@ -9119,6 +9115,10 @@ "Enable app control SD-dependent capabilities." ], "type": "string" + }, + "sendMessageSuppressed": { + "description": "If true, disable send message AppControl/SD flow. This is needed to suppress the feature for specific device. If we decide to turn down this feature for all devices, then this field will become obsolete and should be removed. See context in b/275727627.", + "type": "boolean" } }, "type": "object" @@ -11625,15 +11625,20 @@ "type": "object" }, "AssistantApiCoreTypesMessageNotificationNotificationEntry": { - "description": "Structure of each notification in the MessageNotification Bundle. Attribute sender_name could be different in case of group messages. Next Id: 6", + "description": "Structure of each notification in the MessageNotification Bundle. Attribute sender_name could be different in case of group messages. Next Id: 8", "id": "AssistantApiCoreTypesMessageNotificationNotificationEntry", "properties": { + "charCount": { + "description": "Count of characters in the message body in the notification.", + "format": "int32", + "type": "integer" + }, "dataUri": { "description": "Uri for the attachment (image, audio, video etc.).", "type": "string" }, "messageBody": { - "description": "Content of the message body in the notification.", + "description": "Note that this is not present in production traffic. Content of the message body in the notification.", "type": "string" }, "mimeType": { @@ -11648,6 +11653,11 @@ "sender": { "$ref": "AssistantApiCoreTypesMessageNotificationPerson", "description": "Sender of the message notification." + }, + "wordCount": { + "description": "Count of words in the message body in the notification.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -12842,11 +12852,11 @@ "type": "object" }, "AssistantApiLoggingOnlyData": { - "description": "Data which is produced for logging and debugging. Servers MUST NOT use this for any other purposes, such as branching on it. Next ID: 15", + "description": "Data which is produced for logging and debugging. Servers MUST NOT use this for any other purposes, such as branching on it. Next ID: 16", "id": "AssistantApiLoggingOnlyData", "properties": { "accountIndex": { - "description": "The index of the account on the device. Useful when there are multiple accounts on a device such as distinguishing primary user data from secondary users. There is no guarantee that this is a stable number but is relatively stable in practice.", + "description": "The index of the account on the device. Useful when there are multiple accounts on a device. There is no guarantee that this is a stable number but is relatively stable in practice.", "format": "int32", "type": "integer" }, @@ -12921,6 +12931,10 @@ "description": "A string recording the app version that is initially used to created this settings entry.", "type": "string" }, + "isPrimaryUser": { + "description": "Boolean field to indicate whether a certain user is the primary user of a device or not. This is useful for distinguishing the user0 from other users given user0 might have certain privileges (Eg: Hubmode on Tangor)", + "type": "boolean" + }, "mdnsDisplayName": { "description": "default display name of device over mdns. This is specified at the factory, not specified by the user.", "type": "string" @@ -14195,6 +14209,10 @@ "$ref": "AssistantApiSettingsDeviceLogsOptIn", "description": "Specifies if device logs and crashes can be captured during SendFeedback" }, + "paymentsEnabled": { + "description": "DEPRECATED: Use DeviceCapabilities.OutputRestrictions.personal_data instead. Whether the user has enabled payments for this device.", + "type": "boolean" + }, "personalizationMetadata": { "$ref": "AssistantApiSettingsPersonalizationMetadata", "description": "Metadata about how personalization settings were configured." @@ -14409,7 +14427,7 @@ "type": "boolean" }, "state": { - "description": "The call state of the device (i.e. whether an Duo call account has been setup on the device).", + "description": "The call state of the device (i.e. whether a Duo call account has been setup on the device).", "enum": [ "UNKNOWN_LINK_STATE", "NOT_LINKED", @@ -15826,7 +15844,7 @@ "type": "object" }, "AssistantApiSupportedFeatures": { - "description": "These are the set of features that are supported by the device. It's a part of the SoftwareCapabilities of the device. Next ID: 64", + "description": "These are the set of features that are supported by the device. It's a part of the SoftwareCapabilities of the device. Next ID: 66", "id": "AssistantApiSupportedFeatures", "properties": { "aaeNotificationSourceSupported": { @@ -15972,6 +15990,20 @@ "description": "Whether the surface supports LiveCards. In cases where the user intent flow cannot be completed within the Assistant, LiveCards are used to take the user to an external app or website. These cards will be pushed to the Google Home app via the PushMessage ClientOp.", "type": "boolean" }, + "lottieAnimationSupport": { + "description": "Whether the client supports the Lottie animation library for the broadcast feature.", + "enum": [ + "LOTTIE_ANIMATION_UNKNOWN", + "LOTTIE_ANIMATION_NOT_SUPPORTED", + "LOTTIE_ANIMATION_SUPPORTED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, "mapsDialogsSupported": { "description": "Whether the client supports Assistant dialogs within Maps. This field will be set only when the Maps on the surface supports Assistant dialogs embedded within Maps. go/gsa-gmm.", "type": "boolean" @@ -16026,6 +16058,10 @@ "description": "Whether the client supports the privacy-aware lockscreen protocol (go/assistant-lockscreen-spec).", "type": "boolean" }, + "readMessagesTtsTaperingSupported": { + "description": "Whether the client supports tts tapering for the read messages flow. If set to true the tapered tts variant would be used during the read messages flow.", + "type": "boolean" + }, "remoteCloudCastingEnabled": { "description": "Whether the client has remote casting enabled. For ex: we want to disable this for clients like Auto.", "type": "boolean" @@ -16737,6 +16773,10 @@ "description": "Whether the client restricts alarms to ring within the next 24 hours.", "type": "boolean" }, + "supportsGenericMutations": { + "description": "Whether the client supports mutation of any alarm attribute such as time_pattern, recurrence_pattern, etc through the MUTATE action. If this is false, MUTATE may only be used for changing the alarm's status (to e.g. disable or dismiss the alarm).", + "type": "boolean" + }, "supportsStopAction": { "description": "Whether the client supports the STOP alarm action. If this is false, stop actions will be represented by the MUTATE action, and the device may need to check alarm state to determine if there's a firing alarm that needs to be dismissed.", "type": "boolean" @@ -17788,7 +17828,7 @@ "type": "object" }, "AssistantGroundingRankerMediaGroundingProviderFeatures": { - "description": "Features to be passed from Media GP to HGR. Next ID: 14", + "description": "Features to be passed from Media GP to HGR. Next ID: 15", "id": "AssistantGroundingRankerMediaGroundingProviderFeatures", "properties": { "albumReleaseType": { @@ -17843,6 +17883,10 @@ "description": "True if the user requests seed radio.", "type": "boolean" }, + "isYoutubeMusicSeeking": { + "description": "Indicates whether this is youtube content seeking music.", + "type": "boolean" + }, "mediaContentType": { "description": "MediaAquaAction::media_content_type from interpretation. It can be used for cross-content type ranking, for example, if a candidate's content type does not match this content type from interpretation, this candidate will be slightly demoted. Also, we might avoid fetching some signals when the content type is generic music, since some content types do not need ranking.", "enum": [ @@ -18042,13 +18086,6 @@ "description": "Indicates that fulfillment on this provider will happen within the provider app.", "type": "boolean" }, - "providerClusterIdDeprecated": { - "description": "This field is deprecated in favor of the integer field below.", - "items": { - "type": "string" - }, - "type": "array" - }, "providerClusterIds": { "description": "Cluster IDs for the provider. This field is repeated because some providers can be associated with multiple clusters. PRR specific feature.", "items": { @@ -18650,7 +18687,9 @@ "SAME_NAME_DEVICE_PROMOTER", "PHONE_TARGETING_PROMOTER", "TRAITS_PROMOTER", - "DEVICE_TYPE_PROMOTER" + "DEVICE_TYPE_PROMOTER", + "FEATURE_EXTRACTOR", + "LABELER" ], "enumDescriptions": [ "", @@ -18676,7 +18715,9 @@ "", "", "", - "" + "", + "feature extractor", + "labeler" ], "type": "string" }, @@ -19368,7 +19409,9 @@ "SAME_NAME_DEVICE_PROMOTER", "PHONE_TARGETING_PROMOTER", "TRAITS_PROMOTER", - "DEVICE_TYPE_PROMOTER" + "DEVICE_TYPE_PROMOTER", + "FEATURE_EXTRACTOR", + "LABELER" ], "enumDescriptions": [ "", @@ -19394,7 +19437,9 @@ "", "", "", - "" + "", + "feature extractor", + "labeler" ], "type": "string" } @@ -19875,7 +19920,7 @@ "type": "object" }, "AssistantPrefulfillmentRankerPrefulfillmentSignals": { - "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 52", + "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 53", "id": "AssistantPrefulfillmentRankerPrefulfillmentSignals", "properties": { "bindingSetAuis": { @@ -19971,6 +20016,10 @@ "description": "Whether the intent is a podcast intent.", "type": "boolean" }, + "isTvmIntent": { + "description": "Whether the intent is a media object tvm intent.", + "type": "boolean" + }, "isVideoIntent": { "description": "Whether the intent is a media object video intent.", "type": "boolean" @@ -20101,7 +20150,10 @@ "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED", "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED", "RANKER_NAME_EXPERIMENTAL_PFR_SAGE_NEW_DOMAINS", - "RANKER_NAME_BUCKETED_PARSING_SCORE_FOR_SMARTHOME" + "RANKER_NAME_BUCKETED_PARSING_SCORE_FOR_SMARTHOME", + "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED_V2", + "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED_V2", + "RANKER_NAME_CONSOLIDATED_PFR_HGR_PODCAST" ], "enumDescriptions": [ "Default value, when there is no ranker specified.", @@ -20117,7 +20169,10 @@ "Name for experimental calibrated HGR model for Comms.", "Name for consolidated PFR, HGRv2 and comms ranker.", "Name for experimental PFR ranker for Sage and new domains.", - "Name for PFR ranker with bucketed parsing scores for SmartHome." + "Name for PFR ranker with bucketed parsing scores for SmartHome.", + "Name for consolidated PFR, HGRv2 and comms ranker v2.", + "Name for experimental calibrated HGR model for Comms V2.", + "Name for HGR ranker for podcast based on RANKER_NAME_CONSOLIDATED_PFR_HGR_V2." ], "type": "string" }, @@ -20147,11 +20202,17 @@ "description": "sub_intent_type differentiates between intents that share the top level intent name. For eg: for TV_FALLBACK_SEARCH_INTENT, the top level intent name must be \"Find_media\" and the media_object argument within it must be of type \"Media_unspecified\".", "enum": [ "SUB_INTENT_TYPE_UNKNOWN", - "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT" + "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT", + "SUB_INTENT_TYPE_PODCAST", + "SUB_INTENT_TYPE_MUSIC_INITIATION_INTENT", + "SUB_INTENT_TYPE_PLAY_RADIO_INTENT" ], "enumDescriptions": [ "", - "" + "Find_media", + "Play_media, Play_media, Play_media, Listen_to_media, Media_entity_bare, Play_and_shuffle_media", + "Play_media", + "Play_media" ], "type": "string" }, @@ -29742,6 +29803,7 @@ "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS", "PROVIDER_GOOGLE_GT_LANE_AUTOMATION", "PROVIDER_GOOGLE_GEO_NG_LOCAL", + "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -30283,7 +30345,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B5", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B6", "ABSTRACT", "", "", @@ -30459,6 +30521,7 @@ "", "", "", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -32473,7 +32536,7 @@ "TRANSIT_LINE_VARIANT_LINE_CONCEPT", "TRANSIT_LINE_VARIANT_STOP", "TRANSIT_LINE_VEHICLE_TYPE", - "TRANSIT_STATION_AGENCY", + "TRANSIT_STATION_AGENCY_ASSOCIATION", "VERTICAL_ORDERING_LEVEL", "WATER_REMOVED_POLYGON", "DEPRECATED_DO_NOT_USE_EMAIL_ADDRESS", @@ -32519,7 +32582,8 @@ "DEPRECATED_DO_NOT_USE_VIEWCODE_INFO", "DEPRECATED_DO_NOT_USE_WORKAREA", "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_INCLUDES_GEOMETRY_OF", - "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF" + "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF", + "DEPRECATED_DO_NOT_USE_TRANSIT_STATION_AGENCY" ], "enumDescriptions": [ "", @@ -32727,6 +32791,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34626,6 +34691,7 @@ "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS", "PROVIDER_GOOGLE_GT_LANE_AUTOMATION", "PROVIDER_GOOGLE_GEO_NG_LOCAL", + "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -35167,7 +35233,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B5", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B6", "ABSTRACT", "", "", @@ -35343,6 +35409,7 @@ "", "", "", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -36791,6 +36858,7 @@ "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS", "PROVIDER_GOOGLE_GT_LANE_AUTOMATION", "PROVIDER_GOOGLE_GEO_NG_LOCAL", + "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -37332,7 +37400,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B5", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B6", "ABSTRACT", "", "", @@ -37508,6 +37576,7 @@ "", "", "", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -38244,7 +38313,7 @@ "description": "Hours in which the parking facility is open; that is, permits both arrivals and departures of the facility. Should only be set on compounds (i.e. parking lots or garages); roads are considered to always be “open,” though parking at certain times may be prohibited via restrictions. If unset on a compound, this suggests we don’t know the opening hours, or they are the same as the hours of the entity for which this feature offers parking facilities." }, "parkingAvailable": { - "description": "Indicates whether long-term parking is available at the feature; if true, long-term parking is available at the feature and parking allowances may be present on this feature, or parking_provider_feature may indicate defered parking feature(s). If false, this is an explicit statement that there is no long-term parking associated with this feature. If unset, we don't know whether there is long-term parking associated with this feature. If false or unset, only additional restrictions or short-term allowances will be populated.", + "description": "Indicates whether long-term parking is available at the feature; if true, long-term parking is available at the feature and parking allowances may be present on this feature, or parking_provider_feature may indicate deferred parking feature(s). If false, this is an explicit statement that there is no long-term parking associated with this feature. If unset, we don't know whether there is long-term parking associated with this feature. If false or unset, only additional restrictions or short-term allowances will be populated.", "type": "boolean" }, "parkingProviderFeature": { @@ -39260,6 +39329,7 @@ "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS", "PROVIDER_GOOGLE_GT_LANE_AUTOMATION", "PROVIDER_GOOGLE_GEO_NG_LOCAL", + "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -39801,7 +39871,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B5", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B6", "ABSTRACT", "", "", @@ -39977,6 +40047,7 @@ "", "", "", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -41476,7 +41547,7 @@ "enum": [ "BICYCLE_FACILITY_SEPARATE_TRAIL", "BICYCLE_FACILITY_PEDESTRIAN_PATH", - "BICYCLE_FACILITY_WIDE_PEDESTRIAN_PATH", + "BICYCLE_FACILITY_BIKE_FRIENDLY_PEDESTRIAN_PATH", "BICYCLE_FACILITY_SHARED_ROAD", "BICYCLE_FACILITY_BIKE_LANE", "BICYCLE_FACILITY_BIKE_LANE_WITH_PEDESTRIAN_PATH", @@ -41487,7 +41558,7 @@ "enumDescriptions": [ "This segment has a detached trail or path running alongside it, suitable for the use of cyclists. When a segment has this attribute, there should never be a distinct segment for the trail, because the road and trail are part of the same logical segment. In other words, the trail is modeled by this attribute on its associated road, rather than by a separate segment.", "This segment has a sidewalk or other pedestrian pathway that permits bicycles.", - "This segment has a wide sidewalk or other pedestrian pathway.", + "This segment has a bike-friendly (e.g., wide) sidewalk or other pedestrian pathway.", "This segment allows bicycles to share the road with motor vehicles. It may or may not provide special accommodation for cyclists.", "This segment has a striped bicycle lane.", "This segment has a striped bicycle lane, and also has a sidewalk or other pedestrian pathway that permits bicycles.", @@ -42784,7 +42855,7 @@ "id": "GeostoreTollClusterProto", "properties": { "intersection": { - "description": "The list of TYPE_INTERSECTION features that are toll points and form this toll cluster. A toll cluser can consist of either a single or a group of intersection points called toll points at the end of various road segments in MapFacts that represent one or more lanes passing through a toll fixture that all go to the same routing destination. This relationship is reciprocal, as a toll point intersection also stores a reference to the toll cluster it belongs to. A toll cluster must have reference to one or more toll points i.e. toll_cluster.intersection should always be populated.", + "description": "The list of TYPE_INTERSECTION features that are toll points and form this toll cluster. A toll cluster can consist of either a single or a group of intersection points called toll points at the end of various road segments in MapFacts that represent one or more lanes passing through a toll fixture that all go to the same routing destination. This relationship is reciprocal, as a toll point intersection also stores a reference to the toll cluster it belongs to. A toll cluster must have reference to one or more toll points i.e. toll_cluster.intersection should always be populated.", "items": { "$ref": "GeostoreFeatureIdProto" }, @@ -42914,16 +42985,31 @@ "description": "Encapsulates information related to an individual transit station.", "id": "GeostoreTransitStationProto", "properties": { - "agencies": { - "description": "Transit agencies which service this transit station. A station can be serviced by one or more transit agencies. See go/transit-agency-relation-migration for more information.", + "agencyAssociations": { + "description": "All the transit agencies which service this station. A station can be serviced by multiple stations. There may only be one agency association per transit agency. See go/transit-agency-relation-migration for more details.", "items": { - "$ref": "GeostoreFeatureIdProto" + "$ref": "GeostoreTransitStationProtoTransitAgencyAssociationProto" }, "type": "array" } }, "type": "object" }, + "GeostoreTransitStationProtoTransitAgencyAssociationProto": { + "description": "The association between this station and the agency which services this station.", + "id": "GeostoreTransitStationProtoTransitAgencyAssociationProto", + "properties": { + "agency": { + "$ref": "GeostoreFeatureIdProto", + "description": "The transit agency which services this station." + }, + "stationCode": { + "description": "A station code uniquely identifies a transit station within the transit agency's network.", + "type": "string" + } + }, + "type": "object" + }, "GeostoreTrustSignalsProto": { "id": "GeostoreTrustSignalsProto", "properties": { @@ -45974,6 +46060,13 @@ }, "type": "array" }, + "documentNameFilter": { + "description": "Search the documents in the list. Format: projects/{project_number}/locations/{location}/documents/{document_id}.", + "items": { + "type": "string" + }, + "type": "array" + }, "documentSchemaNames": { "description": "This filter specifies the exact document schema Document.document_schema_name of the documents to search against. If a value isn't specified, documents within the search results are associated with any schema. If multiple values are specified, documents within the search results may be associated with any of the specified schemas. At most 20 document schema names are allowed.", "items": { @@ -47227,6 +47320,10 @@ "description": "The token that specifies the starting position of the next page of results. This field is empty if there are no more results.", "type": "string" }, + "questionAnswer": { + "description": "Experimental. Question answer from the query against the document.", + "type": "string" + }, "totalSize": { "description": "The total number of matched documents which is available only if the client set SearchDocumentsRequest.require_total_size to `true` or set SearchDocumentsRequest.total_result_size to `ESTIMATED_SIZE` or `ACTUAL_SIZE`. Otherwise, the value will be `-1`. Typically a UI would handle this condition by displaying \"of many\", for example: \"Displaying 10 of many\".", "format": "int32", @@ -48960,7 +49057,7 @@ "id": "GoogleInternalAppsWaldoV1alphaAvailabilityPeriod", "properties": { "dayOfWeek": { - "description": "Day of week, 1 for Monday, ..., 7 for Sunday.", + "description": "Day of week, 0 for Sunday, 1 for Monday, ...", "format": "int32", "type": "integer" }, @@ -49545,7 +49642,7 @@ "type": "object" }, "GoogleTypeColor": { - "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to/from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't carry information about the absolute color space that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", + "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page does not have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", "id": "GoogleTypeColor", "properties": { "alpha": { @@ -57112,9 +57209,18 @@ "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, "creator": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "discoverSource": { "$ref": "IndexingDocjoinerDataVersionVersionInfo", "description": "LINT.ThenChange(//depot/google3/indexing/ames/spanner/schema/web-version.proto)" }, + "discussion": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "documentIntent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, "instantNavboost": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, @@ -60360,6 +60466,16 @@ "Gibberish detection ran, but failed. Consider this not gibberish." ], "type": "string" + }, + "numGibberishSegments": { + "description": "The number of the above segments that were classified as gibberish.", + "format": "int32", + "type": "integer" + }, + "numSegmentsClassified": { + "description": "The number of ASR segments that were sent for classification.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -87562,6 +87678,7 @@ "INFORMATION_SOURCE_GOVERNMENT", "INFORMATION_SOURCE_UGC", "INFORMATION_SOURCE_RESEARCH_INSTITUTE", + "QNA", "RESERVED_FOR_NEW_ENUM_135", "RESERVED_FOR_NEW_ENUM_136", "RESERVED_FOR_NEW_ENUM_137", @@ -87582,7 +87699,7 @@ "RESERVED_FOR_NEW_ENUM_152", "RESERVED_FOR_NEW_ENUM_153", "RESERVED_FOR_NEW_ENUM_154", - "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", + "RESERVED_FOR_NEW_ENUM_155", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101", @@ -87719,6 +87836,7 @@ "", "", "", + "Question and Answer format discussion page. check go/orbit-doc-intents for detailed intent description.", "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", "", "", @@ -87739,8 +87857,8 @@ "", "", "", - "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", + "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", "", "", @@ -87897,6 +88015,7 @@ "INFORMATION_SOURCE_GOVERNMENT", "INFORMATION_SOURCE_UGC", "INFORMATION_SOURCE_RESEARCH_INSTITUTE", + "QNA", "RESERVED_FOR_NEW_ENUM_135", "RESERVED_FOR_NEW_ENUM_136", "RESERVED_FOR_NEW_ENUM_137", @@ -87917,7 +88036,7 @@ "RESERVED_FOR_NEW_ENUM_152", "RESERVED_FOR_NEW_ENUM_153", "RESERVED_FOR_NEW_ENUM_154", - "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", + "RESERVED_FOR_NEW_ENUM_155", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101", @@ -88054,6 +88173,7 @@ "", "", "", + "Question and Answer format discussion page. check go/orbit-doc-intents for detailed intent description.", "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", "", "", @@ -88074,8 +88194,8 @@ "", "", "", - "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", + "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", "", "", @@ -88237,6 +88357,7 @@ "INFORMATION_SOURCE_GOVERNMENT", "INFORMATION_SOURCE_UGC", "INFORMATION_SOURCE_RESEARCH_INSTITUTE", + "QNA", "RESERVED_FOR_NEW_ENUM_135", "RESERVED_FOR_NEW_ENUM_136", "RESERVED_FOR_NEW_ENUM_137", @@ -88257,7 +88378,7 @@ "RESERVED_FOR_NEW_ENUM_152", "RESERVED_FOR_NEW_ENUM_153", "RESERVED_FOR_NEW_ENUM_154", - "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", + "RESERVED_FOR_NEW_ENUM_155", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101", @@ -88394,6 +88515,7 @@ "", "", "", + "Question and Answer format discussion page. check go/orbit-doc-intents for detailed intent description.", "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", "", "", @@ -88414,8 +88536,8 @@ "", "", "", - "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", + "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", "", "", @@ -91130,6 +91252,10 @@ "format": "int32", "type": "integer" }, + "nonDisplayableStaleAvailability": { + "$ref": "ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo", + "description": "This is experimental, not filled in yet and not intended to be used. Please contact buyable-corpus@ before considering using this field." + }, "offerDocid": { "format": "uint64", "type": "string" @@ -91761,6 +91887,7 @@ "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION", "LSU_HIGH_PRECISION_ANNOTATION_WITH_PATTERN_BYLINE_TAG", "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION", + "LSU_HIGH_PRECISION_CREATION_DATE_OF_UGC_PAGE", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT", @@ -91784,6 +91911,7 @@ "The signal comes from publication markup date supported by annotation.", "The signal comes from date annotation often selected as a byline.", "The signal comes from ContentAge that's supported by date annotation.", + "The signal comes from creation date of UGC page.", "", "", "", @@ -91842,6 +91970,7 @@ "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION", "LSU_HIGH_PRECISION_ANNOTATION_WITH_PATTERN_BYLINE_TAG", "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION", + "LSU_HIGH_PRECISION_CREATION_DATE_OF_UGC_PAGE", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT", @@ -91865,6 +91994,7 @@ "The signal comes from publication markup date supported by annotation.", "The signal comes from date annotation often selected as a byline.", "The signal comes from ContentAge that's supported by date annotation.", + "The signal comes from creation date of UGC page.", "", "", "", @@ -100086,6 +100216,10 @@ "format": "byte", "type": "string" }, + "gfv": { + "$ref": "ResearchScamGenericFeatureVector", + "description": "The field isn't tpopulated by default, but when enabled (eg, in the ground-truth pipeline), this field provides the original database GFV corresponding to this result." + }, "metadata": { "description": "Metadata about the neighbor. This is returned under some configurations as a serialized proto. The specific proto depends on which metadata is configured to be returned.", "format": "byte", @@ -104486,6 +104620,33 @@ }, "type": "object" }, + "ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo": { + "id": "ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo", + "properties": { + "availability": { + "enum": [ + "AVAILABILITY_UNKNOWN", + "AVAILABILITY_IN_STOCK", + "AVAILABILITY_LIMITED", + "AVAILABILITY_OUT_OF_STOCK", + "AVAILABILITY_BACKORDER", + "AVAILABILITY_PREORDER", + "AVAILABILITY_ON_DISPLAY_TO_ORDER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "ShoppingWebentityShoppingAnnotationProductRating": { "description": "Information about a rating provided for a product. This can represent an aggregated rating if count is set. Next Id: 7", "id": "ShoppingWebentityShoppingAnnotationProductRating", @@ -105930,6 +106091,7 @@ "type": "object" }, "SocialGraphApiProtoPartialNameOptions": { + "description": "For general information about Limited Profiles, see go/limited-profiles-api. LINT.IfChange", "id": "SocialGraphApiProtoPartialNameOptions", "properties": { "language": { @@ -107799,6 +107961,7 @@ "ISOLATION_S3_CREATOR_PRESENCE", "ISOLATION_S12Y_RECIPE_INGREDIENT_INSIGHTS", "ISOLATION_SCOUTS_SOCIETAL_CONTEXT_ENTITIES", + "ISOLATION_ASTROLOGY_HOROSCOPE", "UMP_TESTING_ONLY", "INTENTJOINS_NB_SIGNALS", "ADS_INTEGRITY_ANNOTATION", @@ -107983,6 +108146,7 @@ "Access controls for Creator Channel's S-Cubed corpus data. See more in go/uro-access-required. YOU MUST CONTACT milk-tea@ before reading or writing this data", "For Search sustainability's food choice feature, Recipe Ingredient Insights. Assign existing KG entities feature types to classify triggering behavior and insights. Owned by salehh@ and s12y-eng@ See go/rii-kg-triggering-migration for more information.", "Access controls for SCOUTS Societal Context Repository entities. Please contact johnhenry-eng@ before reading or writing this data. DD: go/scouts-kg-integration-dd", + "Access controls for Astrology Horoscope features. Please contact search-india-verticals@ before reading or writing this data. DD: go/daily-horoscope-dd", "This access control is used to guard data used by the Unified Media Platform team (ke-media-actions-serving@) for testing new features. It should never be used for purposes other than testing. More context at go/fake-media-provider.", "Access controls for the IntentJoins Navboost data. YOU MUST CONTACT intentjoins-eng@ before reading or writing this data.", "Access controls for Ads Integrity annotation data. Ads Integrity annotations are only available for Ads Integrity policy enforcement. See go/ai-political-km for more details. YOU MUST CONTACT ai-pacg@ before reading or writing this data.", @@ -108842,10 +109006,7 @@ "type": "array" }, "greenFaresInfo": { - "items": { - "$ref": "TravelFlightsAirlineConfigGreenFaresInfo" - }, - "type": "array" + "$ref": "TravelFlightsAirlineConfigGreenFaresInfo" }, "iataCode": { "description": "Note that some iata_codes are reused (`dup_flag` field). For details, including how to resolve collisions for airlines shown in Google Flights, see: go/controlled-duplicate go/flights-data/airlines#resolving-iata-code-collisions cs/go/controlled-duplicate U2 - some have no IATA code", @@ -111374,12 +111535,19 @@ "DSA_P13N_OPTED_IN_AT_EVENT_LEVEL", "DSA_P13N_OPTED_OUT_AT_EVENT_LEVEL", "USER_P13N_SETTING_UNSPECIFIED_AT_EVENT_LEVEL", + "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_EVENT_LEVEL", "USER_P13N_SETTING_ON_AT_EVENT_LEVEL", + "BOOKS_USER_P13N_SETTING_ON_AT_EVENT_LEVEL", "USER_P13N_SETTING_OFF_AT_EVENT_LEVEL", + "BOOKS_USER_P13N_SETTING_OFF_AT_EVENT_LEVEL", "BATTLESTAR_GAME_IN_MDP_EVENT_LEVEL", "REVIEW_HIGHLIGHTS_TRIGGERING_EVENT_LEVEL", "TRUSTED_VERTICAL_VPN_INTENT_EVENT_LEVEL", "TRUSTED_VERTICAL_LOAN_INTENT_EVENT_LEVEL", + "SERP_YOUTUBE_VIDEO_CLUSTER_POPULATED_EVENT_LEVEL", + "LOWQ_APPS_DEMOTION_EVENT_LEVEL", + "QUERY_TYPE_MDP_EVENT_LEVEL", + "QUERY_TYPE_NON_MDP_EVENT_LEVEL", "EVENT_LEVEL_TEST_CODE_LIMIT", "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL", "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL", @@ -111952,8 +112120,11 @@ "LANGUAGE_SWITCHER_SERVED_SESSION_LEVEL", "HAS_INSUFFICIENT_STORED_VALUE_BALANCE_BEFORE_RENEWAL_SESSION_LEVEL", "USER_P13N_SETTING_UNSPECIFIED_AT_SESSION_LEVEL", + "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_SESSION_LEVEL", "USER_P13N_SETTING_ON_AT_SESSION_LEVEL", + "BOOKS_USER_P13N_SETTING_ON_AT_SESSION_LEVEL", "USER_P13N_SETTING_OFF_AT_SESSION_LEVEL", + "BOOKS_USER_P13N_SETTING_OFF_AT_SESSION_LEVEL", "BATTLESTAR_GAME_IN_MDP_SESSION_LEVEL", "REVIEW_HIGHLIGHTS_SESSION_LEVEL", "BOOKS_NOTIFICATION_RECEIVED_SESSION_LEVEL", @@ -111962,6 +112133,13 @@ "SUBS_OFFER_ON_BUYFLOW_ELIGIBLE_AT_SESSION_LEVEL", "TRUSTED_VERTICAL_VPN_INTENT_SESSION_LEVEL", "TRUSTED_VERTICAL_LOAN_INTENT_SESSION_LEVEL", + "FOP_PARTNER_PROMOTION_SESSION_LEVEL", + "SERP_YOUTUBE_VIDEO_CLUSTER_POPULATED_SESSION_LEVEL", + "LOWQ_APPS_DEMOTION_SESSION_LEVEL", + "PLANOGRAM_MERCH_TW_DYNASTY_EXTRA_FEATURING", + "AMPLIFY_FORM_OF_PAYMENT_ELIGIBLE_SESSION_LEVEL", + "QUERY_TYPE_MDP_SESSION_LEVEL", + "QUERY_TYPE_NON_MDP_SESSION_LEVEL", "SESSION_LEVEL_TEST_CODE_LIMIT", "CART_ABANDONMENT_USER_LEVEL", "IN_APP_PRODUCTS_IN_DETAILS_PAGE_USER_LEVEL", @@ -112074,6 +112252,7 @@ "PLAY_PASS_PARENT_FOCUSED_SPLASH_PAGE_USER_LEVEL", "PLAY_PASS_SPLASH_PAGE_FOR_UNICORN_USER_LEVEL", "IN_CART_EXCHANGE_OPTIONS_ELIGIBLE_USER_LEVEL", + "GE_STAMP_CARD_INDIVIDUALIZATION_COUNTERFACTUAL", "GE_USER_BUYER_STATE_UNKNOWN", "GE_USER_BUYER_STATE_NEVER", "GE_USER_BUYER_STATE_NEW", @@ -112211,6 +112390,7 @@ "PURCHASE_READINESS_ADD_FOP_USER_LEVEL", "PURCHASE_READINESS_ADD_AUTH_USER_LEVEL", "PURCHASE_READINESS_ADD_FOP_AUTH_USER_LEVEL", + "SUBS_PAYMENT_DECLINE_USER_LEVEL", "MERCH_CONTENT_EXP_ACTIVE_PUBG_USER_LEVEL", "MERCH_CONTENT_EXP_ACTIVE_GENSHIN_USER_LEVEL", "MERCH_CONTENT_EXP_ACTIVE_ROBLOX_USER_LEVEL", @@ -112222,13 +112402,18 @@ "DSA_P13N_OPTED_OUT_AT_USER_LEVEL", "LIVEOPS_INSTALL_NOTIFICATION_USER_LEVEL", "USER_P13N_SETTING_UNSPECIFIED_AT_USER_LEVEL", + "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_USER_LEVEL", "USER_P13N_SETTING_ON_AT_USER_LEVEL", + "BOOKS_USER_P13N_SETTING_ON_AT_USER_LEVEL", "USER_P13N_SETTING_OFF_AT_USER_LEVEL", + "BOOKS_USER_P13N_SETTING_OFF_AT_USER_LEVEL", "LIVEOPS_CLUSTER_SERP_TRIGGERING_USER_LEVEL", "BOOKS_NOTIFICATION_RECEIVED_USER_LEVEL", "LIVEOPS_INSTALL_NOTIFICATION_CHURNED_USER_LEVEL", "SUBS_OFFER_ON_BUYFLOW_AT_USER_LEVEL", "SUBS_OFFER_ON_BUYFLOW_ELIGIBLE_AT_USER_LEVEL", + "FOP_PARTNER_PROMOTION_USER_LEVEL", + "BOOKS_LOYALTY_PROMO_BANNER_WEEKLY_PRIZE_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDescriptions": [ @@ -112475,12 +112660,19 @@ "Event-level test code for DSA p13n opt in.", "Event-level test code for DSA p13n opt out.", "Event-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED.", + "", "Event-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_ON.", + "", "Event-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_OFF.", + "", "Event-level test code corresponding to an MDP showing for a game also available on Battlestar.", "Event-level test code to track triggering of review highlights.", "Event-level test code to track triggering of VPN Intent trusted vertical message.", "Event-level test code to track triggering of LOAN Intent trusted vertical message.", + "Event-level test code to track triggering of SERP YouTube video cluster.", + "Event-level test code to track triggering of lowQ apps demotion.", + "Test code for MDP query event level.", + "Test code for non-MDP query event level.", "", "", "", @@ -112743,7 +112935,7 @@ "", "", "", - "Test code for tracking eligble users who are shown the cart with marketing banner.", + "Test code for tracking eligible users who are shown the cart with marketing banner.", "Test code for tracking users shown Play Pass perks icon in cart.", "Testcode for slicing MDP triggering queries in Play search.", "Testcode for slicing non-MDP triggering queries in Play search.", @@ -113053,16 +113245,26 @@ "Session level test code for Language Switcher indicating that the user was served with the module on cart screen.", "Session level test code that indicates the stored value balance is insufficient for next renewal.", "Session-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED.", + "", "Session-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_ON.", + "", "Session-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_OFF.", + "", "Session-level test code corresponding to an MDP showing for a game also available on Battlestar.", "Session-level test code for review highlights", "Session level test code for users who receive a Books notification.", "Session level test code indicating that the user is eligible for language switcher on cart screen.", "Session level test code for traking the users who did see subs offer on buyflow. This is a Commerce client level test code.", "Session level test code for traking the users who are eligible to subs offer on buyflow. This is a P3 server level test code.", - "Event-level test code to track triggering of VPN Intent trusted vertical message.", - "Event-level test code to track triggering of LOAN Intent trusted vertical message.", + "Session-level test code to track triggering of VPN Intent trusted vertical message.", + "Session-level test code to track triggering of LOAN Intent trusted vertical message.", + "Session level test code for FOP Partner Promo.", + "Session-level test code to track triggering of SERP YouTube video cluster.", + "Session-level test code to track triggering of lowQ apps demotion.", + "Session level test code for merch run planogram experiment for extra featuring of hit2 dynasty in TW.", + "Session-level test code indicating that there is some Fop eligible for amplification. Amplification may or may not be visible to the user if some experiment flags are disabled.", + "Test code for MDP query session level.", + "Test code for non MDP query session level.", "", "Cart abandonment flow for purchase flow.", "User saw/would have seen the in app products section in App", @@ -113170,11 +113372,12 @@ "", "", "", - "Test code for tracking banner eligble users who are shown the cart.", + "Test code for tracking banner eligible users who are shown the cart.", "Test code for tracking users shown Play Pass perks icon in cart.", "Test code for tracking users who see a Play Pass parent-focused splash page.", "", "", + "", "Test code GE ranker service unknown users.", "Test code GE ranker service never users.", "Test code GE ranker service new users.", @@ -113312,6 +113515,7 @@ "User-level test code for user who is eligible for adding Form of Payment from Purchase Readiness Reminder.", "User-level test code for user who is eligible for adding Auth Settings from Purchase Readiness Reminder.", "User-level test code for user who is eligible for adding Form of Payment and then adding Auth Settings from Purchase Readiness Reminder.", + "User level test code for Subscription Payment Decline Reminder.", "User-level test code for running content experiments for merch curated clusters.", "", "", @@ -113323,13 +113527,18 @@ "User-level test code for DSA p13n opt out.", "User level test code for live-ops install notification experiments. If GE decision changed after enabling ranking using the notification install model prediction, log test code.", "User-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED.", + "", "User-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_ON.", + "", "User-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_OFF.", + "", "User level test code for cat search live ops cluster triggering.", "User level test code for users who have received a Books notification.", "User level test code for live-ops install notification Churn experiments. If GE decision changed after enabling ranking using the notification install model prediction for churned users, log test code.", "User level test code for traking the users who did see subs offer on buyflow. This is a Commerce client level test code.", "User level test code for traking the users who are eligible to subs offer on buyflow. This is a P3 server level test code.", + "User level test code for FOP Partner Promo.", + "User level test code for users who have seen a Loyalty weekly prize banner.", "" ], "type": "string" @@ -128383,7 +128592,7 @@ "type": "object" }, "WWWResultInfoSubImageDocInfo": { - "description": "The following message contains info of sub image docs, it is populated in query_state and consumed in web image boost twiddler: (go/WebImageBoostTwiddler). NextID: 25", + "description": "The following message contains info of sub image docs, it is populated in query_state and consumed in web image boost twiddler: (go/WebImageBoostTwiddler). NextID: 26", "id": "WWWResultInfoSubImageDocInfo", "properties": { "additionalSafesearchSignals": { @@ -128521,6 +128730,11 @@ "format": "float", "type": "number" }, + "estSigmaU": { + "description": "Estimated Sigma U calculated from U*.", + "format": "float", + "type": "number" + }, "flowOutput": { "$ref": "ImageContentFlowProtoProd" }, diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index f874cb5bf3b..279180ad6f1 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -3217,6 +3217,7 @@ type AppsPeopleOzExternalMergedpeopleapiAffinity struct { // "PMW_TI_AFFINITY" // "DRIVE_SEARCH_FILTER_PERSON_ONLY" // "ACCESSIBILITY_TRACKER_AFFINITY" + // "PLX_DATASOURCE_AFFINITY" AffinityType string `json:"affinityType,omitempty"` // ContainerId: The ID of the container @@ -5901,7 +5902,6 @@ type AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget struct { // "NEWS_360" - Also mdb/social-magazines // "DUO" - Aka Taychon // "MEET" - Aka Google Meet - // "MESSAGES" - Aka Google Messages App []string `json:"app,omitempty"` ClientData []*AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData `json:"clientData,omitempty"` @@ -5971,7 +5971,6 @@ type AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData struct // "NEWS_360" - Also mdb/social-magazines // "DUO" - Aka Taychon // "MEET" - Aka Google Meet - // "MESSAGES" - Aka Google Messages App string `json:"app,omitempty"` ByteValue string `json:"byteValue,omitempty"` @@ -6067,7 +6066,6 @@ type AppsPeopleOzExternalMergedpeopleapiInAppReachability struct { // "NEWS_360" - Also mdb/social-magazines // "DUO" - aka Taychon // "MEET" - Aka Google Meet - // "MESSAGES" - Aka Google Messages AppType string `json:"appType,omitempty"` Metadata *AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata `json:"metadata,omitempty"` @@ -10800,6 +10798,13 @@ type AssistantApiAppControlSupport struct { // capabilities. Enabled string `json:"enabled,omitempty"` + // SendMessageSuppressed: If true, disable send message AppControl/SD + // flow. This is needed to suppress the feature for specific device. If + // we decide to turn down this feature for all devices, then this field + // will become obsolete and should be removed. See context in + // b/275727627. + SendMessageSuppressed bool `json:"sendMessageSuppressed,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -14019,12 +14024,17 @@ func (s *AssistantApiCoreTypesMessageNotification) MarshalJSON() ([]byte, error) // AssistantApiCoreTypesMessageNotificationNotificationEntry: Structure // of each notification in the MessageNotification Bundle. Attribute -// sender_name could be different in case of group messages. Next Id: 6 +// sender_name could be different in case of group messages. Next Id: 8 type AssistantApiCoreTypesMessageNotificationNotificationEntry struct { + // CharCount: Count of characters in the message body in the + // notification. + CharCount int64 `json:"charCount,omitempty"` + // DataUri: Uri for the attachment (image, audio, video etc.). DataUri string `json:"dataUri,omitempty"` - // MessageBody: Content of the message body in the notification. + // MessageBody: Note that this is not present in production traffic. + // Content of the message body in the notification. MessageBody string `json:"messageBody,omitempty"` // MimeType: Mime type of the data_uri. e.g. 'audio/wav', 'video/mp4', @@ -14037,7 +14047,10 @@ type AssistantApiCoreTypesMessageNotificationNotificationEntry struct { // Sender: Sender of the message notification. Sender *AssistantApiCoreTypesMessageNotificationPerson `json:"sender,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataUri") to + // WordCount: Count of words in the message body in the notification. + WordCount int64 `json:"wordCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CharCount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -14045,7 +14058,7 @@ type AssistantApiCoreTypesMessageNotificationNotificationEntry struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DataUri") to include in + // NullFields is a list of field names (e.g. "CharCount") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -15832,11 +15845,10 @@ func (s *AssistantApiLocationCapabilities) MarshalJSON() ([]byte, error) { // AssistantApiLoggingOnlyData: Data which is produced for logging and // debugging. Servers MUST NOT use this for any other purposes, such as -// branching on it. Next ID: 15 +// branching on it. Next ID: 16 type AssistantApiLoggingOnlyData struct { // AccountIndex: The index of the account on the device. Useful when - // there are multiple accounts on a device such as distinguishing - // primary user data from secondary users. There is no guarantee that + // there are multiple accounts on a device. There is no guarantee that // this is a stable number but is relatively stable in practice. AccountIndex int64 `json:"accountIndex,omitempty"` @@ -15908,6 +15920,12 @@ type AssistantApiLoggingOnlyData struct { // initially used to created this settings entry. InitialAppVersion string `json:"initialAppVersion,omitempty"` + // IsPrimaryUser: Boolean field to indicate whether a certain user is + // the primary user of a device or not. This is useful for + // distinguishing the user0 from other users given user0 might have + // certain privileges (Eg: Hubmode on Tangor) + IsPrimaryUser bool `json:"isPrimaryUser,omitempty"` + // MdnsDisplayName: default display name of device over mdns. This is // specified at the factory, not specified by the user. MdnsDisplayName string `json:"mdnsDisplayName,omitempty"` @@ -17639,6 +17657,11 @@ type AssistantApiSettingsDeviceSettings struct { // during SendFeedback OptInStatus *AssistantApiSettingsDeviceLogsOptIn `json:"optInStatus,omitempty"` + // PaymentsEnabled: DEPRECATED: Use + // DeviceCapabilities.OutputRestrictions.personal_data instead. Whether + // the user has enabled payments for this device. + PaymentsEnabled bool `json:"paymentsEnabled,omitempty"` + // PersonalizationMetadata: Metadata about how personalization settings // were configured. PersonalizationMetadata *AssistantApiSettingsPersonalizationMetadata `json:"personalizationMetadata,omitempty"` @@ -17948,7 +17971,7 @@ type AssistantApiSettingsDuoCallDeviceSettings struct { // the device linked after verification. ShouldBeLinked bool `json:"shouldBeLinked,omitempty"` - // State: The call state of the device (i.e. whether an Duo call account + // State: The call state of the device (i.e. whether a Duo call account // has been setup on the device). // // Possible values: @@ -20019,7 +20042,7 @@ func (s *AssistantApiSupportedConversationVersion) MarshalJSON() ([]byte, error) // AssistantApiSupportedFeatures: These are the set of features that are // supported by the device. It's a part of the SoftwareCapabilities of -// the device. Next ID: 64 +// the device. Next ID: 66 type AssistantApiSupportedFeatures struct { // AaeNotificationSourceSupported: Whether the client supports the // alternative message notification sources on AAE, in which case @@ -20183,6 +20206,15 @@ type AssistantApiSupportedFeatures struct { // ClientOp. LiveCardsSupported bool `json:"liveCardsSupported,omitempty"` + // LottieAnimationSupport: Whether the client supports the Lottie + // animation library for the broadcast feature. + // + // Possible values: + // "LOTTIE_ANIMATION_UNKNOWN" + // "LOTTIE_ANIMATION_NOT_SUPPORTED" + // "LOTTIE_ANIMATION_SUPPORTED" + LottieAnimationSupport string `json:"lottieAnimationSupport,omitempty"` + // MapsDialogsSupported: Whether the client supports Assistant dialogs // within Maps. This field will be set only when the Maps on the surface // supports Assistant dialogs embedded within Maps. go/gsa-gmm. @@ -20254,6 +20286,11 @@ type AssistantApiSupportedFeatures struct { // privacy-aware lockscreen protocol (go/assistant-lockscreen-spec). PrivacyAwareLockscreenSupported bool `json:"privacyAwareLockscreenSupported,omitempty"` + // ReadMessagesTtsTaperingSupported: Whether the client supports tts + // tapering for the read messages flow. If set to true the tapered tts + // variant would be used during the read messages flow. + ReadMessagesTtsTaperingSupported bool `json:"readMessagesTtsTaperingSupported,omitempty"` + // RemoteCloudCastingEnabled: Whether the client has remote casting // enabled. For ex: we want to disable this for clients like Auto. RemoteCloudCastingEnabled bool `json:"remoteCloudCastingEnabled,omitempty"` @@ -21401,6 +21438,12 @@ type AssistantDevicesPlatformProtoAlarmCapability struct { // within the next 24 hours. RestrictAlarmsToNextDay bool `json:"restrictAlarmsToNextDay,omitempty"` + // SupportsGenericMutations: Whether the client supports mutation of any + // alarm attribute such as time_pattern, recurrence_pattern, etc through + // the MUTATE action. If this is false, MUTATE may only be used for + // changing the alarm's status (to e.g. disable or dismiss the alarm). + SupportsGenericMutations bool `json:"supportsGenericMutations,omitempty"` + // SupportsStopAction: Whether the client supports the STOP alarm // action. If this is false, stop actions will be represented by the // MUTATE action, and the device may need to check alarm state to @@ -23184,7 +23227,7 @@ func (s *AssistantGroundingRankerLaaFeaturesProvider) MarshalJSON() ([]byte, err } // AssistantGroundingRankerMediaGroundingProviderFeatures: Features to -// be passed from Media GP to HGR. Next ID: 14 +// be passed from Media GP to HGR. Next ID: 15 type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // AlbumReleaseType: Release type for an album container. // @@ -23232,6 +23275,10 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // IsSeedRadioRequest: True if the user requests seed radio. IsSeedRadioRequest bool `json:"isSeedRadioRequest,omitempty"` + // IsYoutubeMusicSeeking: Indicates whether this is youtube content + // seeking music. + IsYoutubeMusicSeeking bool `json:"isYoutubeMusicSeeking,omitempty"` + // MediaContentType: MediaAquaAction::media_content_type from // interpretation. It can be used for cross-content type ranking, for // example, if a candidate's content type does not match this content @@ -23476,10 +23523,6 @@ type AssistantGroundingRankerProviderGroundingProviderFeatures struct { // happen within the provider app. IsInAppProvider bool `json:"isInAppProvider,omitempty"` - // ProviderClusterIdDeprecated: This field is deprecated in favor of the - // integer field below. - ProviderClusterIdDeprecated []string `json:"providerClusterIdDeprecated,omitempty"` - // ProviderClusterIds: Cluster IDs for the provider. This field is // repeated because some providers can be associated with multiple // clusters. PRR specific feature. @@ -24318,6 +24361,8 @@ type AssistantLogsDeviceInfoLog struct { // "PHONE_TARGETING_PROMOTER" // "TRAITS_PROMOTER" // "DEVICE_TYPE_PROMOTER" + // "FEATURE_EXTRACTOR" - feature extractor + // "LABELER" - labeler EliminatingLumosProcessor string `json:"eliminatingLumosProcessor,omitempty"` IsRemote bool `json:"isRemote,omitempty"` @@ -25075,6 +25120,8 @@ type AssistantLogsLumosProcessorInfo struct { // "PHONE_TARGETING_PROMOTER" // "TRAITS_PROMOTER" // "DEVICE_TYPE_PROMOTER" + // "FEATURE_EXTRACTOR" - feature extractor + // "LABELER" - labeler ProcessorName string `json:"processorName,omitempty"` // ForceSendFields is a list of field names (e.g. "DevicesAfterRun") to @@ -25754,7 +25801,7 @@ func (s *AssistantLogsTargetDeviceLog) MarshalJSON() ([]byte, error) { // AssistantPrefulfillmentRankerPrefulfillmentSignals: Signals to be // used by the Prefulfillment Ranker. Derived from the ParsingSignals // and GroundingSignals carried by the FunctionCall. LINT.IfChange Next -// ID: 52 +// ID: 53 type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // BindingSetAuis: Assistant User Interaction Score for binding set. BindingSetAuis float64 `json:"bindingSetAuis,omitempty"` @@ -25842,6 +25889,9 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // IsPodcastIntent: Whether the intent is a podcast intent. IsPodcastIntent bool `json:"isPodcastIntent,omitempty"` + // IsTvmIntent: Whether the intent is a media object tvm intent. + IsTvmIntent bool `json:"isTvmIntent,omitempty"` + // IsVideoIntent: Whether the intent is a media object video intent. IsVideoIntent bool `json:"isVideoIntent,omitempty"` @@ -25988,6 +26038,12 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // experimental PFR ranker for Sage and new domains. // "RANKER_NAME_BUCKETED_PARSING_SCORE_FOR_SMARTHOME" - Name for PFR // ranker with bucketed parsing scores for SmartHome. + // "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED_V2" - Name + // for consolidated PFR, HGRv2 and comms ranker v2. + // "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED_V2" - Name for + // experimental calibrated HGR model for Comms V2. + // "RANKER_NAME_CONSOLIDATED_PFR_HGR_PODCAST" - Name for HGR ranker + // for podcast based on RANKER_NAME_CONSOLIDATED_PFR_HGR_V2. RankerName string `json:"rankerName,omitempty"` // SearchDispatch: The determination made by the SearchDispatchingConfig @@ -26016,7 +26072,11 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // // Possible values: // "SUB_INTENT_TYPE_UNKNOWN" - // "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT" + // "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT" - Find_media + // "SUB_INTENT_TYPE_PODCAST" - Play_media, Play_media, Play_media, + // Listen_to_media, Media_entity_bare, Play_and_shuffle_media + // "SUB_INTENT_TYPE_MUSIC_INITIATION_INTENT" - Play_media + // "SUB_INTENT_TYPE_PLAY_RADIO_INTENT" - Play_media SubIntentType string `json:"subIntentType,omitempty"` // TopHypothesisConfidence: Average of per-word confidence for top @@ -38987,7 +39047,7 @@ type GeostoreDataSourceProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B5 + // be full ints. The next available ID is: 0x111730B6 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -39168,6 +39228,7 @@ type GeostoreDataSourceProto struct { // "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS" // "PROVIDER_GOOGLE_GT_LANE_AUTOMATION" // "PROVIDER_GOOGLE_GEO_NG_LOCAL" + // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -41424,7 +41485,7 @@ type GeostoreFeaturePropertyIdProto struct { // "TRANSIT_LINE_VARIANT_LINE_CONCEPT" // "TRANSIT_LINE_VARIANT_STOP" // "TRANSIT_LINE_VEHICLE_TYPE" - // "TRANSIT_STATION_AGENCY" + // "TRANSIT_STATION_AGENCY_ASSOCIATION" // "VERTICAL_ORDERING_LEVEL" // "WATER_REMOVED_POLYGON" // "DEPRECATED_DO_NOT_USE_EMAIL_ADDRESS" @@ -41471,6 +41532,7 @@ type GeostoreFeaturePropertyIdProto struct { // "DEPRECATED_DO_NOT_USE_WORKAREA" // "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_INCLUDES_GEOMETRY_OF" // "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF" + // "DEPRECATED_DO_NOT_USE_TRANSIT_STATION_AGENCY" FieldType string `json:"fieldType,omitempty"` // KgPropertyId: Required when field_type == KNOWLEDGE_GRAPH_PROPERTY. @@ -43502,7 +43564,7 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B5 + // be full ints. The next available ID is: 0x111730B6 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -43683,6 +43745,7 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS" // "PROVIDER_GOOGLE_GT_LANE_AUTOMATION" // "PROVIDER_GOOGLE_GEO_NG_LOCAL" + // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -45684,7 +45747,7 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B5 + // be full ints. The next available ID is: 0x111730B6 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -45865,6 +45928,7 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS" // "PROVIDER_GOOGLE_GT_LANE_AUTOMATION" // "PROVIDER_GOOGLE_GEO_NG_LOCAL" + // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -46796,7 +46860,7 @@ type GeostoreParkingProto struct { // ParkingAvailable: Indicates whether long-term parking is available at // the feature; if true, long-term parking is available at the feature // and parking allowances may be present on this feature, or - // parking_provider_feature may indicate defered parking feature(s). If + // parking_provider_feature may indicate deferred parking feature(s). If // false, this is an explicit statement that there is no long-term // parking associated with this feature. If unset, we don't know whether // there is long-term parking associated with this feature. If false or @@ -48163,7 +48227,7 @@ type GeostoreProvenanceProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B5 + // be full ints. The next available ID is: 0x111730B6 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -48344,6 +48408,7 @@ type GeostoreProvenanceProto struct { // "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS" // "PROVIDER_GOOGLE_GT_LANE_AUTOMATION" // "PROVIDER_GOOGLE_GEO_NG_LOCAL" + // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -50437,8 +50502,8 @@ type GeostoreSegmentProto struct { // attribute on its associated road, rather than by a separate segment. // "BICYCLE_FACILITY_PEDESTRIAN_PATH" - This segment has a sidewalk or // other pedestrian pathway that permits bicycles. - // "BICYCLE_FACILITY_WIDE_PEDESTRIAN_PATH" - This segment has a wide - // sidewalk or other pedestrian pathway. + // "BICYCLE_FACILITY_BIKE_FRIENDLY_PEDESTRIAN_PATH" - This segment has + // a bike-friendly (e.g., wide) sidewalk or other pedestrian pathway. // "BICYCLE_FACILITY_SHARED_ROAD" - This segment allows bicycles to // share the road with motor vehicles. It may or may not provide special // accommodation for cyclists. @@ -52306,7 +52371,7 @@ func (s *GeostoreTimezoneProto) MarshalJSON() ([]byte, error) { // a toll cluster. type GeostoreTollClusterProto struct { // Intersection: The list of TYPE_INTERSECTION features that are toll - // points and form this toll cluster. A toll cluser can consist of + // points and form this toll cluster. A toll cluster can consist of // either a single or a group of intersection points called toll points // at the end of various road segments in MapFacts that represent one or // more lanes passing through a toll fixture that all go to the same @@ -52533,12 +52598,48 @@ func (s *GeostoreTransitLineVariantProto) MarshalJSON() ([]byte, error) { // GeostoreTransitStationProto: Encapsulates information related to an // individual transit station. type GeostoreTransitStationProto struct { - // Agencies: Transit agencies which service this transit station. A - // station can be serviced by one or more transit agencies. See - // go/transit-agency-relation-migration for more information. - Agencies []*GeostoreFeatureIdProto `json:"agencies,omitempty"` + // AgencyAssociations: All the transit agencies which service this + // station. A station can be serviced by multiple stations. There may + // only be one agency association per transit agency. See + // go/transit-agency-relation-migration for more details. + AgencyAssociations []*GeostoreTransitStationProtoTransitAgencyAssociationProto `json:"agencyAssociations,omitempty"` - // ForceSendFields is a list of field names (e.g. "Agencies") to + // ForceSendFields is a list of field names (e.g. "AgencyAssociations") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgencyAssociations") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GeostoreTransitStationProto) MarshalJSON() ([]byte, error) { + type NoMethod GeostoreTransitStationProto + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GeostoreTransitStationProtoTransitAgencyAssociationProto: The +// association between this station and the agency which services this +// station. +type GeostoreTransitStationProtoTransitAgencyAssociationProto struct { + // Agency: The transit agency which services this station. + Agency *GeostoreFeatureIdProto `json:"agency,omitempty"` + + // StationCode: A station code uniquely identifies a transit station + // within the transit agency's network. + StationCode string `json:"stationCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Agency") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -52546,8 +52647,8 @@ type GeostoreTransitStationProto struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Agencies") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Agency") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -52555,8 +52656,8 @@ type GeostoreTransitStationProto struct { NullFields []string `json:"-"` } -func (s *GeostoreTransitStationProto) MarshalJSON() ([]byte, error) { - type NoMethod GeostoreTransitStationProto +func (s *GeostoreTransitStationProtoTransitAgencyAssociationProto) MarshalJSON() ([]byte, error) { + type NoMethod GeostoreTransitStationProtoTransitAgencyAssociationProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -56994,6 +57095,11 @@ type GoogleCloudContentwarehouseV1DocumentQuery struct { // with any of the specified creators. DocumentCreatorFilter []string `json:"documentCreatorFilter,omitempty"` + // DocumentNameFilter: Search the documents in the list. Format: + // projects/{project_number}/locations/{location}/documents/{document_id} + // . + DocumentNameFilter []string `json:"documentNameFilter,omitempty"` + // DocumentSchemaNames: This filter specifies the exact document schema // Document.document_schema_name of the documents to search against. If // a value isn't specified, documents within the search results are @@ -59251,6 +59357,10 @@ type GoogleCloudContentwarehouseV1SearchDocumentsResponse struct { // results. NextPageToken string `json:"nextPageToken,omitempty"` + // QuestionAnswer: Experimental. Question answer from the query against + // the document. + QuestionAnswer string `json:"questionAnswer,omitempty"` + // TotalSize: The total number of matched documents which is available // only if the client set SearchDocumentsRequest.require_total_size to // `true` or set SearchDocumentsRequest.total_result_size to @@ -62260,7 +62370,7 @@ func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) { // period on Monday from 18:00 - 00:00 is represented as a triplet (1, // 1080, 1440). type GoogleInternalAppsWaldoV1alphaAvailabilityPeriod struct { - // DayOfWeek: Day of week, 1 for Monday, ..., 7 for Sunday. + // DayOfWeek: Day of week, 0 for Sunday, 1 for Monday, ... DayOfWeek int64 `json:"dayOfWeek,omitempty"` // PeriodEndMinutes: Period end, in minutes from the start of the day, @@ -63301,23 +63411,23 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { } // GoogleTypeColor: Represents a color in the RGBA color space. This -// representation is designed for simplicity of conversion to/from color -// representations in various languages over compactness. For example, -// the fields of this representation can be trivially provided to the -// constructor of `java.awt.Color` in Java; it can also be trivially -// provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; -// and, with just a little work, it can be easily formatted into a CSS -// `rgba()` string in JavaScript. This reference page doesn't carry -// information about the absolute color space that should be used to -// interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, -// etc.). By default, applications should assume the sRGB color space. -// When color equality needs to be decided, implementations, unless -// documented otherwise, treat two colors as equal if all their red, -// green, blue, and alpha values each differ by at most 1e-5. Example -// (Java): import com.google.type.Color; // ... public static -// java.awt.Color fromProto(Color protocolor) { float alpha = -// protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; -// return new java.awt.Color( protocolor.getRed(), +// representation is designed for simplicity of conversion to and from +// color representations in various languages over compactness. For +// example, the fields of this representation can be trivially provided +// to the constructor of `java.awt.Color` in Java; it can also be +// trivially provided to UIColor's `+colorWithRed:green:blue:alpha` +// method in iOS; and, with just a little work, it can be easily +// formatted into a CSS `rgba()` string in JavaScript. This reference +// page does not have information about the absolute color space that +// should be used to interpret the RGB value—for example, sRGB, Adobe +// RGB, DCI-P3, and BT.2020. By default, applications should assume the +// sRGB color space. When color equality needs to be decided, +// implementations, unless documented otherwise, treat two colors as +// equal if all their red, green, blue, and alpha values each differ by +// at most `1e-5`. Example (Java): import com.google.type.Color; // ... +// public static java.awt.Color fromProto(Color protocolor) { float +// alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : +// 1.0; return new java.awt.Color( protocolor.getRed(), // protocolor.getGreen(), protocolor.getBlue(), alpha); } public static // Color toProto(java.awt.Color color) { float red = (float) // color.getRed(); float green = (float) color.getGreen(); float blue = @@ -72991,10 +73101,16 @@ type IndexingDocjoinerDataVersion struct { ChromeCounts *IndexingDocjoinerDataVersionVersionInfo `json:"chromeCounts,omitempty"` - // Creator: + Creator *IndexingDocjoinerDataVersionVersionInfo `json:"creator,omitempty"` + + // DiscoverSource: // LINT.ThenChange(//depot/google3/indexing/ames/spanner/schema/web-versi // on.proto) - Creator *IndexingDocjoinerDataVersionVersionInfo `json:"creator,omitempty"` + DiscoverSource *IndexingDocjoinerDataVersionVersionInfo `json:"discoverSource,omitempty"` + + Discussion *IndexingDocjoinerDataVersionVersionInfo `json:"discussion,omitempty"` + + DocumentIntent *IndexingDocjoinerDataVersionVersionInfo `json:"documentIntent,omitempty"` InstantNavboost *IndexingDocjoinerDataVersionVersionInfo `json:"instantNavboost,omitempty"` @@ -76679,6 +76795,14 @@ type IndexingVideosAsrTranscriptRepairAnnotation struct { // Consider this not gibberish. GibberishResult string `json:"gibberishResult,omitempty"` + // NumGibberishSegments: The number of the above segments that were + // classified as gibberish. + NumGibberishSegments int64 `json:"numGibberishSegments,omitempty"` + + // NumSegmentsClassified: The number of ASR segments that were sent for + // classification. + NumSegmentsClassified int64 `json:"numSegmentsClassified,omitempty"` + // ForceSendFields is a list of field names (e.g. "GibberishResult") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -110641,6 +110765,8 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "INFORMATION_SOURCE_GOVERNMENT" // "INFORMATION_SOURCE_UGC" // "INFORMATION_SOURCE_RESEARCH_INSTITUTE" + // "QNA" - Question and Answer format discussion page. check + // go/orbit-doc-intents for detailed intent description. // "RESERVED_FOR_NEW_ENUM_135" - ========== Enums for new intents // ========== Instructions: When adding a new intent, use the reserved // enum number from the start of this list, and add a new reserved enum @@ -110666,10 +110792,10 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "RESERVED_FOR_NEW_ENUM_152" // "RESERVED_FOR_NEW_ENUM_153" // "RESERVED_FOR_NEW_ENUM_154" - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" - ========== + // "RESERVED_FOR_NEW_ENUM_155" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" - ========== // Enums for new large intents ========== Please ask orbit@ before using // these. - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102" @@ -110830,6 +110956,8 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "INFORMATION_SOURCE_GOVERNMENT" // "INFORMATION_SOURCE_UGC" // "INFORMATION_SOURCE_RESEARCH_INSTITUTE" + // "QNA" - Question and Answer format discussion page. check + // go/orbit-doc-intents for detailed intent description. // "RESERVED_FOR_NEW_ENUM_135" - ========== Enums for new intents // ========== Instructions: When adding a new intent, use the reserved // enum number from the start of this list, and add a new reserved enum @@ -110855,10 +110983,10 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "RESERVED_FOR_NEW_ENUM_152" // "RESERVED_FOR_NEW_ENUM_153" // "RESERVED_FOR_NEW_ENUM_154" - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" - ========== + // "RESERVED_FOR_NEW_ENUM_155" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" - ========== // Enums for new large intents ========== Please ask orbit@ before using // these. - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102" @@ -111045,6 +111173,8 @@ type QualityOrbitAsteroidBeltImageIntentScores struct { // "INFORMATION_SOURCE_GOVERNMENT" // "INFORMATION_SOURCE_UGC" // "INFORMATION_SOURCE_RESEARCH_INSTITUTE" + // "QNA" - Question and Answer format discussion page. check + // go/orbit-doc-intents for detailed intent description. // "RESERVED_FOR_NEW_ENUM_135" - ========== Enums for new intents // ========== Instructions: When adding a new intent, use the reserved // enum number from the start of this list, and add a new reserved enum @@ -111070,10 +111200,10 @@ type QualityOrbitAsteroidBeltImageIntentScores struct { // "RESERVED_FOR_NEW_ENUM_152" // "RESERVED_FOR_NEW_ENUM_153" // "RESERVED_FOR_NEW_ENUM_154" - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" - ========== + // "RESERVED_FOR_NEW_ENUM_155" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" - ========== // Enums for new large intents ========== Please ask orbit@ before using // these. - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102" @@ -114298,6 +114428,11 @@ type QualityShoppingShoppingAttachmentOffer struct { // score and 1000 being the best. NonDisplayableOrganicScoreMillis int64 `json:"nonDisplayableOrganicScoreMillis,omitempty"` + // NonDisplayableStaleAvailability: This is experimental, not filled in + // yet and not intended to be used. Please contact buyable-corpus@ + // before considering using this field. + NonDisplayableStaleAvailability *ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo `json:"nonDisplayableStaleAvailability,omitempty"` + OfferDocid uint64 `json:"offerDocid,omitempty,string"` // Possible values: @@ -115212,6 +115347,8 @@ type QualityTimebasedLastSignificantUpdate struct { // signal comes from date annotation often selected as a byline. // "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" - // The signal comes from ContentAge that's supported by date annotation. + // "LSU_HIGH_PRECISION_CREATION_DATE_OF_UGC_PAGE" - The signal comes + // from creation date of UGC page. // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT" @@ -115297,6 +115434,8 @@ type QualityTimebasedLastSignificantUpdateAdjustments struct { // signal comes from date annotation often selected as a byline. // "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" - // The signal comes from ContentAge that's supported by date annotation. + // "LSU_HIGH_PRECISION_CREATION_DATE_OF_UGC_PAGE" - The signal comes + // from creation date of UGC page. // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT" @@ -126621,6 +126760,11 @@ type ResearchScamNearestNeighborsNeighbor struct { // data, e.g. docid, URL, query string. Docid string `json:"docid,omitempty"` + // Gfv: The field isn't tpopulated by default, but when enabled (eg, in + // the ground-truth pipeline), this field provides the original database + // GFV corresponding to this result. + Gfv *ResearchScamGenericFeatureVector `json:"gfv,omitempty"` + // Metadata: Metadata about the neighbor. This is returned under some // configurations as a serialized proto. The specific proto depends on // which metadata is configured to be returned. @@ -132265,6 +132409,40 @@ func (s *ShoppingWebentityShoppingAnnotationInferredImageNeardupInfo) MarshalJSO return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo struct { + // Possible values: + // "AVAILABILITY_UNKNOWN" + // "AVAILABILITY_IN_STOCK" + // "AVAILABILITY_LIMITED" + // "AVAILABILITY_OUT_OF_STOCK" + // "AVAILABILITY_BACKORDER" + // "AVAILABILITY_PREORDER" + // "AVAILABILITY_ON_DISPLAY_TO_ORDER" + Availability string `json:"availability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Availability") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Availability") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo) MarshalJSON() ([]byte, error) { + type NoMethod ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ShoppingWebentityShoppingAnnotationProductRating: Information about a // rating provided for a product. This can represent an aggregated // rating if count is set. Next Id: 7 @@ -134774,6 +134952,8 @@ func (s *SocialGraphApiProtoNotificationTrigger) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SocialGraphApiProtoPartialNameOptions: For general information about +// Limited Profiles, see go/limited-profiles-api. LINT.IfChange type SocialGraphApiProtoPartialNameOptions struct { // Language: IETF BCP-47 language code that should be used for // localizing the name computation (go/bcp-47). If not provided, we'll @@ -138055,6 +138235,9 @@ type StorageGraphBfgTripleProvenance struct { // SCOUTS Societal Context Repository entities. Please contact // johnhenry-eng@ before reading or writing this data. DD: // go/scouts-kg-integration-dd + // "ISOLATION_ASTROLOGY_HOROSCOPE" - Access controls for Astrology + // Horoscope features. Please contact search-india-verticals@ before + // reading or writing this data. DD: go/daily-horoscope-dd // "UMP_TESTING_ONLY" - This access control is used to guard data used // by the Unified Media Platform team (ke-media-actions-serving@) for // testing new features. It should never be used for purposes other than @@ -139169,7 +139352,7 @@ type TravelFlightsAirlineConfig struct { // be credited to for mileage accrual. FqtvPartnerCode []string `json:"fqtvPartnerCode,omitempty"` - GreenFaresInfo []*TravelFlightsAirlineConfigGreenFaresInfo `json:"greenFaresInfo,omitempty"` + GreenFaresInfo *TravelFlightsAirlineConfigGreenFaresInfo `json:"greenFaresInfo,omitempty"` // IataCode: Note that some iata_codes are reused (`dup_flag` field). // For details, including how to resolve collisions for airlines shown @@ -142397,10 +142580,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "USER_P13N_SETTING_UNSPECIFIED_AT_EVENT_LEVEL" - Event-level test // code corresponding to // com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED. + // "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_EVENT_LEVEL" // "USER_P13N_SETTING_ON_AT_EVENT_LEVEL" - Event-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_ON. + // "BOOKS_USER_P13N_SETTING_ON_AT_EVENT_LEVEL" // "USER_P13N_SETTING_OFF_AT_EVENT_LEVEL" - Event-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_OFF. + // "BOOKS_USER_P13N_SETTING_OFF_AT_EVENT_LEVEL" // "BATTLESTAR_GAME_IN_MDP_EVENT_LEVEL" - Event-level test code // corresponding to an MDP showing for a game also available on // Battlestar. @@ -142410,6 +142596,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // to track triggering of VPN Intent trusted vertical message. // "TRUSTED_VERTICAL_LOAN_INTENT_EVENT_LEVEL" - Event-level test code // to track triggering of LOAN Intent trusted vertical message. + // "SERP_YOUTUBE_VIDEO_CLUSTER_POPULATED_EVENT_LEVEL" - Event-level + // test code to track triggering of SERP YouTube video cluster. + // "LOWQ_APPS_DEMOTION_EVENT_LEVEL" - Event-level test code to track + // triggering of lowQ apps demotion. + // "QUERY_TYPE_MDP_EVENT_LEVEL" - Test code for MDP query event level. + // "QUERY_TYPE_NON_MDP_EVENT_LEVEL" - Test code for non-MDP query + // event level. // "EVENT_LEVEL_TEST_CODE_LIMIT" // "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL" // "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL" @@ -142722,7 +142915,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SURVEY_AHC_AT_SESSION_LEVEL" // // "PLAY_PASS_CART_MAREKTING_BANNER_ELIGIBLE_AND_SHOWN_CART_SESSION_LEVEL - // " - Test code for tracking eligble users who are shown the cart with + // " - Test code for tracking eligible users who are shown the cart with // marketing banner. // "PLAY_PASS_PERKS_VOUCHER_IN_CART_SESSION_LEVEL" - Test code for // tracking users shown Play Pass perks icon in cart. @@ -143299,10 +143492,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "USER_P13N_SETTING_UNSPECIFIED_AT_SESSION_LEVEL" - Session-level // test code corresponding to // com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED. + // "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_SESSION_LEVEL" // "USER_P13N_SETTING_ON_AT_SESSION_LEVEL" - Session-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_ON. + // "BOOKS_USER_P13N_SETTING_ON_AT_SESSION_LEVEL" // "USER_P13N_SETTING_OFF_AT_SESSION_LEVEL" - Session-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_OFF. + // "BOOKS_USER_P13N_SETTING_OFF_AT_SESSION_LEVEL" // "BATTLESTAR_GAME_IN_MDP_SESSION_LEVEL" - Session-level test code // corresponding to an MDP showing for a game also available on // Battlestar. @@ -143319,10 +143515,28 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SUBS_OFFER_ON_BUYFLOW_ELIGIBLE_AT_SESSION_LEVEL" - Session level // test code for traking the users who are eligible to subs offer on // buyflow. This is a P3 server level test code. - // "TRUSTED_VERTICAL_VPN_INTENT_SESSION_LEVEL" - Event-level test code - // to track triggering of VPN Intent trusted vertical message. - // "TRUSTED_VERTICAL_LOAN_INTENT_SESSION_LEVEL" - Event-level test + // "TRUSTED_VERTICAL_VPN_INTENT_SESSION_LEVEL" - Session-level test + // code to track triggering of VPN Intent trusted vertical message. + // "TRUSTED_VERTICAL_LOAN_INTENT_SESSION_LEVEL" - Session-level test // code to track triggering of LOAN Intent trusted vertical message. + // "FOP_PARTNER_PROMOTION_SESSION_LEVEL" - Session level test code for + // FOP Partner Promo. + // "SERP_YOUTUBE_VIDEO_CLUSTER_POPULATED_SESSION_LEVEL" - + // Session-level test code to track triggering of SERP YouTube video + // cluster. + // "LOWQ_APPS_DEMOTION_SESSION_LEVEL" - Session-level test code to + // track triggering of lowQ apps demotion. + // "PLANOGRAM_MERCH_TW_DYNASTY_EXTRA_FEATURING" - Session level test + // code for merch run planogram experiment for extra featuring of hit2 + // dynasty in TW. + // "AMPLIFY_FORM_OF_PAYMENT_ELIGIBLE_SESSION_LEVEL" - Session-level + // test code indicating that there is some Fop eligible for + // amplification. Amplification may or may not be visible to the user if + // some experiment flags are disabled. + // "QUERY_TYPE_MDP_SESSION_LEVEL" - Test code for MDP query session + // level. + // "QUERY_TYPE_NON_MDP_SESSION_LEVEL" - Test code for non MDP query + // session level. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "CART_ABANDONMENT_USER_LEVEL" - Cart abandonment flow for purchase // flow. @@ -143474,13 +143688,15 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SURVEY_AHC_AT_USER_LEVEL" // // "PLAY_PASS_CART_MAREKTING_BANNER_ELIGIBLE_AND_SHOWN_CART_USER_LEVEL" - // - Test code for tracking banner eligble users who are shown the cart. + // - Test code for tracking banner eligible users who are shown the + // cart. // "PLAY_PASS_PERKS_VOUCHER_IN_CART_USER_LEVEL" - Test code for // tracking users shown Play Pass perks icon in cart. // "PLAY_PASS_PARENT_FOCUSED_SPLASH_PAGE_USER_LEVEL" - Test code for // tracking users who see a Play Pass parent-focused splash page. // "PLAY_PASS_SPLASH_PAGE_FOR_UNICORN_USER_LEVEL" // "IN_CART_EXCHANGE_OPTIONS_ELIGIBLE_USER_LEVEL" + // "GE_STAMP_CARD_INDIVIDUALIZATION_COUNTERFACTUAL" // "GE_USER_BUYER_STATE_UNKNOWN" - Test code GE ranker service unknown // users. // "GE_USER_BUYER_STATE_NEVER" - Test code GE ranker service never @@ -143775,6 +143991,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "PURCHASE_READINESS_ADD_FOP_AUTH_USER_LEVEL" - User-level test code // for user who is eligible for adding Form of Payment and then adding // Auth Settings from Purchase Readiness Reminder. + // "SUBS_PAYMENT_DECLINE_USER_LEVEL" - User level test code for + // Subscription Payment Decline Reminder. // "MERCH_CONTENT_EXP_ACTIVE_PUBG_USER_LEVEL" - User-level test code // for running content experiments for merch curated clusters. // "MERCH_CONTENT_EXP_ACTIVE_GENSHIN_USER_LEVEL" @@ -143795,10 +144013,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "USER_P13N_SETTING_UNSPECIFIED_AT_USER_LEVEL" - User-level test // code corresponding to // com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED. + // "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_USER_LEVEL" // "USER_P13N_SETTING_ON_AT_USER_LEVEL" - User-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_ON. + // "BOOKS_USER_P13N_SETTING_ON_AT_USER_LEVEL" // "USER_P13N_SETTING_OFF_AT_USER_LEVEL" - User-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_OFF. + // "BOOKS_USER_P13N_SETTING_OFF_AT_USER_LEVEL" // "LIVEOPS_CLUSTER_SERP_TRIGGERING_USER_LEVEL" - User level test code // for cat search live ops cluster triggering. // "BOOKS_NOTIFICATION_RECEIVED_USER_LEVEL" - User level test code for @@ -143813,6 +144034,10 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SUBS_OFFER_ON_BUYFLOW_ELIGIBLE_AT_USER_LEVEL" - User level test // code for traking the users who are eligible to subs offer on buyflow. // This is a P3 server level test code. + // "FOP_PARTNER_PROMOTION_USER_LEVEL" - User level test code for FOP + // Partner Promo. + // "BOOKS_LOYALTY_PROMO_BANNER_WEEKLY_PRIZE_USER_LEVEL" - User level + // test code for users who have seen a Loyalty weekly prize banner. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` @@ -158099,7 +158324,7 @@ func (s *WWWMetaTag) MarshalJSON() ([]byte, error) { // WWWResultInfoSubImageDocInfo: The following message contains info of // sub image docs, it is populated in query_state and consumed in web -// image boost twiddler: (go/WebImageBoostTwiddler). NextID: 25 +// image boost twiddler: (go/WebImageBoostTwiddler). NextID: 26 type WWWResultInfoSubImageDocInfo struct { AdditionalSafesearchSignals []int64 `json:"additionalSafesearchSignals,omitempty"` @@ -158241,6 +158466,9 @@ type WWWResultInfoSubImageDocInfo struct { // (Off-Topic) to 1.0 (Very Useful). EstRelevance float64 `json:"estRelevance,omitempty"` + // EstSigmaU: Estimated Sigma U calculated from U*. + EstSigmaU float64 `json:"estSigmaU,omitempty"` + FlowOutput *ImageContentFlowProtoProd `json:"flowOutput,omitempty"` Height int64 `json:"height,omitempty"` @@ -158324,6 +158552,7 @@ func (s *WWWResultInfoSubImageDocInfo) UnmarshalJSON(data []byte) error { DocumentTrust gensupport.JSONFloat64 `json:"documentTrust"` EqStar gensupport.JSONFloat64 `json:"eqStar"` EstRelevance gensupport.JSONFloat64 `json:"estRelevance"` + EstSigmaU gensupport.JSONFloat64 `json:"estSigmaU"` HumanModelScore gensupport.JSONFloat64 `json:"humanModelScore"` PamirNormalizedScore gensupport.JSONFloat64 `json:"pamirNormalizedScore"` Salience gensupport.JSONFloat64 `json:"salience"` @@ -158340,6 +158569,7 @@ func (s *WWWResultInfoSubImageDocInfo) UnmarshalJSON(data []byte) error { s.DocumentTrust = float64(s1.DocumentTrust) s.EqStar = float64(s1.EqStar) s.EstRelevance = float64(s1.EstRelevance) + s.EstSigmaU = float64(s1.EstSigmaU) s.HumanModelScore = float64(s1.HumanModelScore) s.PamirNormalizedScore = float64(s1.PamirNormalizedScore) s.Salience = float64(s1.Salience) diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index 2967601b3bc..1c04fb53017 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -8146,7 +8146,7 @@ } } }, - "revision": "20230518", + "revision": "20230530", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -16981,35 +16981,35 @@ ], "enumDescriptions": [ "Type value is not specified or is unknown in this version.", - "The cost is charged for using Adloox.", - "The cost is charged for using Adloox Pre-Bid.", - "The cost is charged for using AdSafe.", - "The cost is charged for using AdExpose.", - "The cost is charged for using Aggregate Knowledge.", - "The cost is charged for using an Agency Trading Desk.", - "The cost is charged for using DV360.", - "The cost is charged for using comScore vCE.", - "The cost is charged for using a Data Management Platform.", - "The default cost type.", - "The cost is charged for using DoubleVerify.", - "The cost is charged for using DoubleVerify Pre-Bid.", - "The cost is charged for using Evidon.", - "The cost is charged for using Integral Ad Science Video.", - "The cost is charged for using Integral Ad Science Pre-Bid.", - "The cost is charged for using media cost data.", - "The cost is charged for using MOAT Video.", - "The cost is charged for using Nielsen Digital Ad Ratings.", - "The cost is charged for using ShopLocal.", - "The cost is charged for using Teracent.", - "The cost is charged for using a third-party ad server.", - "The cost is charged for using TrustMetrics.", - "The cost is charged for using Vizu.", - "The cost is charged for using AdLingo.", - "The cost is charged as custom fee 1.", - "The cost is charged as custom fee 2.", - "The cost is charged as custom fee 3.", - "The cost is charged as custom fee 4.", - "The cost is charged as custom fee 5." + "The cost is charged for using Adloox. Billed by the partner.", + "The cost is charged for using Adloox Pre-Bid. Billed through DV360.", + "The cost is charged for using AdSafe. Billed by the partner.", + "The cost is charged for using AdExpose. Billed by the partner.", + "The cost is charged for using Aggregate Knowledge. Billed by the partner.", + "The cost is charged for using an Agency Trading Desk. Billed by the partner.", + "The cost is charged for using DV360. Billed through DV360.", + "The cost is charged for using comScore vCE. Billed through DV360.", + "The cost is charged for using a Data Management Platform. Billed by the partner.", + "The default cost type. Billed by the partner.", + "The cost is charged for using DoubleVerify. Billed by the partner.", + "The cost is charged for using DoubleVerify Pre-Bid. Billed through DV360.", + "The cost is charged for using Evidon. Billed by the partner.", + "The cost is charged for using Integral Ad Science Video. Billed by the partner.", + "The cost is charged for using Integral Ad Science Pre-Bid. Billed through DV360.", + "The cost is charged for using media cost data. Billed by the partner.", + "The cost is charged for using MOAT Video. Billed by the partner.", + "The cost is charged for using Nielsen Digital Ad Ratings. Billed through DV360.", + "The cost is charged for using ShopLocal. Billed by the partner.", + "The cost is charged for using Teracent. Billed by the partner.", + "The cost is charged for using a third-party ad server. Billed by the partner.", + "The cost is charged for using TrustMetrics. Billed by the partner.", + "The cost is charged for using Vizu. Billed by the partner.", + "The cost is charged for using AdLingo. Billed through DV360.", + "The cost is charged as custom fee 1. Billed by the partner.", + "The cost is charged as custom fee 2. Billed by the partner.", + "The cost is charged as custom fee 3. Billed by the partner.", + "The cost is charged as custom fee 4. Billed by the partner.", + "The cost is charged as custom fee 5. Billed by the partner." ], "type": "string" }, diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index a02459ab1af..55b5909a318 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -13549,58 +13549,63 @@ type PartnerCost struct { // "PARTNER_COST_TYPE_UNSPECIFIED" - Type value is not specified or is // unknown in this version. // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Adloox. + // Billed by the partner. // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using - // Adloox Pre-Bid. + // Adloox Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_ADSAFE" - The cost is charged for using AdSafe. + // Billed by the partner. // "PARTNER_COST_TYPE_ADXPOSE" - The cost is charged for using - // AdExpose. + // AdExpose. Billed by the partner. // "PARTNER_COST_TYPE_AGGREGATE_KNOWLEDGE" - The cost is charged for - // using Aggregate Knowledge. + // using Aggregate Knowledge. Billed by the partner. // "PARTNER_COST_TYPE_AGENCY_TRADING_DESK" - The cost is charged for - // using an Agency Trading Desk. + // using an Agency Trading Desk. Billed by the partner. // "PARTNER_COST_TYPE_DV360_FEE" - The cost is charged for using - // DV360. + // DV360. Billed through DV360. // "PARTNER_COST_TYPE_COMSCORE_VCE" - The cost is charged for using - // comScore vCE. + // comScore vCE. Billed through DV360. // "PARTNER_COST_TYPE_DATA_MANAGEMENT_PLATFORM" - The cost is charged - // for using a Data Management Platform. - // "PARTNER_COST_TYPE_DEFAULT" - The default cost type. + // for using a Data Management Platform. Billed by the partner. + // "PARTNER_COST_TYPE_DEFAULT" - The default cost type. Billed by the + // partner. // "PARTNER_COST_TYPE_DOUBLE_VERIFY" - The cost is charged for using - // DoubleVerify. + // DoubleVerify. Billed by the partner. // "PARTNER_COST_TYPE_DOUBLE_VERIFY_PREBID" - The cost is charged for - // using DoubleVerify Pre-Bid. + // using DoubleVerify Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_EVIDON" - The cost is charged for using Evidon. + // Billed by the partner. // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_VIDEO" - The cost is charged - // for using Integral Ad Science Video. + // for using Integral Ad Science Video. Billed by the partner. // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_PREBID" - The cost is - // charged for using Integral Ad Science Pre-Bid. + // charged for using Integral Ad Science Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_MEDIA_COST_DATA" - The cost is charged for using - // media cost data. + // media cost data. Billed by the partner. // "PARTNER_COST_TYPE_MOAT_VIDEO" - The cost is charged for using MOAT - // Video. + // Video. Billed by the partner. // "PARTNER_COST_TYPE_NIELSEN_DAR" - The cost is charged for using - // Nielsen Digital Ad Ratings. + // Nielsen Digital Ad Ratings. Billed through DV360. // "PARTNER_COST_TYPE_SHOP_LOCAL" - The cost is charged for using - // ShopLocal. + // ShopLocal. Billed by the partner. // "PARTNER_COST_TYPE_TERACENT" - The cost is charged for using - // Teracent. + // Teracent. Billed by the partner. // "PARTNER_COST_TYPE_THIRD_PARTY_AD_SERVER" - The cost is charged for - // using a third-party ad server. + // using a third-party ad server. Billed by the partner. // "PARTNER_COST_TYPE_TRUST_METRICS" - The cost is charged for using - // TrustMetrics. + // TrustMetrics. Billed by the partner. // "PARTNER_COST_TYPE_VIZU" - The cost is charged for using Vizu. + // Billed by the partner. // "PARTNER_COST_TYPE_ADLINGO_FEE" - The cost is charged for using - // AdLingo. + // AdLingo. Billed through DV360. // "PARTNER_COST_TYPE_CUSTOM_FEE_1" - The cost is charged as custom - // fee 1. + // fee 1. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_2" - The cost is charged as custom - // fee 2. + // fee 2. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_3" - The cost is charged as custom - // fee 3. + // fee 3. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_4" - The cost is charged as custom - // fee 4. + // fee 4. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_5" - The cost is charged as custom - // fee 5. + // fee 5. Billed by the partner. CostType string `json:"costType,omitempty"` // FeeAmount: The CPM fee amount in micros of advertiser's currency. diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index a6627e3b219..d9cb56031a2 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -9172,7 +9172,7 @@ } } }, - "revision": "20230518", + "revision": "20230530", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -18700,35 +18700,35 @@ ], "enumDescriptions": [ "Type value is not specified or is unknown in this version.", - "The cost is charged for using Adloox.", - "The cost is charged for using Adloox Pre-Bid.", - "The cost is charged for using AdSafe.", - "The cost is charged for using AdExpose.", - "The cost is charged for using Aggregate Knowledge.", - "The cost is charged for using an Agency Trading Desk.", - "The cost is charged for using DV360.", - "The cost is charged for using comScore vCE.", - "The cost is charged for using a Data Management Platform.", - "The default cost type.", - "The cost is charged for using DoubleVerify.", - "The cost is charged for using DoubleVerify Pre-Bid.", - "The cost is charged for using Evidon.", - "The cost is charged for using Integral Ad Science Video.", - "The cost is charged for using Integral Ad Science Pre-Bid.", - "The cost is charged for using media cost data.", - "The cost is charged for using MOAT Video.", - "The cost is charged for using Nielsen Digital Ad Ratings.", - "The cost is charged for using ShopLocal.", - "The cost is charged for using Teracent.", - "The cost is charged for using a third-party ad server.", - "The cost is charged for using TrustMetrics.", - "The cost is charged for using Vizu.", - "The cost is charged for using AdLingo.", - "The cost is charged as custom fee 1.", - "The cost is charged as custom fee 2.", - "The cost is charged as custom fee 3.", - "The cost is charged as custom fee 4.", - "The cost is charged as custom fee 5." + "The cost is charged for using Adloox. Billed by the partner.", + "The cost is charged for using Adloox Pre-Bid. Billed through DV360.", + "The cost is charged for using AdSafe. Billed by the partner.", + "The cost is charged for using AdExpose. Billed by the partner.", + "The cost is charged for using Aggregate Knowledge. Billed by the partner.", + "The cost is charged for using an Agency Trading Desk. Billed by the partner.", + "The cost is charged for using DV360. Billed through DV360.", + "The cost is charged for using comScore vCE. Billed through DV360.", + "The cost is charged for using a Data Management Platform. Billed by the partner.", + "The default cost type. Billed by the partner.", + "The cost is charged for using DoubleVerify. Billed by the partner.", + "The cost is charged for using DoubleVerify Pre-Bid. Billed through DV360.", + "The cost is charged for using Evidon. Billed by the partner.", + "The cost is charged for using Integral Ad Science Video. Billed by the partner.", + "The cost is charged for using Integral Ad Science Pre-Bid. Billed through DV360.", + "The cost is charged for using media cost data. Billed by the partner.", + "The cost is charged for using MOAT Video. Billed by the partner.", + "The cost is charged for using Nielsen Digital Ad Ratings. Billed through DV360.", + "The cost is charged for using ShopLocal. Billed by the partner.", + "The cost is charged for using Teracent. Billed by the partner.", + "The cost is charged for using a third-party ad server. Billed by the partner.", + "The cost is charged for using TrustMetrics. Billed by the partner.", + "The cost is charged for using Vizu. Billed by the partner.", + "The cost is charged for using AdLingo. Billed through DV360.", + "The cost is charged as custom fee 1. Billed by the partner.", + "The cost is charged as custom fee 2. Billed by the partner.", + "The cost is charged as custom fee 3. Billed by the partner.", + "The cost is charged as custom fee 4. Billed by the partner.", + "The cost is charged as custom fee 5. Billed by the partner." ], "type": "string" }, diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index e9a5d67465a..6394ae7dbf0 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -14687,58 +14687,63 @@ type PartnerCost struct { // "PARTNER_COST_TYPE_UNSPECIFIED" - Type value is not specified or is // unknown in this version. // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Adloox. + // Billed by the partner. // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using - // Adloox Pre-Bid. + // Adloox Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_ADSAFE" - The cost is charged for using AdSafe. + // Billed by the partner. // "PARTNER_COST_TYPE_ADXPOSE" - The cost is charged for using - // AdExpose. + // AdExpose. Billed by the partner. // "PARTNER_COST_TYPE_AGGREGATE_KNOWLEDGE" - The cost is charged for - // using Aggregate Knowledge. + // using Aggregate Knowledge. Billed by the partner. // "PARTNER_COST_TYPE_AGENCY_TRADING_DESK" - The cost is charged for - // using an Agency Trading Desk. + // using an Agency Trading Desk. Billed by the partner. // "PARTNER_COST_TYPE_DV360_FEE" - The cost is charged for using - // DV360. + // DV360. Billed through DV360. // "PARTNER_COST_TYPE_COMSCORE_VCE" - The cost is charged for using - // comScore vCE. + // comScore vCE. Billed through DV360. // "PARTNER_COST_TYPE_DATA_MANAGEMENT_PLATFORM" - The cost is charged - // for using a Data Management Platform. - // "PARTNER_COST_TYPE_DEFAULT" - The default cost type. + // for using a Data Management Platform. Billed by the partner. + // "PARTNER_COST_TYPE_DEFAULT" - The default cost type. Billed by the + // partner. // "PARTNER_COST_TYPE_DOUBLE_VERIFY" - The cost is charged for using - // DoubleVerify. + // DoubleVerify. Billed by the partner. // "PARTNER_COST_TYPE_DOUBLE_VERIFY_PREBID" - The cost is charged for - // using DoubleVerify Pre-Bid. + // using DoubleVerify Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_EVIDON" - The cost is charged for using Evidon. + // Billed by the partner. // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_VIDEO" - The cost is charged - // for using Integral Ad Science Video. + // for using Integral Ad Science Video. Billed by the partner. // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_PREBID" - The cost is - // charged for using Integral Ad Science Pre-Bid. + // charged for using Integral Ad Science Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_MEDIA_COST_DATA" - The cost is charged for using - // media cost data. + // media cost data. Billed by the partner. // "PARTNER_COST_TYPE_MOAT_VIDEO" - The cost is charged for using MOAT - // Video. + // Video. Billed by the partner. // "PARTNER_COST_TYPE_NIELSEN_DAR" - The cost is charged for using - // Nielsen Digital Ad Ratings. + // Nielsen Digital Ad Ratings. Billed through DV360. // "PARTNER_COST_TYPE_SHOP_LOCAL" - The cost is charged for using - // ShopLocal. + // ShopLocal. Billed by the partner. // "PARTNER_COST_TYPE_TERACENT" - The cost is charged for using - // Teracent. + // Teracent. Billed by the partner. // "PARTNER_COST_TYPE_THIRD_PARTY_AD_SERVER" - The cost is charged for - // using a third-party ad server. + // using a third-party ad server. Billed by the partner. // "PARTNER_COST_TYPE_TRUST_METRICS" - The cost is charged for using - // TrustMetrics. + // TrustMetrics. Billed by the partner. // "PARTNER_COST_TYPE_VIZU" - The cost is charged for using Vizu. + // Billed by the partner. // "PARTNER_COST_TYPE_ADLINGO_FEE" - The cost is charged for using - // AdLingo. + // AdLingo. Billed through DV360. // "PARTNER_COST_TYPE_CUSTOM_FEE_1" - The cost is charged as custom - // fee 1. + // fee 1. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_2" - The cost is charged as custom - // fee 2. + // fee 2. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_3" - The cost is charged as custom - // fee 3. + // fee 3. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_4" - The cost is charged as custom - // fee 4. + // fee 4. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_5" - The cost is charged as custom - // fee 5. + // fee 5. Billed by the partner. CostType string `json:"costType,omitempty"` // FeeAmount: The CPM fee amount in micros of advertiser's currency. diff --git a/firebaseappcheck/v1beta/firebaseappcheck-api.json b/firebaseappcheck/v1beta/firebaseappcheck-api.json index c6e9cde3399..00f276599ba 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-api.json +++ b/firebaseappcheck/v1beta/firebaseappcheck-api.json @@ -138,6 +138,97 @@ } } }, + "oauthClients": { + "methods": { + "exchangeAppAttestAssertion": { + "description": "Accepts an App Attest assertion and an artifact previously obtained from ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns an AppCheckToken.", + "flatPath": "v1beta/oauthClients/{oauthClientsId}:exchangeAppAttestAssertion", + "httpMethod": "POST", + "id": "firebaseappcheck.oauthClients.exchangeAppAttestAssertion", + "parameterOrder": [ + "app" + ], + "parameters": { + "app": { + "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + "location": "path", + "pattern": "^oauthClients/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+app}:exchangeAppAttestAssertion", + "request": { + "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1betaAppCheckToken" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "exchangeAppAttestAttestation": { + "description": "Accepts an App Attest CBOR attestation and verifies it with Apple using your preconfigured team and bundle IDs. If valid, returns an attestation artifact that can later be exchanged for an AppCheckToken using ExchangeAppAttestAssertion. For convenience and performance, this method's response object will also contain an AppCheckToken (if the verification is successful).", + "flatPath": "v1beta/oauthClients/{oauthClientsId}:exchangeAppAttestAttestation", + "httpMethod": "POST", + "id": "firebaseappcheck.oauthClients.exchangeAppAttestAttestation", + "parameterOrder": [ + "app" + ], + "parameters": { + "app": { + "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + "location": "path", + "pattern": "^oauthClients/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+app}:exchangeAppAttestAttestation", + "request": { + "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "generateAppAttestChallenge": { + "description": "Generates a challenge that protects the integrity of an immediately following call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A challenge should not be reused for multiple calls.", + "flatPath": "v1beta/oauthClients/{oauthClientsId}:generateAppAttestChallenge", + "httpMethod": "POST", + "id": "firebaseappcheck.oauthClients.generateAppAttestChallenge", + "parameterOrder": [ + "app" + ], + "parameters": { + "app": { + "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + "location": "path", + "pattern": "^oauthClients/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+app}:generateAppAttestChallenge", + "request": { + "$ref": "GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + }, "projects": { "methods": { "verifyAppCheckToken": { @@ -1505,7 +1596,7 @@ } } }, - "revision": "20230522", + "revision": "20230529", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1betaAppAttestConfig": { @@ -1757,6 +1848,10 @@ "description": "Required. A one-time challenge returned by an immediately prior call to GenerateAppAttestChallenge.", "format": "byte", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1779,6 +1874,10 @@ "description": "Required. The key ID generated by App Attest for the client app.", "format": "byte", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1810,6 +1909,10 @@ "customToken": { "description": "Required. A custom token signed using your project's Admin SDK service account credentials.", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1821,6 +1924,10 @@ "debugToken": { "description": "Required. A debug token secret. This string must match a debug token secret previously created using CreateDebugToken.", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1832,6 +1939,10 @@ "deviceToken": { "description": "Required. The `device_token` as returned by Apple's client-side [DeviceCheck API](https://developer.apple.com/documentation/devicecheck/dcdevice). This is the base64 encoded `Data` (Swift) or `NSData` (ObjC) object.", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1840,6 +1951,10 @@ "description": "Request message for the ExchangePlayIntegrityToken method.", "id": "GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest", "properties": { + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" + }, "playIntegrityToken": { "description": "Required. The [integrity verdict response token from Play Integrity](https://developer.android.com/google/play/integrity/verdict#decrypt-verify) issued to your app.", "type": "string" @@ -1851,6 +1966,10 @@ "description": "Request message for the ExchangeRecaptchaEnterpriseToken method.", "id": "GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest", "properties": { + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" + }, "recaptchaEnterpriseToken": { "description": "Required. The reCAPTCHA token as returned by the [reCAPTCHA Enterprise JavaScript API](https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages).", "type": "string" @@ -1873,6 +1992,10 @@ "description": "Request message for the ExchangeRecaptchaV3Token method.", "id": "GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest", "properties": { + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" + }, "recaptchaV3Token": { "description": "Required. The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](https://developers.google.com/recaptcha/docs/v3).", "type": "string" diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index b089c662989..8d596a9b568 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -128,6 +128,7 @@ func New(client *http.Client) (*Service, error) { } s := &Service{client: client, BasePath: basePath} s.Jwks = NewJwksService(s) + s.OauthClients = NewOauthClientsService(s) s.Projects = NewProjectsService(s) return s, nil } @@ -139,6 +140,8 @@ type Service struct { Jwks *JwksService + OauthClients *OauthClientsService + Projects *ProjectsService } @@ -158,6 +161,15 @@ type JwksService struct { s *Service } +func NewOauthClientsService(s *Service) *OauthClientsService { + rs := &OauthClientsService{s: s} + return rs +} + +type OauthClientsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Apps = NewProjectsAppsService(s) @@ -851,6 +863,11 @@ type GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest struct { // prior call to GenerateAppAttestChallenge. Challenge string `json:"challenge,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. "Artifact") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -890,6 +907,11 @@ type GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest struct { // app. KeyId string `json:"keyId,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AttestationStatement") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -962,6 +984,11 @@ type GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest struct { // Admin SDK service account credentials. CustomToken string `json:"customToken,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -992,6 +1019,11 @@ type GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest struct { // debug token secret previously created using CreateDebugToken. DebugToken string `json:"debugToken,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. "DebugToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1024,6 +1056,11 @@ type GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest struct { // This is the base64 encoded `Data` (Swift) or `NSData` (ObjC) object. DeviceToken string `json:"deviceToken,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. "DeviceToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1050,27 +1087,31 @@ func (s *GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest) MarshalJSO // GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest: // Request message for the ExchangePlayIntegrityToken method. type GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest struct { + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // PlayIntegrityToken: Required. The integrity verdict response token // from Play Integrity // (https://developer.android.com/google/play/integrity/verdict#decrypt-verify) // issued to your app. PlayIntegrityToken string `json:"playIntegrityToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlayIntegrityToken") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "LimitedUse") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PlayIntegrityToken") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LimitedUse") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -1083,27 +1124,30 @@ func (s *GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest) MarshalJ // GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest: // Request message for the ExchangeRecaptchaEnterpriseToken method. type GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest struct { + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // RecaptchaEnterpriseToken: Required. The reCAPTCHA token as returned // by the reCAPTCHA Enterprise JavaScript API // (https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages). RecaptchaEnterpriseToken string `json:"recaptchaEnterpriseToken,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "RecaptchaEnterpriseToken") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LimitedUse") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RecaptchaEnterpriseToken") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LimitedUse") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -1148,12 +1192,17 @@ func (s *GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest) MarshalJSON( // GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest: Request // message for the ExchangeRecaptchaV3Token method. type GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest struct { + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // RecaptchaV3Token: Required. The reCAPTCHA token as returned by the // reCAPTCHA v3 JavaScript API // (https://developers.google.com/recaptcha/docs/v3). RecaptchaV3Token string `json:"recaptchaV3Token,omitempty"` - // ForceSendFields is a list of field names (e.g. "RecaptchaV3Token") to + // ForceSendFields is a list of field names (e.g. "LimitedUse") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1161,13 +1210,12 @@ type GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RecaptchaV3Token") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LimitedUse") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -2080,6 +2128,465 @@ func (c *JwksGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV } +// method id "firebaseappcheck.oauthClients.exchangeAppAttestAssertion": + +type OauthClientsExchangeAppAttestAssertionCall struct { + s *Service + appid string + googlefirebaseappcheckv1betaexchangeappattestassertionrequest *GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ExchangeAppAttestAssertion: Accepts an App Attest assertion and an +// artifact previously obtained from ExchangeAppAttestAttestation and +// verifies those with Apple. If valid, returns an AppCheckToken. +// +// - app: The relative resource name of the iOS app, in the format: ``` +// projects/{project_number}/apps/{app_id} ``` If necessary, the +// `project_number` element can be replaced with the project ID of the +// Firebase project. Learn more about using project identifiers in +// Google's AIP 2510 (https://google.aip.dev/cloud/2510) standard. +func (r *OauthClientsService) ExchangeAppAttestAssertion(appid string, googlefirebaseappcheckv1betaexchangeappattestassertionrequest *GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest) *OauthClientsExchangeAppAttestAssertionCall { + c := &OauthClientsExchangeAppAttestAssertionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appid = appid + c.googlefirebaseappcheckv1betaexchangeappattestassertionrequest = googlefirebaseappcheckv1betaexchangeappattestassertionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OauthClientsExchangeAppAttestAssertionCall) Fields(s ...googleapi.Field) *OauthClientsExchangeAppAttestAssertionCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OauthClientsExchangeAppAttestAssertionCall) Context(ctx context.Context) *OauthClientsExchangeAppAttestAssertionCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OauthClientsExchangeAppAttestAssertionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OauthClientsExchangeAppAttestAssertionCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappcheckv1betaexchangeappattestassertionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+app}:exchangeAppAttestAssertion") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "app": c.appid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.oauthClients.exchangeAppAttestAssertion" call. +// Exactly one of *GoogleFirebaseAppcheckV1betaAppCheckToken or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppcheckV1betaAppCheckToken.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OauthClientsExchangeAppAttestAssertionCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1betaAppCheckToken, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppcheckV1betaAppCheckToken{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Accepts an App Attest assertion and an artifact previously obtained from ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns an AppCheckToken.", + // "flatPath": "v1beta/oauthClients/{oauthClientsId}:exchangeAppAttestAssertion", + // "httpMethod": "POST", + // "id": "firebaseappcheck.oauthClients.exchangeAppAttestAssertion", + // "parameterOrder": [ + // "app" + // ], + // "parameters": { + // "app": { + // "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + // "location": "path", + // "pattern": "^oauthClients/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+app}:exchangeAppAttestAssertion", + // "request": { + // "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppcheckV1betaAppCheckToken" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebaseappcheck.oauthClients.exchangeAppAttestAttestation": + +type OauthClientsExchangeAppAttestAttestationCall struct { + s *Service + appid string + googlefirebaseappcheckv1betaexchangeappattestattestationrequest *GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ExchangeAppAttestAttestation: Accepts an App Attest CBOR attestation +// and verifies it with Apple using your preconfigured team and bundle +// IDs. If valid, returns an attestation artifact that can later be +// exchanged for an AppCheckToken using ExchangeAppAttestAssertion. For +// convenience and performance, this method's response object will also +// contain an AppCheckToken (if the verification is successful). +// +// - app: The relative resource name of the iOS app, in the format: ``` +// projects/{project_number}/apps/{app_id} ``` If necessary, the +// `project_number` element can be replaced with the project ID of the +// Firebase project. Learn more about using project identifiers in +// Google's AIP 2510 (https://google.aip.dev/cloud/2510) standard. +func (r *OauthClientsService) ExchangeAppAttestAttestation(appid string, googlefirebaseappcheckv1betaexchangeappattestattestationrequest *GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest) *OauthClientsExchangeAppAttestAttestationCall { + c := &OauthClientsExchangeAppAttestAttestationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appid = appid + c.googlefirebaseappcheckv1betaexchangeappattestattestationrequest = googlefirebaseappcheckv1betaexchangeappattestattestationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OauthClientsExchangeAppAttestAttestationCall) Fields(s ...googleapi.Field) *OauthClientsExchangeAppAttestAttestationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OauthClientsExchangeAppAttestAttestationCall) Context(ctx context.Context) *OauthClientsExchangeAppAttestAttestationCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OauthClientsExchangeAppAttestAttestationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OauthClientsExchangeAppAttestAttestationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappcheckv1betaexchangeappattestattestationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+app}:exchangeAppAttestAttestation") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "app": c.appid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.oauthClients.exchangeAppAttestAttestation" call. +// Exactly one of +// *GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse.Serv +// erResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OauthClientsExchangeAppAttestAttestationCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Accepts an App Attest CBOR attestation and verifies it with Apple using your preconfigured team and bundle IDs. If valid, returns an attestation artifact that can later be exchanged for an AppCheckToken using ExchangeAppAttestAssertion. For convenience and performance, this method's response object will also contain an AppCheckToken (if the verification is successful).", + // "flatPath": "v1beta/oauthClients/{oauthClientsId}:exchangeAppAttestAttestation", + // "httpMethod": "POST", + // "id": "firebaseappcheck.oauthClients.exchangeAppAttestAttestation", + // "parameterOrder": [ + // "app" + // ], + // "parameters": { + // "app": { + // "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + // "location": "path", + // "pattern": "^oauthClients/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+app}:exchangeAppAttestAttestation", + // "request": { + // "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebaseappcheck.oauthClients.generateAppAttestChallenge": + +type OauthClientsGenerateAppAttestChallengeCall struct { + s *Service + appid string + googlefirebaseappcheckv1betagenerateappattestchallengerequest *GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateAppAttestChallenge: Generates a challenge that protects the +// integrity of an immediately following call to +// ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A +// challenge should not be reused for multiple calls. +// +// - app: The relative resource name of the iOS app, in the format: ``` +// projects/{project_number}/apps/{app_id} ``` If necessary, the +// `project_number` element can be replaced with the project ID of the +// Firebase project. Learn more about using project identifiers in +// Google's AIP 2510 (https://google.aip.dev/cloud/2510) standard. +func (r *OauthClientsService) GenerateAppAttestChallenge(appid string, googlefirebaseappcheckv1betagenerateappattestchallengerequest *GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest) *OauthClientsGenerateAppAttestChallengeCall { + c := &OauthClientsGenerateAppAttestChallengeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appid = appid + c.googlefirebaseappcheckv1betagenerateappattestchallengerequest = googlefirebaseappcheckv1betagenerateappattestchallengerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OauthClientsGenerateAppAttestChallengeCall) Fields(s ...googleapi.Field) *OauthClientsGenerateAppAttestChallengeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OauthClientsGenerateAppAttestChallengeCall) Context(ctx context.Context) *OauthClientsGenerateAppAttestChallengeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OauthClientsGenerateAppAttestChallengeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OauthClientsGenerateAppAttestChallengeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappcheckv1betagenerateappattestchallengerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+app}:generateAppAttestChallenge") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "app": c.appid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.oauthClients.generateAppAttestChallenge" call. +// Exactly one of +// *GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse.Server +// Response.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OauthClientsGenerateAppAttestChallengeCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Generates a challenge that protects the integrity of an immediately following call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A challenge should not be reused for multiple calls.", + // "flatPath": "v1beta/oauthClients/{oauthClientsId}:generateAppAttestChallenge", + // "httpMethod": "POST", + // "id": "firebaseappcheck.oauthClients.generateAppAttestChallenge", + // "parameterOrder": [ + // "app" + // ], + // "parameters": { + // "app": { + // "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + // "location": "path", + // "pattern": "^oauthClients/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+app}:generateAppAttestChallenge", + // "request": { + // "$ref": "GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + // method id "firebaseappcheck.projects.verifyAppCheckToken": type ProjectsVerifyAppCheckTokenCall struct { diff --git a/playintegrity/v1/playintegrity-api.json b/playintegrity/v1/playintegrity-api.json index 88ffff025cc..82a0b9cb320 100644 --- a/playintegrity/v1/playintegrity-api.json +++ b/playintegrity/v1/playintegrity-api.json @@ -138,7 +138,7 @@ } } }, - "revision": "20230515", + "revision": "20230529", "rootUrl": "https://playintegrity.googleapis.com/", "schemas": { "AccountActivity": { @@ -268,14 +268,16 @@ "MEETS_BASIC_INTEGRITY", "MEETS_DEVICE_INTEGRITY", "MEETS_STRONG_INTEGRITY", - "MEETS_VIRTUAL_INTEGRITY" + "MEETS_VIRTUAL_INTEGRITY", + "MEETS_WEAK_INTEGRITY" ], "enumDescriptions": [ "Play does not have sufficient information to evaluate device integrity", "App is running on a device that passes basic system integrity checks, but may not meet Android platform compatibility requirements and may not be approved to run Google Play services.", "App is running on GMS Android device with Google Play services.", "App is running on GMS Android device with Google Play services and has a strong guarantee of system integrity such as a hardware-backed keystore.", - "App is running on an Android emulator with Google Play services which meets core Android compatibility requirements." + "App is running on an Android emulator with Google Play services which meets core Android compatibility requirements.", + "App is running on a device that passes only weak integrity checks (is a physical device). See go/pcm-physical-device-detection for more details. Note that this label won't be served for PIA heavyweight and express for now, only for the crystal mode." ], "type": "string" }, diff --git a/playintegrity/v1/playintegrity-gen.go b/playintegrity/v1/playintegrity-gen.go index d8d0b14d84e..64a95232c6a 100644 --- a/playintegrity/v1/playintegrity-gen.go +++ b/playintegrity/v1/playintegrity-gen.go @@ -381,6 +381,11 @@ type DeviceIntegrity struct { // "MEETS_VIRTUAL_INTEGRITY" - App is running on an Android emulator // with Google Play services which meets core Android compatibility // requirements. + // "MEETS_WEAK_INTEGRITY" - App is running on a device that passes + // only weak integrity checks (is a physical device). See + // go/pcm-physical-device-detection for more details. Note that this + // label won't be served for PIA heavyweight and express for now, only + // for the crystal mode. DeviceRecognitionVerdict []string `json:"deviceRecognitionVerdict,omitempty"` // ForceSendFields is a list of field names (e.g. diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index 1591ef4dfe0..7bce850909b 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -217,6 +217,7 @@ "type": "string" }, "revisionId": { + "deprecated": true, "description": "Optional. This field is deprecated and should not be used for specifying the revision ID. The revision ID should be specified via the `name` parameter.", "location": "query", "type": "string" @@ -1565,7 +1566,7 @@ } } }, - "revision": "20230516", + "revision": "20230523", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index 5acce98117f..87c6367e33e 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -2952,6 +2952,7 @@ func (c *ProjectsSchemasDeleteRevisionCall) Do(opts ...googleapi.CallOption) (*S // "type": "string" // }, // "revisionId": { + // "deprecated": true, // "description": "Optional. This field is deprecated and should not be used for specifying the revision ID. The revision ID should be specified via the `name` parameter.", // "location": "query", // "type": "string" diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 2ff69f9dc0c..5ca57bbb373 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -2031,7 +2031,7 @@ } } }, - "revision": "20230518", + "revision": "20230525", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2527,7 +2527,7 @@ "type": "array" }, "recentSearchResults": { - "description": "Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", + "description": "Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", "items": { "$ref": "GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult" }, diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index b889f5504f0..839108d36cc 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -1228,16 +1228,17 @@ type GoogleCloudRetailV2CompleteQueryResponse struct { // list is ordered and the first result is top suggestion. CompletionResults []*GoogleCloudRetailV2CompleteQueryResponseCompletionResult `json:"completionResults,omitempty"` - // RecentSearchResults: Matched recent searches of this user. The - // maximum number of recent searches is 10. This field is a restricted - // feature. If you want to enable it, contact Retail Search support. - // This feature is only available when CompleteQueryRequest.visitor_id - // field is set and UserEvent is imported. The recent searches satisfy - // the follow rules: * They are ordered from latest to oldest. * They - // are matched with CompleteQueryRequest.query case insensitively. * - // They are transformed to lower case. * They are UTF-8 safe. Recent - // searches are deduplicated. More recent searches will be reserved when - // duplication happens. + // RecentSearchResults: Deprecated. Matched recent searches of this + // user. The maximum number of recent searches is 10. This field is a + // restricted feature. If you want to enable it, contact Retail Search + // support. This feature is only available when + // CompleteQueryRequest.visitor_id field is set and UserEvent is + // imported. The recent searches satisfy the follow rules: * They are + // ordered from latest to oldest. * They are matched with + // CompleteQueryRequest.query case insensitively. * They are transformed + // to lower case. * They are UTF-8 safe. Recent searches are + // deduplicated. More recent searches will be reserved when duplication + // happens. RecentSearchResults []*GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult `json:"recentSearchResults,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 224bc9b1328..d402b62ea2e 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -2217,7 +2217,7 @@ } } }, - "revision": "20230518", + "revision": "20230525", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3209,7 +3209,7 @@ "type": "array" }, "recentSearchResults": { - "description": "Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", + "description": "Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", "items": { "$ref": "GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult" }, diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 3b7caffb9fa..a69312fee94 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -2120,16 +2120,17 @@ type GoogleCloudRetailV2alphaCompleteQueryResponse struct { // list is ordered and the first result is top suggestion. CompletionResults []*GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult `json:"completionResults,omitempty"` - // RecentSearchResults: Matched recent searches of this user. The - // maximum number of recent searches is 10. This field is a restricted - // feature. If you want to enable it, contact Retail Search support. - // This feature is only available when CompleteQueryRequest.visitor_id - // field is set and UserEvent is imported. The recent searches satisfy - // the follow rules: * They are ordered from latest to oldest. * They - // are matched with CompleteQueryRequest.query case insensitively. * - // They are transformed to lower case. * They are UTF-8 safe. Recent - // searches are deduplicated. More recent searches will be reserved when - // duplication happens. + // RecentSearchResults: Deprecated. Matched recent searches of this + // user. The maximum number of recent searches is 10. This field is a + // restricted feature. If you want to enable it, contact Retail Search + // support. This feature is only available when + // CompleteQueryRequest.visitor_id field is set and UserEvent is + // imported. The recent searches satisfy the follow rules: * They are + // ordered from latest to oldest. * They are matched with + // CompleteQueryRequest.query case insensitively. * They are transformed + // to lower case. * They are UTF-8 safe. Recent searches are + // deduplicated. More recent searches will be reserved when duplication + // happens. RecentSearchResults []*GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult `json:"recentSearchResults,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index a4204983ae3..1ad134b3078 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -2059,7 +2059,7 @@ } } }, - "revision": "20230518", + "revision": "20230525", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3824,7 +3824,7 @@ "type": "array" }, "recentSearchResults": { - "description": "Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", + "description": "Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", "items": { "$ref": "GoogleCloudRetailV2betaCompleteQueryResponseRecentSearchResult" }, diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 25e89460591..366484e3601 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -3491,16 +3491,17 @@ type GoogleCloudRetailV2betaCompleteQueryResponse struct { // list is ordered and the first result is top suggestion. CompletionResults []*GoogleCloudRetailV2betaCompleteQueryResponseCompletionResult `json:"completionResults,omitempty"` - // RecentSearchResults: Matched recent searches of this user. The - // maximum number of recent searches is 10. This field is a restricted - // feature. If you want to enable it, contact Retail Search support. - // This feature is only available when CompleteQueryRequest.visitor_id - // field is set and UserEvent is imported. The recent searches satisfy - // the follow rules: * They are ordered from latest to oldest. * They - // are matched with CompleteQueryRequest.query case insensitively. * - // They are transformed to lower case. * They are UTF-8 safe. Recent - // searches are deduplicated. More recent searches will be reserved when - // duplication happens. + // RecentSearchResults: Deprecated. Matched recent searches of this + // user. The maximum number of recent searches is 10. This field is a + // restricted feature. If you want to enable it, contact Retail Search + // support. This feature is only available when + // CompleteQueryRequest.visitor_id field is set and UserEvent is + // imported. The recent searches satisfy the follow rules: * They are + // ordered from latest to oldest. * They are matched with + // CompleteQueryRequest.query case insensitively. * They are transformed + // to lower case. * They are UTF-8 safe. Recent searches are + // deduplicated. More recent searches will be reserved when duplication + // happens. RecentSearchResults []*GoogleCloudRetailV2betaCompleteQueryResponseRecentSearchResult `json:"recentSearchResults,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index c8e8b164276..8027222b295 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -870,7 +870,7 @@ } } }, - "revision": "20230227", + "revision": "20230526", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -2898,7 +2898,7 @@ "type": "object" }, "Color": { - "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to/from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't carry information about the absolute color space that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", + "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page does not have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", "id": "Color", "properties": { "alpha": { diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index dadddbcda87..897e452bfcd 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -3600,23 +3600,23 @@ func (s *ClearValuesResponse) MarshalJSON() ([]byte, error) { } // Color: Represents a color in the RGBA color space. This -// representation is designed for simplicity of conversion to/from color -// representations in various languages over compactness. For example, -// the fields of this representation can be trivially provided to the -// constructor of `java.awt.Color` in Java; it can also be trivially -// provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; -// and, with just a little work, it can be easily formatted into a CSS -// `rgba()` string in JavaScript. This reference page doesn't carry -// information about the absolute color space that should be used to -// interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, -// etc.). By default, applications should assume the sRGB color space. -// When color equality needs to be decided, implementations, unless -// documented otherwise, treat two colors as equal if all their red, -// green, blue, and alpha values each differ by at most 1e-5. Example -// (Java): import com.google.type.Color; // ... public static -// java.awt.Color fromProto(Color protocolor) { float alpha = -// protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; -// return new java.awt.Color( protocolor.getRed(), +// representation is designed for simplicity of conversion to and from +// color representations in various languages over compactness. For +// example, the fields of this representation can be trivially provided +// to the constructor of `java.awt.Color` in Java; it can also be +// trivially provided to UIColor's `+colorWithRed:green:blue:alpha` +// method in iOS; and, with just a little work, it can be easily +// formatted into a CSS `rgba()` string in JavaScript. This reference +// page does not have information about the absolute color space that +// should be used to interpret the RGB value—for example, sRGB, Adobe +// RGB, DCI-P3, and BT.2020. By default, applications should assume the +// sRGB color space. When color equality needs to be decided, +// implementations, unless documented otherwise, treat two colors as +// equal if all their red, green, blue, and alpha values each differ by +// at most `1e-5`. Example (Java): import com.google.type.Color; // ... +// public static java.awt.Color fromProto(Color protocolor) { float +// alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : +// 1.0; return new java.awt.Color( protocolor.getRed(), // protocolor.getGreen(), protocolor.getBlue(), alpha); } public static // Color toProto(java.awt.Color color) { float red = (float) // color.getRed(); float green = (float) color.getGreen(); float blue = diff --git a/testing/v1/testing-api.json b/testing/v1/testing-api.json index 09f66e95d29..ff9378d6290 100644 --- a/testing/v1/testing-api.json +++ b/testing/v1/testing-api.json @@ -282,7 +282,7 @@ } } }, - "revision": "20230523", + "revision": "20230526", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -1500,6 +1500,12 @@ }, "type": "object" }, + "NoActivityIntent": { + "description": "Skips the starting activity", + "id": "NoActivityIntent", + "properties": {}, + "type": "object" + }, "ObbFile": { "description": "An opaque binary blob file to install on the device before the test starts.", "id": "ObbFile", @@ -1687,6 +1693,10 @@ "$ref": "LauncherActivityIntent", "description": "An intent that starts the main launcher activity." }, + "noActivity": { + "$ref": "NoActivityIntent", + "description": "Skips the starting activity" + }, "startActivity": { "$ref": "StartActivityIntent", "description": "An intent that starts an activity with specific details." diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index 4f2e4da78b4..985644e1f4e 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -2112,6 +2112,10 @@ func (s *NetworkConfigurationCatalog) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NoActivityIntent: Skips the starting activity +type NoActivityIntent struct { +} + // ObbFile: An opaque binary blob file to install on the device before // the test starts. type ObbFile struct { @@ -2487,6 +2491,9 @@ type RoboStartingIntent struct { // LauncherActivity: An intent that starts the main launcher activity. LauncherActivity *LauncherActivityIntent `json:"launcherActivity,omitempty"` + // NoActivity: Skips the starting activity + NoActivity *NoActivityIntent `json:"noActivity,omitempty"` + // StartActivity: An intent that starts an activity with specific // details. StartActivity *StartActivityIntent `json:"startActivity,omitempty"`