diff --git a/example/app/google/EnterpriseDemo.cpp b/example/app/google/EnterpriseDemo.cpp index 15cab45..6f2b7e5 100644 --- a/example/app/google/EnterpriseDemo.cpp +++ b/example/app/google/EnterpriseDemo.cpp @@ -1,13 +1,409 @@ #include "../GoogleDemos.hpp" +#include + #include "../../fw/Router.hpp" +#include "../../fw/Templates.hpp" +#include "../../fw/Validate.hpp" +#include "clients/body/json.h" +#include "google/enterprise/apis.h" +#include "google/enterprise/caller.h" +#include "google/enterprise/calls.h" +#include "google/enterprise/caps.h" +#include "google/enterprise/contact_center.h" +#include "google/enterprise/dialogflow.h" +#include "google/enterprise/discovery_engine.h" +#include "google/enterprise/retail.h" +#include "google/resource.h" namespace molo::example::app { -// Discovery Engine (Gemini Enterprise search and agents), Dialogflow, Retail, Contact Center Insights. Stub: the package agent fills this in. +// Google enterprise package (src/google/enterprise): Discovery Engine (Gemini +// Enterprise), Dialogflow ES and CX, Retail, Recommendations AI, Contact +// Center Insights, CES. GET routes never touch Google. Every route that would +// call Google is a POST: input is validated first (422), then a credential is +// required (503 google_not_configured). Reads (HTTP GET rows) run at once; +// every other call is a dry run unless the body has "confirm":true. + +namespace { + +using Json = clients::body::Json; +namespace ent = google::enterprise; + +constexpr std::size_t kMaxBody = 256 * 1024; +constexpr std::size_t kMaxStreamEvents = 100; +constexpr std::size_t kMaxCallRows = 200; + +[[noreturn]] void bad(const std::string& message) { + throw fw::HttpError(422, "validation_error", message); +} + +[[noreturn]] void rethrow(const google::GoogleError& e) { + if (e.http_status() == 503 && e.status() == "NOT_CONFIGURED") + throw fw::HttpError(503, "google_not_configured", e.message()); + if (e.service().empty() && e.status() == "INVALID_ARGUMENT") + throw fw::HttpError(422, "validation_error", e.message()); + throw fw::HttpError(502, "google_error", e.status() + ": " + e.message()); +} + +template +fw::Response guarded(F&& f) { + try { + return f(); + } catch (const google::GoogleError& e) { + rethrow(e); + } +} + +fw::Response json_reply(const Json& j, int status = 200) { + fw::Response res = fw::JsonResponse(j.dump(), status); + res.headers.set("Cache-Control", "no-store"); + return res; +} + +Json parse_object(const fw::Request& req) { + if (req.body.size() > kMaxBody) throw fw::HttpError(413, "payload_too_large", "body too large"); + if (req.body.empty()) return Json::object(); + try { + Json j = Json::parse(req.body); + if (!j.is_object()) bad("body must be a JSON object"); + return j; + } catch (const clients::body::JsonError&) { + bad("body is not valid JSON"); + } +} + +std::string str(const Json& o, const char* key, bool required = false) { + const Json* v = o.find(key); + if (!v || v->is_null()) { + if (required) bad(std::string(key) + " is required"); + return ""; + } + if (!v->is_string()) bad(std::string(key) + " must be a string"); + return v->as_string(); +} + +int integer(const Json& o, const char* key, int fallback) { + const Json* v = o.find(key); + if (!v || v->is_null()) return fallback; + if (!v->is_number()) bad(std::string(key) + " must be a number"); + return static_cast(v->as_int()); +} + +bool flag(const Json& o, const char* key) { + const Json* v = o.find(key); + return v && v->is_bool() && v->as_bool(); +} + +std::map string_map(const Json& o, const char* key) { + std::map out; + const Json* v = o.find(key); + if (!v || v->is_null()) return out; + if (!v->is_object()) bad(std::string(key) + " must be an object of strings"); + for (const auto& kv : v->as_object()) { + if (!kv.second.is_string()) bad(std::string(key) + "." + kv.first + " must be a string"); + out[kv.first] = kv.second.as_string(); + } + return out; +} + +Json array_of(const Json& o, const char* key) { + const Json* v = o.find(key); + if (!v || !v->is_array()) bad(std::string(key) + " must be an array"); + return *v; +} + +ent::Api api_of(const std::string& slug) { + try { + return ent::api_from_slug(slug); + } catch (const google::GoogleError&) { + bad("api must be one of discoveryengine, dialogflow-es, dialogflow-cx, retail, insights, ces, recommendations"); + } +} + +class EnterpriseDemo { + public: + explicit EnterpriseDemo(Services& services) { + if (!services.google) services.google = google::GoogleClient::from_env(); + client_ = services.google; + } + + bool configured() const { return client_->configured(); } + google::CloudContext context() const { return google::CloudContext::from_env(); } + + ent::Caller caller(ent::Api api, const std::string& location) const { + return ent::Caller(client_, api, location.empty() ? "global" : location); + } + + // Validate (422), require a credential (503), then run: reads at once, any + // other call as a dry run unless confirm. + Json run(const ent::Caller& c, const ent::Invocation& inv, bool confirm) const { + ent::Prepared p = c.prepare(inv); + if (!configured()) throw google::NotConfiguredError("enterprise"); + const ent::CallSpec& spec = *p.spec; + Json out = Json::object(); + out.set("rpc", Json(std::string(spec.rpc_id))); + out.set("method", Json(std::string(spec.http_method))); + out.set("url", Json(p.url())); + if (spec.read_only()) { + if (spec.paginated()) { + ent::ListResult r = c.list(inv); + out.set("count", Json(static_cast(r.size()))); + out.set("pages", Json(r.pages)); + out.set("truncated", Json(r.truncated)); + out.set("cap_items", Json(static_cast(ent::EnterpriseCaps::kMaxListItems))); + out.set("items", r.items); + } else { + out.set("response", c.invoke(inv)); + } + out.set("dry_run", Json(false)); + return out; + } + if (!confirm) { + out.set("dry_run", Json(true)); + out.set("body", p.has_body ? p.body : Json()); + out.set("hint", Json("not sent: this call is not a read; send \"confirm\":true to run it")); + return out; + } + out.set("dry_run", Json(false)); + if (spec.streaming()) { + Json events = Json::array(); + std::size_t n = c.invoke_stream(inv, [&](const Json& e) { + if (events.as_array().size() < kMaxStreamEvents) events.push(e); + return true; + }); + out.set("events", events); + out.set("event_count", Json(static_cast(n))); + out.set("events_cap", Json(static_cast(kMaxStreamEvents))); + } else if (spec.destructive()) { + out.set("response", c.invoke_destructive(inv, true)); + } else { + out.set("response", c.invoke(inv)); + } + return out; + } + + private: + std::shared_ptr client_; +}; + +const char kPage[] = R"ENT({% extends "base.html" %} +{% block content %} +

Enterprise APIs

+

Gemini Enterprise (Discovery Engine), Dialogflow ES and CX, Retail, +Recommendations AI, Contact Center Insights and CES. Every call comes from +Google's Discovery documents. Reads run at once; any other call is a dry run +until you tick Confirm. Needs a Google credential and GOOGLE_CLOUD_PROJECT.

+

Checking configuration...

+
+ + + + + + + + + + +

+
+ +{% endblock %} +)ENT"; + +} // namespace + void register_google_enterprise_demo(fw::Router& router, Services& services) { - (void)router; - (void)services; + auto demo = std::make_shared(services); + fw::Environment* env = services.templates.get(); + env->add_template("google_enterprise.html", kPage); + services.add_feature("google-enterprise", "/google/enterprise"); + + // ---- Pages and status (never call Google). + router.get("/google/enterprise", "google-enterprise-page", [env](fw::Request) { + fw::TemplateCtx ctx; + ctx["title"] = std::string("Enterprise APIs"); + return fw::Response(200, env->render("google_enterprise.html", ctx), "text/html; charset=utf-8"); + }); + + router.get("/google/enterprise/status", "google-enterprise-status", [demo](fw::Request) { + google::CloudContext c = demo->context(); + Json j = Json::object(); + j.set("configured", Json(demo->configured())); + j.set("project_set", Json(c.valid())); + j.set("calls", Json(static_cast(ent::call_count()))); + Json apis = Json::array(); + for (ent::Api a : ent::all_apis()) { + const ent::ApiInfo& info = ent::api_info(a); + Json o = Json::object(); + o.set("slug", Json(std::string(info.slug))); + o.set("title", Json(std::string(info.title))); + o.set("service", Json(std::string(info.service))); + o.set("calls", Json(static_cast(ent::calls_of(a).size()))); + o.set("activation_url", Json(ent::activation_url(a, c.project.empty() ? "example-214512124" : c.project))); + apis.push(o); + } + j.set("apis", apis); + Json caps = Json::object(); + caps.set("max_body_bytes", Json(static_cast(ent::EnterpriseCaps::kMaxBodyBytes))); + caps.set("page_size", Json(ent::EnterpriseCaps::kPageSize)); + caps.set("max_list_pages", Json(ent::EnterpriseCaps::kMaxListPages)); + caps.set("max_list_items", Json(static_cast(ent::EnterpriseCaps::kMaxListItems))); + caps.set("max_stream_events", Json(static_cast(kMaxStreamEvents))); + j.set("caps", caps); + return json_reply(j); + }); + + router.get("/google/enterprise/calls", "google-enterprise-calls", [](fw::Request req) { + ent::Api api = api_of(req.query_or("api", "discoveryengine")); + std::string q = req.query_or("q", ""); + if (q.size() > 100) bad("q is too long"); + auto rows = ent::search_calls(api, q, kMaxCallRows + 1); + Json arr = Json::array(); + for (std::size_t i = 0; i < rows.size() && i < kMaxCallRows; ++i) { + const ent::CallSpec& c = *rows[i]; + Json o = Json::object(); + o.set("rpc", Json(std::string(c.rpc_id))); + o.set("method", Json(std::string(c.http_method))); + o.set("path", Json(std::string(c.path))); + o.set("version", Json(std::string(c.version))); + o.set("flags", Json(std::string(c.flags))); + arr.push(o); + } + Json j = Json::object(); + j.set("api", Json(std::string(ent::api_info(api).slug))); + j.set("count", Json(static_cast(arr.as_array().size()))); + j.set("truncated", Json(rows.size() > kMaxCallRows)); + j.set("cap_items", Json(static_cast(kMaxCallRows))); + j.set("calls", arr); + return json_reply(j); + }); + + // ---- Generic call: any row of the table. + router.post("/google/enterprise/call", "google-enterprise-call", [demo](fw::Request req) { + Json in = parse_object(req); + ent::Api api = api_of(str(in, "api", true)); + ent::Invocation inv; + inv.rpc = str(in, "rpc", true); + inv.path = string_map(in, "path"); + inv.query = string_map(in, "query"); + if (const Json* b = in.find("body"); b && !b->is_null()) { + if (!b->is_object()) bad("body must be an object"); + inv.body = *b; + } + bool confirm = flag(in, "confirm"); + return guarded([&] { + return json_reply(demo->run(demo->caller(api, str(in, "location")), inv, confirm)); + }); + }); + + // ---- Typed routes. + router.post("/google/enterprise/search", "google-enterprise-search", [demo](fw::Request req) { + Json in = parse_object(req); + return guarded([&] { + ent::SearchQuery q; + q.serving_config = str(in, "serving_config", true); + q.query = str(in, "query", true); + q.page_size = integer(in, "page_size", 10); + q.filter = str(in, "filter"); + q.user_pseudo_id = str(in, "user_pseudo_id"); + return json_reply(demo->run(demo->caller(ent::Api::kDiscoveryEngine, ""), + ent::DiscoveryEngine::search_invocation(q), flag(in, "confirm"))); + }); + }); + + router.post("/google/enterprise/answer", "google-enterprise-answer", [demo](fw::Request req) { + Json in = parse_object(req); + return guarded([&] { + ent::AnswerQuery q; + q.serving_config = str(in, "serving_config", true); + q.query_text = str(in, "query", true); + q.session = str(in, "session"); + q.user_pseudo_id = str(in, "user_pseudo_id"); + return json_reply(demo->run(demo->caller(ent::Api::kDiscoveryEngine, ""), + ent::DiscoveryEngine::answer_invocation(q, false), flag(in, "confirm"))); + }); + }); + + router.post("/google/enterprise/rank", "google-enterprise-rank", [demo](fw::Request req) { + Json in = parse_object(req); + return guarded([&] { + return json_reply(demo->run(demo->caller(ent::Api::kDiscoveryEngine, ""), + ent::DiscoveryEngine::rank_invocation(str(in, "ranking_config", true), + str(in, "query", true), + array_of(in, "records"), + integer(in, "top_n", 0)), + flag(in, "confirm"))); + }); + }); + + router.post("/google/enterprise/ground", "google-enterprise-ground", [demo](fw::Request req) { + Json in = parse_object(req); + return guarded([&] { + return json_reply(demo->run(demo->caller(ent::Api::kDiscoveryEngine, ""), + ent::DiscoveryEngine::grounding_invocation( + str(in, "grounding_config", true), str(in, "answer", true), + array_of(in, "facts")), + flag(in, "confirm"))); + }); + }); + + router.post("/google/enterprise/detect", "google-enterprise-detect", [demo](fw::Request req) { + Json in = parse_object(req); + std::string kind = str(in, "kind", true); + if (kind != "es" && kind != "cx") bad("kind must be es or cx"); + return guarded([&] { + std::string session = str(in, "session", true); + std::string text = str(in, "text", true); + std::string language = str(in, "language"); + if (language.empty()) language = "en"; + ent::Invocation inv = kind == "es" ? ent::DialogflowEs::detect_intent_invocation(session, text, language) + : ent::DialogflowCx::detect_intent_invocation(session, text, language); + return json_reply(demo->run(demo->caller(kind == "es" ? ent::Api::kDialogflowEs : ent::Api::kDialogflowCx, ""), + inv, flag(in, "confirm"))); + }); + }); + + router.post("/google/enterprise/predict", "google-enterprise-predict", [demo](fw::Request req) { + Json in = parse_object(req); + std::string kind = str(in, "kind", true); + if (kind != "retail" && kind != "recommendations") bad("kind must be retail or recommendations"); + return guarded([&] { + const Json* ev = in.find("user_event"); + if (!ev || !ev->is_object()) bad("user_event must be an object"); + std::string placement = str(in, "placement", true); + int page_size = integer(in, "page_size", 10); + bool dry = flag(in, "validate_only"); + ent::Invocation inv = kind == "retail" + ? ent::Retail::predict_invocation(placement, *ev, page_size, dry) + : ent::Recommendations::predict_invocation(placement, *ev, page_size, dry); + return json_reply(demo->run(demo->caller(kind == "retail" ? ent::Api::kRetail : ent::Api::kRecommendations, ""), + inv, flag(in, "confirm"))); + }); + }); + + router.post("/google/enterprise/ces/run", "google-enterprise-ces-run", [demo](fw::Request req) { + Json in = parse_object(req); + return guarded([&] { + ent::Invocation inv = ent::Ces::run_session_invocation(str(in, "session", true), str(in, "text", true)); + return json_reply(demo->run(demo->caller(ent::Api::kCes, ""), inv, flag(in, "confirm"))); + }); + }); } } // namespace molo::example::app diff --git a/example/assets/google_enterprise.js b/example/assets/google_enterprise.js new file mode 100644 index 0000000..99d8a34 --- /dev/null +++ b/example/assets/google_enterprise.js @@ -0,0 +1,64 @@ +// Enterprise APIs page: thin client over /google/enterprise/*. Every Google +// call is a POST; the status route says whether a credential is configured. +(function () { + "use strict"; + var $ = function (id) { return document.getElementById(id); }; + var out = $("e-out"), err = $("e-error"); + + function show(text, isError) { + (isError ? err : out).textContent = text; + if (isError) out.textContent = ""; else err.textContent = ""; + } + function request(method, path, body) { + var opts = { method: method }; + if (body !== undefined) { + opts.headers = { "Content-Type": "application/json" }; + opts.body = JSON.stringify(body); + } + return fetch(path, opts).then(function (res) { + return res.text().then(function (text) { + if (!res.ok) { + var msg = "HTTP " + res.status; + try { var j = JSON.parse(text); msg = (j.error || "") + ": " + (j.message || msg); } catch (e) {} + throw new Error(msg); + } + return JSON.parse(text); + }); + }); + } + function json(id) { + var v = $(id).value.trim(); + return v ? JSON.parse(v) : undefined; + } + function run(promise) { + promise.then(function (j) { show(JSON.stringify(j, null, 2), false); }) + .catch(function (e) { show(e.message, true); }); + } + + $("e-find").addEventListener("click", function () { + var path = "/google/enterprise/calls?api=" + encodeURIComponent($("e-api").value) + + "&q=" + encodeURIComponent($("e-q").value); + run(request("GET", path)); + }); + $("e-run").addEventListener("click", function () { + var body; + try { + body = { + api: $("e-api").value, + rpc: $("e-rpc").value.trim(), + path: json("e-path") || {}, + query: json("e-query") || {}, + confirm: $("e-confirm").checked + }; + var b = json("e-body"); + if (b !== undefined) body.body = b; + } catch (e) { show("Invalid JSON: " + e.message, true); return; } + run(request("POST", "/google/enterprise/call", body)); + }); + + request("GET", "/google/enterprise/status").then(function (s) { + $("e-config").textContent = s.configured && s.project_set + ? "Google credential and project are set. " + s.calls + " calls available." + : "Not configured: set a Google credential and GOOGLE_CLOUD_PROJECT to call Google."; + }).catch(function () { $("e-config").textContent = "Status unavailable."; }); +})(); diff --git a/src/google/enterprise/SPEC.md b/src/google/enterprise/SPEC.md new file mode 100644 index 0000000..b737c4b --- /dev/null +++ b/src/google/enterprise/SPEC.md @@ -0,0 +1,177 @@ +# Enterprise APIs - Specification + +Owned directory: `src/google/enterprise/`. Namespace `molo::google::enterprise`. +Depends on the `src/google` foundation (`GoogleClient`, `Service`, +`operation.h`). Plans: `plans/16-agent-platform.md`, `plans/18-breadth.md`. + +## 1. Scope + +Six Google API families, all REST, every call derived from Discovery +documents: + +| Family (`Api`) | Host | Discovery document | Rows | +|---|---|---|---| +| Discovery Engine (Gemini Enterprise): search, answer, streamAnswer, converse, assistants (streamAssist), agents, data stores, engines, documents, conversations, sessions, user events, serving configs, ranking (`rank`), grounding (`check`), recommend, schemas, site search, controls, licenses | `discoveryengine.googleapis.com` | `v1`, plus `v1alpha` for `assistants.agents` only | 278 + agents | +| Dialogflow ES (`kDialogflowEs`) | `dialogflow.googleapis.com` | `v2` | 284 | +| Dialogflow CX (`kDialogflowCx`) | `dialogflow.googleapis.com` | `v3` | 158 | +| Retail (`kRetail`): catalogs, products, search, predict, serving configs, user events, models, controls | `retail.googleapis.com` | `v2` | 71 | +| Contact Center Insights (`kInsights`) | `contactcenterinsights.googleapis.com` | `v1` | 188 | +| Customer Engagement Suite (`kCes`) | `ces.googleapis.com` | `v1` | 73 | +| Recommendations AI (`kRecommendations`): the original `recommendationengine` product (predict, catalog items, user events, prediction API key registrations) | `recommendationengine.googleapis.com` | `v1beta1` | 22 | + +Total: see `calls_table.inc` (1080 rows on 2026-10-25). "Recommendations AI" is +served by two APIs: Retail's `predict` (the successor) and the legacy +`recommendationengine` API. Both are covered. The IAM Recommender API +(`recommender.googleapis.com`) is a different product and is not here. + +Not here: gRPC-only methods (Dialogflow `streamingDetectIntent`, bidi +streams), media upload methods, Discovery Engine v1beta/v1alpha resources other +than `assistants.agents` (alpha-only products such as notebooks, evaluations, +sample queries), Dialogflow ES `v2beta1` and CX `v3beta1`, Retail +`v2alpha`/`v2beta`, CES `v1beta`. They are reachable by adding a row source in +`tools/check_discovery.py` and regenerating. + +## 2. Module map + +| File | Concern | +|---|---| +| `caps.h` | Static ceilings (`EnterpriseCaps`) | +| `apis.h/.cpp` | `Api`, `ApiInfo`, `endpoint_for` (global and regional hosts), `activation_url` | +| `calls_table.inc` | GENERATED table of every call (one row per line) | +| `calls.h/.cpp` | `CallSpec` (path parameters with Discovery patterns, query, body fields, flags), lookup by `(Api, rpc id)` | +| `caller.h/.cpp` | `Caller`: `prepare` (pure validation + URL), `invoke`, `invoke_destructive`, `invoke_stream`, `list`, `wait`, `operation`; `valid_resource_name` | +| `discovery_engine.h/.cpp` | `DiscoveryEngine`, `DeNames`, `SearchQuery`, `AnswerQuery` | +| `dialogflow.h/.cpp` | `DialogflowEs`, `DialogflowCx`, `text_query_input` | +| `retail.h/.cpp` | `Retail`, `RetailNames`, `RetailSearch`, `Recommendations` | +| `contact_center.h/.cpp` | `Insights`, `Ces` | +| `tools/check_discovery.py` | Regenerates the table from Discovery and fails on any difference | + +The typed facades cover the documented core paths. Every other row of the +table is reachable with `Caller::invoke(Invocation{rpc, path, query, body})`; +the demo route `/google/enterprise/call` does exactly that. + +## 3. Static caps + +| Knob | Value | +|---|---| +| request body (serialized) | 1 MiB | +| resource name / one segment | 512 / 200 chars | +| query value / query parameters | 2048 chars / 20 | +| list: page size / pages / items | 50 / 10 / 500 (truncation reported, never silent) | +| stream events delivered | 2000 (demo route: 100) | +| query or utterance text | 8000 chars (Dialogflow detectIntent text: 256, Google's limit) | +| rank records, grounding facts | 100 each | +| search page size / offset | 1..100 / 0..10000 | +| wait for an operation | 600 s / 400 polls (`operation.h`) | + +## 4. Contracts + +- Every URL comes from the table. A path parameter must match the regex + Discovery declares for it (when it declares one) and every `+` parameter + must be a valid resource name (segments of `[A-Za-z0-9._~-]`, no empty, `.` + or `..` segment). Unknown path, query or top-level body fields are rejected. + Required query parameters must be present. All of this runs in + `Caller::prepare` before any network traffic: `GoogleError` 400 + `INVALID_ARGUMENT`. No credential: `NotConfiguredError` (503). +- Destructive rows (HTTP DELETE, or a method named delete/purge/remove/cancel/ + reset/clear/batchDelete, flag `D`) are refused by `invoke`; they run only via + `invoke_destructive(inv, confirm)` and `confirm` has no default and must be + true. Streaming rows (flag `S`) only via `invoke_stream`. +- Location picks the host: from the first `locations/{x}` in a path parameter, + else the caller's default. Discovery Engine: `global`, `us`, `eu` + (`us-discoveryengine.googleapis.com`); Dialogflow: any region + (`{region}-dialogflow.googleapis.com`); CES: `us`, `eu` + (`ces.{loc}.rep.googleapis.com`, from Discovery `endpoints`); Retail, + Insights, Recommendations: the global host serves every location in the path. +- Long-running rows (flag `L`) return the operation; `Caller::wait` polls it + with the capped `wait_operation`. +- The demo (`/google/enterprise`): GET page, `/status`, `/calls`; every route + that calls Google is a POST: `/call`, `/search`, `/answer`, `/rank`, + `/ground`, `/detect`, `/predict`, `/ces/run`. Order: validate (422), require + credential (503 `google_not_configured`), then HTTP GET rows run at once and + every other call is a dry run unless `"confirm":true`. Oversize body: 413. + +## 5. Required APIs + +Enable these on the project (placeholder project `example-214512124`; one-line `gcloud` command in `src/google/APIS.md` once the owner adds them). A disabled API answers 403 `SERVICE_DISABLED`. + +- `discoveryengine.googleapis.com`: https://console.developers.google.com/apis/api/discoveryengine.googleapis.com/overview?project=example-214512124 +- `dialogflow.googleapis.com`: https://console.developers.google.com/apis/api/dialogflow.googleapis.com/overview?project=example-214512124 +- `retail.googleapis.com`: https://console.developers.google.com/apis/api/retail.googleapis.com/overview?project=example-214512124 +- `contactcenterinsights.googleapis.com`: https://console.developers.google.com/apis/api/contactcenterinsights.googleapis.com/overview?project=example-214512124 +- `ces.googleapis.com`: https://console.developers.google.com/apis/api/ces.googleapis.com/overview?project=example-214512124 +- `recommendationengine.googleapis.com`: https://console.developers.google.com/apis/api/recommendationengine.googleapis.com/overview?project=example-214512124 + +OAuth scope: `cloud-platform` (every document lists it). Discovery Engine also +accepts narrower scopes (`discoveryengine.readwrite`, ...); not used. + +## 6. Sources + +- Discovery documents, fetched 2026-10-25: `https://{service}.googleapis.com/$discovery/rest?version={v}` for + discoveryengine v1 (revision 20261022) and v1alpha, dialogflow v2 and v3 + (20261018), retail v2 (20261018), contactcenterinsights v1 (20261015), ces v1 + (20261023), recommendationengine v1beta1 (20261019). +- Discovery directory `https://discovery.googleapis.com/discovery/v1/apis` + (which versions exist, which are preferred). +- Regional hosts: the Discovery `endpoints` array (CES, Discovery Engine `us`); + Discovery Engine multi-region hosts `us-discoveryengine.googleapis.com` and + `eu-discoveryengine.googleapis.com` and Dialogflow `{region}-dialogflow...` + are from the product location documentation, not from Discovery. + +## 7. Verified against discovery + +`python3 -I src/google/enterprise/tools/check_discovery.py` (network) or with +`--cache DIR` (files `-.json`). Run 2026-10-25: the +committed `calls_table.inc` equals the table regenerated from Discovery (1080 +rows), every rpc id written in the C++ facades is in the table, every document +exposes the `cloud-platform` scope and the expected `rootUrl`, CES regional +endpoints match. Per-document method counts are printed by the script (v1alpha +of Discovery Engine contributes only the `assistants.agents` rows not already in +v1). + +## 8. Verified live + +Project `lisa-448004`, service-account token, 2026-10-25, +`test_enterprise_live.cpp` (read-only lists and gets): **all six APIs answered +403 "API has not been used / is disabled"**, reported by the test as +`API NOT ENABLED`: discoveryengine (dataStores.list, engines.list), +dialogflow (ES `projects.getAgent`, CX `agents.list`), retail +(`catalogs.list`), recommendationengine (`catalogs.list`), +contactcenterinsights (`conversations.list`), ces (`apps.list`). That proves +the host, path and token were accepted by Google's front end and nothing more: +no success body from any of these APIs has been seen. A human must enable the +APIs (section 5) and rerun `make google-live`. + +## 9. Unverified + +- Every request and response shape beyond Discovery field names: no success + response from any enterprise API has been seen (APIs not enabled). +- Facade details not in Discovery: the `queryInput.text` shape of + detectIntent, `query.text` of answer, `inputs[].text` of CES `runSession` + follow the schemas' field names but their semantic validity was not + exercised. +- The default resource ids (`default_collection`, `default_search`, + `default_assistant`, `default_ranking_config`, `default_grounding_config`, + `default_catalog`, `default_branch`) come from product documentation. +- `us-` / `eu-` Discovery Engine hosts and regional Dialogflow hosts: from + documentation, not probed. +- Streaming rows (`streamAnswer`, `streamAssist`) go through the foundation's + `stream_json`, which decodes SSE and plain JSON; the actual wire format of + these two was not seen. +- Path parameter patterns are applied with `std::regex` (ECMAScript); a pattern + it cannot compile is skipped (left to Google). None failed to compile in the + test run. + +## 10. Gaps + +- No success path was ever observed (see 8); enabling the six APIs on the + project closes it. +- Typed facades exist for the core flows only; other rows use the generic + `Caller`. Media upload and gRPC-only methods are out of scope (section 1). +- `Caller::list` caps at 10 pages / 500 items and says so; larger sets need the + `pageToken` loop in the caller's hands. +- Foundation: `GoogleClient` sends no `X-Goog-User-Project` header, so a + service account is billed and quota-checked against its own project. +- Foundation: `stream_json` supports POST only; the A2A `subscribe` GET row + (`assistants.agents.a2a.v1.tasks.subscribe`) therefore answers one JSON + document or fails. diff --git a/src/google/enterprise/apis.cpp b/src/google/enterprise/apis.cpp new file mode 100644 index 0000000..12a3a40 --- /dev/null +++ b/src/google/enterprise/apis.cpp @@ -0,0 +1,84 @@ +#include "google/enterprise/apis.h" + +#include "google/errors.h" + +namespace molo::google::enterprise { + +namespace { +// Hosts: discoveryengine.googleapis.com dialogflow.googleapis.com +// retail.googleapis.com contactcenterinsights.googleapis.com +// ces.googleapis.com recommendationengine.googleapis.com +// CES regional (Discovery "endpoints"): ces.us.rep.googleapis.com, ces.eu.rep.googleapis.com +const ApiInfo kApis[] = { + {Api::kDiscoveryEngine, "discoveryengine", "Discovery Engine (Gemini Enterprise)", + "discoveryengine.googleapis.com", "prefix"}, + {Api::kDialogflowEs, "dialogflow-es", "Dialogflow ES", "dialogflow.googleapis.com", "prefix"}, + {Api::kDialogflowCx, "dialogflow-cx", "Dialogflow CX", "dialogflow.googleapis.com", "prefix"}, + {Api::kRetail, "retail", "Retail", "retail.googleapis.com", "none"}, + {Api::kInsights, "insights", "Contact Center Insights", "contactcenterinsights.googleapis.com", + "none"}, + {Api::kCes, "ces", "Customer Engagement Suite", "ces.googleapis.com", "rep"}, + {Api::kRecommendations, "recommendations", "Recommendations AI", + "recommendationengine.googleapis.com", "none"}, +}; + +bool valid_loc(const std::string& l) { + if (l.empty() || l.size() > 32) return false; + for (char c : l) + if (!((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '-')) return false; + return true; +} +} // namespace + +const ApiInfo& api_info(Api api) { + for (const ApiInfo& i : kApis) + if (i.api == api) return i; + throw GoogleError::invalid("unknown api"); +} + +const std::vector& all_apis() { + static const std::vector v = {Api::kDiscoveryEngine, Api::kDialogflowEs, Api::kDialogflowCx, + Api::kRetail, Api::kInsights, Api::kCes, + Api::kRecommendations}; + return v; +} + +Api api_from_slug(const std::string& slug) { + for (const ApiInfo& i : kApis) + if (slug == i.slug) return i.api; + throw GoogleError::invalid("unknown api slug"); +} + +ServiceEndpoint endpoint_for(Api api, const std::string& version, const std::string& location) { + const ApiInfo& i = api_info(api); + if (version.empty() || version.size() > 12) throw GoogleError::invalid("bad version"); + std::string host = i.service; + const std::string style = i.regional; + bool global = location.empty() || location == "global"; + if (!global) { + if (!valid_loc(location)) throw GoogleError::invalid("bad location"); + if (style == "prefix") { + // Discovery Engine serves multi-regions us and eu (us-discoveryengine...); + // Dialogflow serves every region as {region}-dialogflow... + if (api == Api::kDiscoveryEngine && location != "us" && location != "eu") + throw GoogleError::invalid("discoveryengine location must be global, us or eu"); + host = location + "-" + host; + } else if (style == "rep") { + if (location != "us" && location != "eu") + throw GoogleError::invalid("ces location must be global, us or eu"); + host = std::string("ces.") + location + ".rep.googleapis.com"; + } + // style "none": the global host serves every location named in the path. + } + ServiceEndpoint e; + e.name = i.slug; + e.base_url = "https://" + host + "/" + version; + return e; +} + +std::string activation_url(Api api, const std::string& project) { + return std::string("https://console.developers.google.com/apis/api/") + api_info(api).service + + "/overview?project=" + project; +} + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/apis.h b/src/google/enterprise/apis.h new file mode 100644 index 0000000..41f3d23 --- /dev/null +++ b/src/google/enterprise/apis.h @@ -0,0 +1,42 @@ +#pragma once + +// The seven API families of the enterprise package and where each lives. + +#include +#include + +#include "google/endpoints.h" + +namespace molo::google::enterprise { + +enum class Api { + kDiscoveryEngine, // Gemini Enterprise search, answer, assistants, agents + kDialogflowEs, // dialogflow v2 + kDialogflowCx, // dialogflow v3 + kRetail, // retail v2 + kInsights, // Contact Center Insights v1 + kCes, // Customer Engagement Suite v1 + kRecommendations, // Recommendations AI (recommendationengine v1beta1) +}; + +struct ApiInfo { + Api api; + const char* slug; // "discoveryengine" + const char* title; // "Discovery Engine (Gemini Enterprise)" + const char* service; // "discoveryengine.googleapis.com" + const char* regional; // "none", "prefix" ("us-host"), "rep" ("svc.us.rep.host") +}; + +const ApiInfo& api_info(Api api); +const std::vector& all_apis(); +// Throws GoogleError(invalid) for an unknown slug. +Api api_from_slug(const std::string& slug); + +// Base URL for a version and a location. "global" (or empty) is the global +// host. Multi-region/region names are validated; an unsupported one throws. +ServiceEndpoint endpoint_for(Api api, const std::string& version, const std::string& location); + +// The activation page for the API on a project. +std::string activation_url(Api api, const std::string& project); + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/caller.cpp b/src/google/enterprise/caller.cpp new file mode 100644 index 0000000..c325e84 --- /dev/null +++ b/src/google/enterprise/caller.cpp @@ -0,0 +1,215 @@ +#include "google/enterprise/caller.h" + +#include + +#include "clients/url.h" +#include "google/enterprise/caps.h" +#include "google/errors.h" + +namespace molo::google::enterprise { + +using clients::body::Json; + +namespace { +bool seg_char(char c) { + return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '.' || + c == '_' || c == '~' || c == '-'; +} + +bool valid_segment_text(const std::string& s) { + if (s.empty() || s.size() > EnterpriseCaps::kMaxSegmentChars) return false; + if (s == "." || s == "..") return false; + for (char c : s) + if (!seg_char(c)) return false; + return true; +} + +[[noreturn]] void bad(const std::string& m) { throw GoogleError::invalid(m); } + +std::string enc(const std::string& s) { return clients::Url::encode_component(s); } +} // namespace + +bool valid_resource_name(const std::string& name) { + if (name.empty() || name.size() > EnterpriseCaps::kMaxResourceChars) return false; + std::size_t start = 0; + while (true) { + std::size_t slash = name.find('/', start); + std::string seg = name.substr(start, slash == std::string::npos ? std::string::npos : slash - start); + if (!valid_segment_text(seg)) return false; + if (slash == std::string::npos) return true; + start = slash + 1; + } +} + +Caller::Caller(std::shared_ptr client, Api api, std::string default_location, + Sleeper sleeper) + : Service(std::move(client), endpoint_for(api, "v1", "global")), + api_(api), + location_(std::move(default_location)), + sleeper_(std::move(sleeper)) {} + +std::string Caller::location_of(const Invocation& inv) const { + for (const auto& kv : inv.path) { + std::size_t p = kv.second.find("locations/"); + if (p == std::string::npos || (p != 0 && kv.second[p - 1] != '/')) continue; + std::size_t s = p + 10; + std::size_t e = kv.second.find('/', s); + return kv.second.substr(s, e == std::string::npos ? std::string::npos : e - s); + } + return location_; +} + +Prepared Caller::prepare(const Invocation& inv) const { + const CallSpec& spec = find_call(api_, inv.rpc); + Prepared out; + out.spec = &spec; + + // Path. + std::string path = spec.path; + std::size_t slash = path.find('/'); + path = path.substr(slash); // drop the version prefix + std::size_t used = 0; + for (const auto& p : spec.path_params()) { + auto it = inv.path.find(p.name); + if (it == inv.path.end()) bad("missing path parameter " + p.name); + ++used; + const std::string& v = it->second; + if (p.plus) { + if (!valid_resource_name(v)) bad("bad resource name for " + p.name); + } else if (!valid_segment_text(v)) { + bad("bad id for " + p.name); + } + if (!p.pattern.empty()) { + bool ok = false; + try { + ok = std::regex_match(v, std::regex(p.pattern.substr(p.pattern.front() == '^' ? 1 : 0, + p.pattern.size() - + (p.pattern.front() == '^' ? 1 : 0) - + (p.pattern.back() == '$' ? 1 : 0)))); + } catch (const std::regex_error&) { + ok = true; // a pattern std::regex cannot compile is left to Google + } + if (!ok) bad(p.name + " does not match " + p.pattern); + } + std::string token = std::string("{") + (p.plus ? "+" : "") + p.name + "}"; + std::size_t at = path.find(token); + path.replace(at, token.size(), v); // segments are already URL safe + } + if (used != inv.path.size()) bad("unexpected path parameter"); + + // Query. + std::vector allowed = spec.query_params(); + if (inv.query.size() > EnterpriseCaps::kMaxQueryParams) bad("too many query parameters"); + std::string qs; + for (const auto& kv : inv.query) { + bool known = false; + for (const auto& a : allowed) known = known || a == kv.first; + if (!known) bad("unknown query parameter " + kv.first); + if (kv.second.size() > EnterpriseCaps::kMaxQueryValueChars) bad("query value too long"); + for (unsigned char c : kv.second) + if (c < 0x20) bad("control character in query value"); + qs += (qs.empty() ? "?" : "&") + kv.first + "=" + enc(kv.second); + } + for (const auto& r : spec.required_query()) + if (!inv.query.count(r)) bad("missing query parameter " + r); + out.path = path + qs; + + // Body. + if (std::string(spec.request).empty()) { + if (!inv.body.is_null()) bad("this call takes no body"); + } else { + out.has_body = true; + out.body = inv.body.is_null() ? Json::object() : inv.body; + if (!out.body.is_object()) bad("body must be a JSON object"); + std::vector fields = spec.body_field_list(); + for (const auto& kv : out.body.as_object()) { + bool known = false; + for (const auto& f : fields) known = known || f == kv.first; + if (!known) bad("unknown body field " + kv.first); + } + if (out.body.dump().size() > EnterpriseCaps::kMaxBodyBytes) bad("body too large"); + } + out.endpoint = endpoint_for(api_, spec.version, location_of(inv)); + return out; +} + +Json Caller::invoke(const Invocation& inv) const { + Prepared p = prepare(inv); + if (p.spec->destructive()) bad("destructive call: use invoke_destructive"); + if (p.spec->streaming()) bad("streaming call: use invoke_stream"); + return client_->request(p.spec->method(), p.endpoint, p.path, p.has_body ? &p.body : nullptr); +} + +Json Caller::invoke_destructive(const Invocation& inv, bool confirm) const { + Prepared p = prepare(inv); + if (!p.spec->destructive()) bad("not a destructive call: use invoke"); + if (!confirm) bad("destructive call needs confirm=true"); + return client_->request(p.spec->method(), p.endpoint, p.path, p.has_body ? &p.body : nullptr); +} + +std::size_t Caller::invoke_stream(const Invocation& inv, const GoogleClient::EventSink& sink) const { + Prepared p = prepare(inv); + if (!p.spec->streaming()) bad("not a streaming call"); + std::size_t n = 0; + client_->stream_json(p.endpoint, p.path, p.has_body ? p.body : Json::object(), + [&](const Json& ev) { + ++n; + return sink(ev) && n < EnterpriseCaps::kMaxStreamEvents; + }); + return n; +} + +ListResult Caller::list(const Invocation& inv) const { + const CallSpec& spec = find_call(api_, inv.rpc); + if (!spec.paginated()) bad("not a paginated call"); + ListResult out; + Invocation page = inv; + bool sized = false; + for (const auto& q : spec.query_params()) sized = sized || q == "pageSize"; + if (sized && !page.query.count("pageSize")) + page.query["pageSize"] = std::to_string(EnterpriseCaps::kPageSize); + for (int i = 0; i < EnterpriseCaps::kMaxListPages; ++i) { + Prepared p = prepare(page); + Json doc = client_->request(p.spec->method(), p.endpoint, p.path, p.has_body ? &p.body : nullptr); + ++out.pages; + out.next_page_token.clear(); + if (doc.is_object()) { + if (const Json* arr = doc.find(spec.items_key); arr && arr->is_array()) + for (const Json& item : arr->as_array()) { + if (out.size() >= EnterpriseCaps::kMaxListItems) { + out.truncated = true; + return out; + } + out.items.push(item); + } + if (const Json* t = doc.find("nextPageToken"); t && t->is_string()) + out.next_page_token = t->as_string(); + } + if (out.next_page_token.empty()) return out; + page.query["pageToken"] = out.next_page_token; + } + out.truncated = !out.next_page_token.empty(); + return out; +} + +void Caller::check_operation_name(const std::string& name) { + if (name.rfind("projects/", 0) != 0 || !valid_resource_name(name) || + name.find("/operations/") == std::string::npos) + bad("bad operation name"); +} + +Operation Caller::operation(const std::string& name, const std::string& version, + const std::string& location) const { + check_operation_name(name); + return Operation::from_json( + client_->get_json(endpoint_for(api_, version, location.empty() ? location_ : location), "/" + name)); +} + +Operation Caller::wait(const std::string& name, const std::string& version, + const std::string& location) const { + check_operation_name(name); + return wait_operation(*client_, endpoint_for(api_, version, location.empty() ? location_ : location), + name, sleeper_); +} + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/caller.h b/src/google/enterprise/caller.h new file mode 100644 index 0000000..0616061 --- /dev/null +++ b/src/google/enterprise/caller.h @@ -0,0 +1,82 @@ +#pragma once + +// Caller: validates and sends any call of the table for one API family. +// Every typed facade (discovery_engine.h, dialogflow.h, ...) is a thin layer +// over it. Validation runs before any network traffic and fails with +// GoogleError 400 INVALID_ARGUMENT; no credential: NotConfiguredError. + +#include +#include +#include +#include + +#include "clients/body/json.h" +#include "google/enterprise/calls.h" +#include "google/operation.h" +#include "google/service.h" + +namespace molo::google::enterprise { + +struct Invocation { + std::string rpc; // Discovery method id from the table + std::map path; // placeholder name -> value + std::map query; // query parameter -> value + clients::body::Json body; // null: no body +}; + +struct Prepared { + const CallSpec* spec = nullptr; + ServiceEndpoint endpoint; + std::string path; // after the version, with the query string + clients::body::Json body; + bool has_body = false; + std::string url() const { return endpoint.base_url + path; } +}; + +struct ListResult { + clients::body::Json items = clients::body::Json::array(); + int pages = 0; + bool truncated = false; // more existed past the page or item cap + std::string next_page_token; + std::size_t size() const { return items.as_array().size(); } +}; + +class Caller : public Service { + public: + Caller(std::shared_ptr client, Api api, std::string default_location = "global", + Sleeper sleeper = nullptr); + + Api api() const { return api_; } + const std::string& default_location() const { return location_; } + + // Pure: validates and builds the request, no network, no credential needed. + Prepared prepare(const Invocation& inv) const; + // Not for destructive rows (those throw invalid; use invoke_destructive). + clients::body::Json invoke(const Invocation& inv) const; + // Destructive rows only; confirm has no default and must be true. + clients::body::Json invoke_destructive(const Invocation& inv, bool confirm) const; + // Rows flagged S. Returns the events delivered (capped). + std::size_t invoke_stream(const Invocation& inv, const GoogleClient::EventSink& sink) const; + // Rows flagged P: follows nextPageToken up to the caps, reports truncation. + ListResult list(const Invocation& inv) const; + // Polls an operation name returned by a row flagged L (capped wait). + Operation wait(const std::string& operation_name, const std::string& version, + const std::string& location = "") const; + // One poll of an operation. + Operation operation(const std::string& operation_name, const std::string& version, + const std::string& location = "") const; + + private: + std::string location_of(const Invocation& inv) const; + static void check_operation_name(const std::string& name); + + Api api_; + std::string location_; + Sleeper sleeper_; +}; + +// A resource name check shared by every facade: 1..512 chars, segments of +// [A-Za-z0-9._~-], no empty segment, no "." or ".." segment. +bool valid_resource_name(const std::string& name); + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/calls.cpp b/src/google/enterprise/calls.cpp new file mode 100644 index 0000000..53537f3 --- /dev/null +++ b/src/google/enterprise/calls.cpp @@ -0,0 +1,134 @@ +#include "google/enterprise/calls.h" + +#include +#include + +#include "google/errors.h" + +namespace molo::google::enterprise { + +namespace { +const CallSpec kCalls[] = { +#include "google/enterprise/calls_table.inc" +}; + +std::vector split(const std::string& s, char sep) { + std::vector out; + std::string cur; + for (char c : s) { + if (c == sep) { + if (!cur.empty()) out.push_back(cur); + cur.clear(); + } else { + cur += c; + } + } + if (!cur.empty()) out.push_back(cur); + return out; +} + +bool has_flag(const CallSpec& c, char f) { + for (const char* p = c.flags; *p; ++p) + if (*p == f) return true; + return false; +} + +using Index = std::map, const CallSpec*>; +const Index& index() { + static const Index idx = [] { + Index m; + for (const CallSpec& c : kCalls) m[{static_cast(c.api), c.rpc_id}] = &c; + return m; + }(); + return idx; +} +} // namespace + +bool CallSpec::destructive() const { return has_flag(*this, 'D'); } +bool CallSpec::long_running() const { return has_flag(*this, 'L'); } +bool CallSpec::streaming() const { return has_flag(*this, 'S'); } +bool CallSpec::paginated() const { return has_flag(*this, 'P'); } +bool CallSpec::read_only() const { return std::string(http_method) == "GET"; } + +clients::Method CallSpec::method() const { + std::string m = http_method; + if (m == "GET") return clients::Method::kGet; + if (m == "POST") return clients::Method::kPost; + if (m == "PATCH") return clients::Method::kPatch; + if (m == "DELETE") return clients::Method::kDelete; + throw GoogleError::invalid("unsupported http method " + m); +} + +std::vector CallSpec::path_params() const { + std::map patterns; + for (const std::string& item : split(params, ' ')) { + auto eq = item.find('='); + patterns[item.substr(0, eq)] = eq == std::string::npos ? "" : item.substr(eq + 1); + } + std::vector out; + std::string p = path; + for (std::size_t i = 0; i < p.size(); ++i) { + if (p[i] != '{') continue; + std::size_t end = p.find('}', i); + if (end == std::string::npos) break; + std::string name = p.substr(i + 1, end - i - 1); + bool plus = !name.empty() && name[0] == '+'; + if (plus) name.erase(0, 1); + out.push_back({name, patterns[name], plus}); + i = end; + } + return out; +} + +std::vector CallSpec::query_params() const { + std::vector out; + for (std::string q : split(query, ',')) { + if (!q.empty() && q.back() == '!') q.pop_back(); + out.push_back(q); + } + return out; +} + +std::vector CallSpec::required_query() const { + std::vector out; + for (const std::string& q : split(query, ',')) + if (!q.empty() && q.back() == '!') out.push_back(q.substr(0, q.size() - 1)); + return out; +} + +std::vector CallSpec::body_field_list() const { return split(body_fields, ','); } + +std::size_t call_count() { return sizeof(kCalls) / sizeof(kCalls[0]); } +const CallSpec& call_at(std::size_t i) { return kCalls[i]; } + +const CallSpec* try_find_call(Api api, const std::string& rpc_id) { + auto it = index().find({static_cast(api), rpc_id}); + return it == index().end() ? nullptr : it->second; +} + +const CallSpec& find_call(Api api, const std::string& rpc_id) { + const CallSpec* c = try_find_call(api, rpc_id); + if (!c) throw GoogleError::invalid("unknown rpc id for " + std::string(api_info(api).slug)); + return *c; +} + +std::vector calls_of(Api api) { + std::vector out; + for (const CallSpec& c : kCalls) + if (c.api == api) out.push_back(&c); + return out; +} + +std::vector search_calls(Api api, const std::string& needle, std::size_t limit) { + std::vector out; + for (const CallSpec& c : kCalls) { + if (c.api != api) continue; + if (needle.empty() || std::string(c.rpc_id).find(needle) != std::string::npos) { + out.push_back(&c); + if (out.size() >= limit) break; + } + } + return out; +} + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/calls.h b/src/google/enterprise/calls.h new file mode 100644 index 0000000..15ff079 --- /dev/null +++ b/src/google/enterprise/calls.h @@ -0,0 +1,56 @@ +#pragma once + +// The ONE table of REST calls of the enterprise package, generated from +// Google's Discovery documents (calls_table.inc, checked by +// tools/check_discovery.py). Code never builds a URL from a literal. + +#include +#include +#include + +#include "clients/request.h" +#include "google/enterprise/apis.h" + +namespace molo::google::enterprise { + +struct CallSpec { + Api api; + const char* version; // "v1", "v1alpha", "v2", "v3", "v2", "v1beta1" + const char* rpc_id; // Discovery method id + const char* http_method; // GET POST PATCH DELETE + const char* path; // Discovery path, e.g. "v1/{+name}:purge" + const char* params; // "name=pattern" items separated by one space + const char* query; // comma list, "!" suffix = required + const char* body_fields; // comma list of top-level request fields + const char* request; // request schema name ("" = no body) + const char* flags; // D destructive, L long-running, S stream, P paginated + const char* items_key; // list response array property (P only) + + bool destructive() const; + bool long_running() const; + bool streaming() const; + bool paginated() const; + bool read_only() const; // GET + clients::Method method() const; + // Name of a placeholder -> its regex pattern, in path order. + struct Param { + std::string name; + std::string pattern; + bool plus; // {+name}: may contain slashes + }; + std::vector path_params() const; + std::vector query_params() const; // names, without "!" + std::vector required_query() const; + std::vector body_field_list() const; +}; + +std::size_t call_count(); +const CallSpec& call_at(std::size_t index); +// Throws GoogleError(invalid) for an rpc id the table does not hold. +const CallSpec& find_call(Api api, const std::string& rpc_id); +const CallSpec* try_find_call(Api api, const std::string& rpc_id); +std::vector calls_of(Api api); +// Calls whose rpc id contains `needle` (case sensitive), capped at `limit`. +std::vector search_calls(Api api, const std::string& needle, std::size_t limit); + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/calls_table.inc b/src/google/enterprise/calls_table.inc new file mode 100644 index 0000000..6f9859c --- /dev/null +++ b/src/google/enterprise/calls_table.inc @@ -0,0 +1,1085 @@ +// GENERATED by tools/check_discovery.py --write from Google's Discovery +// documents. Do not edit by hand: the checker fails on any difference. +// Fields: api, version, rpc id, http method, path, path params (name=pattern), +// query params (! = required), request body fields, request schema, flags +// (D destructive, L long-running, S stream, P paginated), list items key. +{Api::kDiscoveryEngine, "v1", "discoveryengine.billingAccounts.billingAccountLicenseConfigs.distributeLicenseConfig", "POST", "v1/{+billingAccountLicenseConfig}:distributeLicenseConfig", "billingAccountLicenseConfig=^billingAccounts/[^/]+/billingAccountLicenseConfigs/[^/]+$", "", "licenseConfigId,licenseCount,location,projectNumber", "GoogleCloudDiscoveryengineV1DistributeLicenseConfigRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.billingAccounts.billingAccountLicenseConfigs.retractLicenseConfig", "POST", "v1/{+billingAccountLicenseConfig}:retractLicenseConfig", "billingAccountLicenseConfig=^billingAccounts/[^/]+/billingAccountLicenseConfigs/[^/]+$", "", "fullRetract,licenseConfig,licenseCount", "GoogleCloudDiscoveryengineV1RetractLicenseConfigRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.cmekConfigs.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/cmekConfigs/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.cmekConfigs.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/cmekConfigs/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.cmekConfigs.list", "GET", "v1/{+parent}/cmekConfigs", "parent=^projects/[^/]+/locations/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.cmekConfigs.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/cmekConfigs/[^/]+$", "setDefault", "isDefault,kmsKey,kmsKeyVersion,lastRotationTimestampMicros,name,notebooklmState,singleRegionKeys,state", "GoogleCloudDiscoveryengineV1CmekConfig", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataConnector.mcp", "DELETE", "v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataConnector/mcp", "projectsId= locationsId= collectionsId=", "contentType,data,extensions", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataConnector.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataConnector/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataConnector.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataConnector$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.batchGetDocumentsMetadata", "GET", "v1/{+parent}/batchGetDocumentsMetadata", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+$", "matcher.fhirMatcher.fhirResources,matcher.urisMatcher.uris", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.documents.create", "POST", "v1/{+parent}/documents", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+$", "documentId", "aclInfo,content,derivedStructData,id,indexStatus,indexTime,jsonData,name,parentDocumentId,schemaId,structData", "GoogleCloudDiscoveryengineV1Document", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.documents.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.documents.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.documents.import", "POST", "v1/{+parent}/documents:import", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+$", "", "alloyDbSource,autoGenerateIds,bigquerySource,bigtableSource,cloudSqlSource,errorConfig,fhirStoreSource,firestoreSource,forceRefreshContent,gcsSource,idField,inlineSource,reconciliationMode,spannerSource,updateMask", "GoogleCloudDiscoveryengineV1ImportDocumentsRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.documents.list", "GET", "v1/{+parent}/documents", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+$", "pageSize,pageToken", "", "", "P", "documents"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.documents.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+$", "allowMissing,updateMask", "aclInfo,content,derivedStructData,id,indexStatus,indexTime,jsonData,name,parentDocumentId,schemaId,structData", "GoogleCloudDiscoveryengineV1Document", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.documents.purge", "POST", "v1/{+parent}/documents:purge", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+$", "", "errorConfig,filter,force,gcsSource,inlineSource", "GoogleCloudDiscoveryengineV1PurgeDocumentsRequest", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.operations.cancel", "POST", "v1/{+name}:cancel", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+$", "", "", "GoogleLongrunningCancelOperationRequest", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.branches.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.completeQuery", "GET", "v1/{+dataStore}:completeQuery", "dataStore=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "includeTailSuggestions,query,queryModel,userPseudoId", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.completionConfig.completeQuery", "POST", "v1/{+completionConfig}:completeQuery", "completionConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/completionConfig$", "", "boostSpec,experimentIds,includeTailSuggestions,query,queryModel,suggestionTypeSpecs,suggestionTypes,userInfo,userPseudoId", "GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.completionSuggestions.import", "POST", "v1/{+parent}/completionSuggestions:import", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "bigquerySource,errorConfig,gcsSource,inlineSource", "GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.completionSuggestions.purge", "POST", "v1/{+parent}/completionSuggestions:purge", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "", "GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.controls.create", "POST", "v1/{+parent}/controls", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "controlId", "associatedServingConfigIds,boostAction,conditions,displayName,filterAction,name,promoteAction,redirectAction,solutionType,synonymsAction,useCases", "GoogleCloudDiscoveryengineV1Control", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.controls.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/controls/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.controls.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/controls/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.controls.list", "GET", "v1/{+parent}/controls", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "controls"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.controls.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/controls/[^/]+$", "updateMask", "associatedServingConfigIds,boostAction,conditions,displayName,filterAction,name,promoteAction,redirectAction,solutionType,synonymsAction,useCases", "GoogleCloudDiscoveryengineV1Control", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.conversations.converse", "POST", "v1/{+name}:converse", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/conversations/[^/]+$", "", "boostSpec,conversation,filter,query,safeSearch,servingConfig,summarySpec,userLabels", "GoogleCloudDiscoveryengineV1ConverseConversationRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.conversations.create", "POST", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "endTime,messages,name,startTime,state,userPseudoId", "GoogleCloudDiscoveryengineV1Conversation", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.conversations.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/conversations/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.conversations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/conversations/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.conversations.list", "GET", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "conversations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.conversations.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/conversations/[^/]+$", "updateMask", "endTime,messages,name,startTime,state,userPseudoId", "GoogleCloudDiscoveryengineV1Conversation", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.create", "POST", "v1/{+parent}/dataStores", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+$", "cmekConfigName,createAdvancedSiteSearch,dataStoreId,disableCmek,skipDefaultSchemaCreation", "aclEnabled,advancedSiteSearchConfig,billingEstimation,cmekConfig,configurableBillingApproach,configurableBillingApproachUpdateTime,contentConfig,createTime,dataProtectionPolicy,defaultSchemaId,displayName,documentProcessingConfig,federatedSearchConfig,healthcareFhirConfig,identityMappingStore,industryVertical,isInfobotFaqDataStore,kmsKeyName,name,naturalLanguageQueryUnderstandingConfig,servingConfigDataStore,solutionTypes,startingSchema,workspaceConfig", "GoogleCloudDiscoveryengineV1DataStore", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.customModels.list", "GET", "v1/{+dataStore}/customModels", "dataStore=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.getIamPolicy", "GET", "v1/{+resource}:getIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "options.requestedPolicyVersion", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.list", "GET", "v1/{+parent}/dataStores", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "dataStores"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.models.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/models/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.models.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/models/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "updateMask", "aclEnabled,advancedSiteSearchConfig,billingEstimation,cmekConfig,configurableBillingApproach,configurableBillingApproachUpdateTime,contentConfig,createTime,dataProtectionPolicy,defaultSchemaId,displayName,documentProcessingConfig,federatedSearchConfig,healthcareFhirConfig,identityMappingStore,industryVertical,isInfobotFaqDataStore,kmsKeyName,name,naturalLanguageQueryUnderstandingConfig,servingConfigDataStore,solutionTypes,startingSchema,workspaceConfig", "GoogleCloudDiscoveryengineV1DataStore", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.schemas.create", "POST", "v1/{+parent}/schemas", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "schemaId", "jsonSchema,name,structSchema", "GoogleCloudDiscoveryengineV1Schema", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.schemas.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.schemas.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.schemas.list", "GET", "v1/{+parent}/schemas", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "pageSize,pageToken", "", "", "P", "schemas"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.schemas.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.schemas.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.schemas.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+$", "allowMissing", "jsonSchema,name,structSchema", "GoogleCloudDiscoveryengineV1Schema", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer", "POST", "v1/{+servingConfig}:answer", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "answerGenerationSpec,asynchronousMode,endUserSpec,groundingSpec,query,queryUnderstandingSpec,relatedQuestionsSpec,safetySpec,searchSpec,session,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1AnswerQueryRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.create", "POST", "v1/{+parent}/servingConfigs", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "servingConfigId", "answerGenerationSpec,boostControlIds,createTime,displayName,dissociateControlIds,diversityLevel,filterControlIds,genericConfig,ignoreControlIds,mediaConfig,modelId,name,onewaySynonymsControlIds,promoteControlIds,rankingExpression,redirectControlIds,replacementControlIds,solutionType,synonymsControlIds,updateTime", "GoogleCloudDiscoveryengineV1ServingConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.list", "GET", "v1/{+parent}/servingConfigs", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "pageSize,pageToken", "", "", "P", "servingConfigs"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "updateMask", "answerGenerationSpec,boostControlIds,createTime,displayName,dissociateControlIds,diversityLevel,filterControlIds,genericConfig,ignoreControlIds,mediaConfig,modelId,name,onewaySynonymsControlIds,promoteControlIds,rankingExpression,redirectControlIds,replacementControlIds,solutionType,synonymsControlIds,updateTime", "GoogleCloudDiscoveryengineV1ServingConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend", "POST", "v1/{+servingConfig}:recommend", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "filter,pageSize,params,userEvent,userLabels,validateOnly", "GoogleCloudDiscoveryengineV1RecommendRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.search", "POST", "v1/{+servingConfig}:search", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "boostSpec,branch,canonicalFilter,contentSearchSpec,crowdingSpecs,customRankingParams,dataStoreSpecs,displaySpec,entity,facetSpecs,filter,imageQuery,languageCode,naturalLanguageQueryUnderstandingSpec,numResultsPerDataStore,offset,oneBoxPageSize,orderBy,pageCategories,pageSize,pageToken,params,query,queryExpansionSpec,rankingExpression,rankingExpressionBackend,relevanceFilterSpec,relevanceScoreSpec,relevanceThreshold,safeSearch,searchAddonSpec,searchAsYouTypeSpec,session,sessionSpec,spellCorrectionSpec,userInfo,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1SearchRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.searchLite", "POST", "v1/{+servingConfig}:searchLite", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "boostSpec,branch,canonicalFilter,contentSearchSpec,crowdingSpecs,customRankingParams,dataStoreSpecs,displaySpec,entity,facetSpecs,filter,imageQuery,languageCode,naturalLanguageQueryUnderstandingSpec,numResultsPerDataStore,offset,oneBoxPageSize,orderBy,pageCategories,pageSize,pageToken,params,query,queryExpansionSpec,rankingExpression,rankingExpressionBackend,relevanceFilterSpec,relevanceScoreSpec,relevanceThreshold,safeSearch,searchAddonSpec,searchAsYouTypeSpec,session,sessionSpec,spellCorrectionSpec,userInfo,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1SearchRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.servingConfigs.streamAnswer", "POST", "v1/{+servingConfig}:streamAnswer", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "answerGenerationSpec,asynchronousMode,endUserSpec,groundingSpec,query,queryUnderstandingSpec,relatedQuestionsSpec,safetySpec,searchSpec,session,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1AnswerQueryRequest", "S", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.sessions.answers.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/sessions/[^/]+/answers/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.sessions.create", "POST", "v1/{+parent}/sessions", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "sessionId", "displayName,endTime,isPinned,labels,name,pendingAsyncAssistOperationId,startTime,state,turns,userPseudoId", "GoogleCloudDiscoveryengineV1Session", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.sessions.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/sessions/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.sessions.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/sessions/[^/]+$", "includeAnswerDetails", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.sessions.list", "GET", "v1/{+parent}/sessions", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "sessions"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.sessions.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/sessions/[^/]+$", "updateMask", "displayName,endTime,isPinned,labels,name,pendingAsyncAssistOperationId,startTime,state,turns,userPseudoId", "GoogleCloudDiscoveryengineV1Session", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.setIamPolicy", "POST", "v1/{+resource}:setIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "policy", "GoogleIamV1SetIamPolicyRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.batchVerifyTargetSites", "POST", "v1/{+parent}:batchVerifyTargetSites", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "", "GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.disableAdvancedSiteSearch", "POST", "v1/{+siteSearchEngine}:disableAdvancedSiteSearch", "siteSearchEngine=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "", "GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.enableAdvancedSiteSearch", "POST", "v1/{+siteSearchEngine}:enableAdvancedSiteSearch", "siteSearchEngine=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "", "GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.fetchDomainVerificationStatus", "GET", "v1/{+siteSearchEngine}:fetchDomainVerificationStatus", "siteSearchEngine=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "pageSize,pageToken", "", "", "P", "targetSites"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.recrawlUris", "POST", "v1/{+siteSearchEngine}:recrawlUris", "siteSearchEngine=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "siteCredential,uris", "GoogleCloudDiscoveryengineV1RecrawlUrisRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.create", "POST", "v1/{+parent}/sitemaps", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "createTime,name,uri", "GoogleCloudDiscoveryengineV1Sitemap", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/sitemaps/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.fetch", "GET", "v1/{+parent}/sitemaps:fetch", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "matcher.urisMatcher.uris", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.batchCreate", "POST", "v1/{+parent}/targetSites:batchCreate", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "requests", "GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.create", "POST", "v1/{+parent}/targetSites", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "exactMatch,failureReason,generatedUriPattern,indexingStatus,name,providedUriPattern,rootDomainUri,siteVerificationInfo,type,updateTime", "GoogleCloudDiscoveryengineV1TargetSite", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.list", "GET", "v1/{+parent}/targetSites", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", "pageSize,pageToken", "", "", "P", "targetSites"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/[^/]+$", "", "exactMatch,failureReason,generatedUriPattern,indexingStatus,name,providedUriPattern,rootDomainUri,siteVerificationInfo,type,updateTime", "GoogleCloudDiscoveryengineV1TargetSite", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.import", "POST", "v1/{+parent}/suggestionDenyListEntries:import", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "gcsSource,inlineSource", "GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.purge", "POST", "v1/{+parent}/suggestionDenyListEntries:purge", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "", "GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.trainCustomModel", "POST", "v1/{+dataStore}:trainCustomModel", "dataStore=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "errorConfig,gcsTrainingInput,modelId,modelType", "GoogleCloudDiscoveryengineV1TrainCustomModelRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.userEvents.collect", "GET", "v1/{+parent}/userEvents:collect", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "ets,uri,userEvent", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.userEvents.import", "POST", "v1/{+parent}/userEvents:import", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "bigquerySource,errorConfig,gcsSource,inlineSource", "GoogleCloudDiscoveryengineV1ImportUserEventsRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.userEvents.purge", "POST", "v1/{+parent}/userEvents:purge", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "", "filter,force", "GoogleCloudDiscoveryengineV1PurgeUserEventsRequest", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.userEvents.write", "POST", "v1/{+parent}/userEvents:write", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "writeAsync", "attributes,attributionToken,completionInfo,conversionType,dataStore,directUserRequest,documents,engine,entity,eventTime,eventType,feedback,filter,mediaInfo,pageInfo,panel,panels,promotionIds,searchInfo,sessionId,tagIds,transactionInfo,userInfo,userPseudoId", "GoogleCloudDiscoveryengineV1UserEvent", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.widgetConfigs.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/widgetConfigs/[^/]+$", "acceptCache,getWidgetConfigRequestOption.turnOffCollectionComponents,languageCode,modelInfoView", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.dataStores.widgetConfigs.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/widgetConfigs/[^/]+$", "updateMask", "accessSettings,allowPublicAccess,allowlistedDomains,assistantSettings,batchAuthStatuses,collectionComponents,configId,contentSearchSpec,createTime,customerProvidedConfig,dataStoreType,dataStoreUiConfigs,defaultSearchRequestOrderBy,displayName,enableAutocomplete,enableConversationalSearch,enablePrivateKnowledgeGraph,enableQualityFeedback,enableResultScore,enableSafeSearch,enableSearchAsYouType,enableSnippetResultSummary,enableSummarization,enableWebApp,facetField,fieldsUiComponentsMap,geminiBundle,homepageSetting,industryVertical,llmEnabled,minimumDataTermAccepted,name,nodes,resultDisplayType,solutionType,uiBranding,uiSettings,updateTime", "GoogleCloudDiscoveryengineV1WidgetConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.getCard", "GET", "v1/{+tenant}/a2a/v1/card", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.message.send", "POST", "v1/{+tenant}/a2a/v1/message:send", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$", "", "configuration,message,metadata", "A2aV1SendMessageRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.message.stream", "POST", "v1/{+tenant}/a2a/v1/message:stream", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$", "", "configuration,message,metadata", "A2aV1SendMessageRequest", "S", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.tasks.cancel", "POST", "v1/{+tenant}/a2a/v1/{+name}:cancel", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$ name=^tasks/[^/]+$", "", "", "A2aV1CancelTaskRequest", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.tasks.get", "GET", "v1/{+tenant}/a2a/v1/{+name}", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$ name=^tasks/[^/]+$", "historyLength", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.tasks.pushNotificationConfigs.create", "POST", "v1/{+tenant}/a2a/v1/{+parent}", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$ parent=^tasks/[^/]+/pushNotificationConfigs$", "configId", "name,pushNotificationConfig", "A2aV1TaskPushNotificationConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.tasks.pushNotificationConfigs.delete", "DELETE", "v1/{+tenant}/a2a/v1/{+name}", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$ name=^tasks/[^/]+/pushNotificationConfigs/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.tasks.pushNotificationConfigs.get", "GET", "v1/{+tenant}/a2a/v1/{+name}", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$ name=^tasks/[^/]+/pushNotificationConfigs/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.tasks.pushNotificationConfigs.list", "GET", "v1/{+tenant}/a2a/v1/{+parent}/pushNotificationConfigs", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$ parent=^tasks/[^/]+$", "pageSize,pageToken", "", "", "P", "configs"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.a2a.v1.tasks.subscribe", "GET", "v1/{+tenant}/a2a/v1/{+name}:subscribe", "tenant=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$ name=^tasks/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.agents.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.create", "POST", "v1/{+parent}/assistants", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "assistantId", "createTime,customerPolicy,defaultWebGroundingToggleOff,description,displayName,enabledTools,generationConfig,name,updateTime,webGroundingType", "GoogleCloudDiscoveryengineV1Assistant", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.list", "GET", "v1/{+parent}/assistants", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "pageSize,pageToken", "", "", "P", "assistants"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$", "updateMask", "createTime,customerPolicy,defaultWebGroundingToggleOff,description,displayName,enabledTools,generationConfig,name,updateTime,webGroundingType", "GoogleCloudDiscoveryengineV1Assistant", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.assistants.streamAssist", "POST", "v1/{+name}:streamAssist", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$", "", "agentsSpec,generationSpec,query,session,toolsSpec,userMetadata", "GoogleCloudDiscoveryengineV1StreamAssistRequest", "S", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.completionConfig.completeQuery", "POST", "v1/{+completionConfig}:completeQuery", "completionConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/completionConfig$", "", "boostSpec,experimentIds,includeTailSuggestions,query,queryModel,suggestionTypeSpecs,suggestionTypes,userInfo,userPseudoId", "GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.controls.create", "POST", "v1/{+parent}/controls", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "controlId", "associatedServingConfigIds,boostAction,conditions,displayName,filterAction,name,promoteAction,redirectAction,solutionType,synonymsAction,useCases", "GoogleCloudDiscoveryengineV1Control", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.controls.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/controls/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.controls.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/controls/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.controls.list", "GET", "v1/{+parent}/controls", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "controls"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.controls.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/controls/[^/]+$", "updateMask", "associatedServingConfigIds,boostAction,conditions,displayName,filterAction,name,promoteAction,redirectAction,solutionType,synonymsAction,useCases", "GoogleCloudDiscoveryengineV1Control", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.conversations.converse", "POST", "v1/{+name}:converse", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/conversations/[^/]+$", "", "boostSpec,conversation,filter,query,safeSearch,servingConfig,summarySpec,userLabels", "GoogleCloudDiscoveryengineV1ConverseConversationRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.conversations.create", "POST", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "", "endTime,messages,name,startTime,state,userPseudoId", "GoogleCloudDiscoveryengineV1Conversation", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.conversations.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/conversations/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.conversations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/conversations/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.conversations.list", "GET", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "conversations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.conversations.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/conversations/[^/]+$", "updateMask", "endTime,messages,name,startTime,state,userPseudoId", "GoogleCloudDiscoveryengineV1Conversation", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.create", "POST", "v1/{+parent}/engines", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+$", "engineId", "agentGatewaySetting,appType,associatedAgentRegistry,chatEngineConfig,chatEngineMetadata,cmekConfig,commonConfig,configurableBillingApproach,connectorTenantInfo,createTime,dataStoreIds,disableAnalytics,displayName,features,industryVertical,knowledgeGraphConfig,marketplaceAgentVisibility,mediaRecommendationEngineConfig,modelConfigs,name,observabilityConfig,procurementContactEmails,searchEngineConfig,sessionConfig,solutionType,updateTime", "GoogleCloudDiscoveryengineV1Engine", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.getIamPolicy", "GET", "v1/{+resource}:getIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "options.requestedPolicyVersion", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.list", "GET", "v1/{+parent}/engines", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "engines"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.operations.cancel", "POST", "v1/{+name}:cancel", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+$", "", "", "GoogleLongrunningCancelOperationRequest", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "updateMask", "agentGatewaySetting,appType,associatedAgentRegistry,chatEngineConfig,chatEngineMetadata,cmekConfig,commonConfig,configurableBillingApproach,connectorTenantInfo,createTime,dataStoreIds,disableAnalytics,displayName,features,industryVertical,knowledgeGraphConfig,marketplaceAgentVisibility,mediaRecommendationEngineConfig,modelConfigs,name,observabilityConfig,procurementContactEmails,searchEngineConfig,sessionConfig,solutionType,updateTime", "GoogleCloudDiscoveryengineV1Engine", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.answer", "POST", "v1/{+servingConfig}:answer", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "", "answerGenerationSpec,asynchronousMode,endUserSpec,groundingSpec,query,queryUnderstandingSpec,relatedQuestionsSpec,safetySpec,searchSpec,session,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1AnswerQueryRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.create", "POST", "v1/{+parent}/servingConfigs", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "servingConfigId", "answerGenerationSpec,boostControlIds,createTime,displayName,dissociateControlIds,diversityLevel,filterControlIds,genericConfig,ignoreControlIds,mediaConfig,modelId,name,onewaySynonymsControlIds,promoteControlIds,rankingExpression,redirectControlIds,replacementControlIds,solutionType,synonymsControlIds,updateTime", "GoogleCloudDiscoveryengineV1ServingConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.list", "GET", "v1/{+parent}/servingConfigs", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "pageSize,pageToken", "", "", "P", "servingConfigs"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "updateMask", "answerGenerationSpec,boostControlIds,createTime,displayName,dissociateControlIds,diversityLevel,filterControlIds,genericConfig,ignoreControlIds,mediaConfig,modelId,name,onewaySynonymsControlIds,promoteControlIds,rankingExpression,redirectControlIds,replacementControlIds,solutionType,synonymsControlIds,updateTime", "GoogleCloudDiscoveryengineV1ServingConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.recommend", "POST", "v1/{+servingConfig}:recommend", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "", "filter,pageSize,params,userEvent,userLabels,validateOnly", "GoogleCloudDiscoveryengineV1RecommendRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.search", "POST", "v1/{+servingConfig}:search", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "", "boostSpec,branch,canonicalFilter,contentSearchSpec,crowdingSpecs,customRankingParams,dataStoreSpecs,displaySpec,entity,facetSpecs,filter,imageQuery,languageCode,naturalLanguageQueryUnderstandingSpec,numResultsPerDataStore,offset,oneBoxPageSize,orderBy,pageCategories,pageSize,pageToken,params,query,queryExpansionSpec,rankingExpression,rankingExpressionBackend,relevanceFilterSpec,relevanceScoreSpec,relevanceThreshold,safeSearch,searchAddonSpec,searchAsYouTypeSpec,session,sessionSpec,spellCorrectionSpec,userInfo,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1SearchRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.searchLite", "POST", "v1/{+servingConfig}:searchLite", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "", "boostSpec,branch,canonicalFilter,contentSearchSpec,crowdingSpecs,customRankingParams,dataStoreSpecs,displaySpec,entity,facetSpecs,filter,imageQuery,languageCode,naturalLanguageQueryUnderstandingSpec,numResultsPerDataStore,offset,oneBoxPageSize,orderBy,pageCategories,pageSize,pageToken,params,query,queryExpansionSpec,rankingExpression,rankingExpressionBackend,relevanceFilterSpec,relevanceScoreSpec,relevanceThreshold,safeSearch,searchAddonSpec,searchAsYouTypeSpec,session,sessionSpec,spellCorrectionSpec,userInfo,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1SearchRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.servingConfigs.streamAnswer", "POST", "v1/{+servingConfig}:streamAnswer", "servingConfig=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "", "answerGenerationSpec,asynchronousMode,endUserSpec,groundingSpec,query,queryUnderstandingSpec,relatedQuestionsSpec,safetySpec,searchSpec,session,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1AnswerQueryRequest", "S", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.sessions.answers.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/sessions/[^/]+/answers/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.sessions.create", "POST", "v1/{+parent}/sessions", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "sessionId", "displayName,endTime,isPinned,labels,name,pendingAsyncAssistOperationId,startTime,state,turns,userPseudoId", "GoogleCloudDiscoveryengineV1Session", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.sessions.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/sessions/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.sessions.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/sessions/[^/]+$", "includeAnswerDetails", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.sessions.list", "GET", "v1/{+parent}/sessions", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "sessions"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.sessions.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/sessions/[^/]+$", "updateMask", "displayName,endTime,isPinned,labels,name,pendingAsyncAssistOperationId,startTime,state,turns,userPseudoId", "GoogleCloudDiscoveryengineV1Session", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.setIamPolicy", "POST", "v1/{+resource}:setIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "", "policy", "GoogleIamV1SetIamPolicyRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.widgetConfigs.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/widgetConfigs/[^/]+$", "acceptCache,getWidgetConfigRequestOption.turnOffCollectionComponents,languageCode,modelInfoView", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.engines.widgetConfigs.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/widgetConfigs/[^/]+$", "updateMask", "accessSettings,allowPublicAccess,allowlistedDomains,assistantSettings,batchAuthStatuses,collectionComponents,configId,contentSearchSpec,createTime,customerProvidedConfig,dataStoreType,dataStoreUiConfigs,defaultSearchRequestOrderBy,displayName,enableAutocomplete,enableConversationalSearch,enablePrivateKnowledgeGraph,enableQualityFeedback,enableResultScore,enableSafeSearch,enableSearchAsYouType,enableSnippetResultSummary,enableSummarization,enableWebApp,facetField,fieldsUiComponentsMap,geminiBundle,homepageSetting,industryVertical,llmEnabled,minimumDataTermAccepted,name,nodes,resultDisplayType,solutionType,uiBranding,uiSettings,updateTime", "GoogleCloudDiscoveryengineV1WidgetConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.getDataConnector", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataConnector$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.getIamPolicy", "GET", "v1/{+resource}:getIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/collections/[^/]+$", "options.requestedPolicyVersion", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.setIamPolicy", "POST", "v1/{+resource}:setIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/collections/[^/]+$", "", "policy", "GoogleIamV1SetIamPolicyRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.collections.updateDataConnector", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataConnector$", "updateMask", "aclEnabled,actionConfig,actionState,alertPolicyConfigs,autoRunDisabled,bapConfig,blockingReasons,cliConfig,connectorModes,connectorSourceId,connectorType,createEuaSaas,createTime,dataProtectionPolicy,dataSource,destinationConfigs,dynamicTools,egressFqdns,endUserConfig,entities,errors,federatedConfig,hybridIngestionDisabled,identityRefreshInterval,identityScheduleConfig,incrementalRefreshInterval,incrementalSyncDisabled,jsonParams,kmsKeyName,lastSyncTime,latestPauseTime,metadata,name,nextSyncTime,oauthStaticIpAddresses,params,privateConnectivityProjectId,realtimeState,realtimeSyncConfig,refreshInterval,removeParamKeys,state,staticIpAddresses,staticIpEnabled,syncMode,tag,updateTime,vpcscEnabled", "GoogleCloudDiscoveryengineV1DataConnector", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.batchGetDocumentsMetadata", "GET", "v1/{+parent}/batchGetDocumentsMetadata", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+$", "matcher.fhirMatcher.fhirResources,matcher.urisMatcher.uris", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.documents.create", "POST", "v1/{+parent}/documents", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+$", "documentId", "aclInfo,content,derivedStructData,id,indexStatus,indexTime,jsonData,name,parentDocumentId,schemaId,structData", "GoogleCloudDiscoveryengineV1Document", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.documents.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.documents.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.documents.import", "POST", "v1/{+parent}/documents:import", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+$", "", "alloyDbSource,autoGenerateIds,bigquerySource,bigtableSource,cloudSqlSource,errorConfig,fhirStoreSource,firestoreSource,forceRefreshContent,gcsSource,idField,inlineSource,reconciliationMode,spannerSource,updateMask", "GoogleCloudDiscoveryengineV1ImportDocumentsRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.documents.list", "GET", "v1/{+parent}/documents", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+$", "pageSize,pageToken", "", "", "P", "documents"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.documents.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+$", "allowMissing,updateMask", "aclInfo,content,derivedStructData,id,indexStatus,indexTime,jsonData,name,parentDocumentId,schemaId,structData", "GoogleCloudDiscoveryengineV1Document", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.documents.purge", "POST", "v1/{+parent}/documents:purge", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+$", "", "errorConfig,filter,force,gcsSource,inlineSource", "GoogleCloudDiscoveryengineV1PurgeDocumentsRequest", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.operations.cancel", "POST", "v1/{+name}:cancel", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+$", "", "", "GoogleLongrunningCancelOperationRequest", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.branches.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.completeQuery", "GET", "v1/{+dataStore}:completeQuery", "dataStore=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "includeTailSuggestions,query,queryModel,userPseudoId", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.completionConfig.completeQuery", "POST", "v1/{+completionConfig}:completeQuery", "completionConfig=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/completionConfig$", "", "boostSpec,experimentIds,includeTailSuggestions,query,queryModel,suggestionTypeSpecs,suggestionTypes,userInfo,userPseudoId", "GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.completionSuggestions.import", "POST", "v1/{+parent}/completionSuggestions:import", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "", "bigquerySource,errorConfig,gcsSource,inlineSource", "GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.completionSuggestions.purge", "POST", "v1/{+parent}/completionSuggestions:purge", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "", "", "GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.controls.create", "POST", "v1/{+parent}/controls", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "controlId", "associatedServingConfigIds,boostAction,conditions,displayName,filterAction,name,promoteAction,redirectAction,solutionType,synonymsAction,useCases", "GoogleCloudDiscoveryengineV1Control", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.controls.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/controls/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.controls.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/controls/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.controls.list", "GET", "v1/{+parent}/controls", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "controls"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.controls.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/controls/[^/]+$", "updateMask", "associatedServingConfigIds,boostAction,conditions,displayName,filterAction,name,promoteAction,redirectAction,solutionType,synonymsAction,useCases", "GoogleCloudDiscoveryengineV1Control", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.conversations.converse", "POST", "v1/{+name}:converse", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/conversations/[^/]+$", "", "boostSpec,conversation,filter,query,safeSearch,servingConfig,summarySpec,userLabels", "GoogleCloudDiscoveryengineV1ConverseConversationRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.conversations.create", "POST", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "", "endTime,messages,name,startTime,state,userPseudoId", "GoogleCloudDiscoveryengineV1Conversation", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.conversations.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/conversations/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.conversations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/conversations/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.conversations.list", "GET", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "conversations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.conversations.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/conversations/[^/]+$", "updateMask", "endTime,messages,name,startTime,state,userPseudoId", "GoogleCloudDiscoveryengineV1Conversation", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.create", "POST", "v1/{+parent}/dataStores", "parent=^projects/[^/]+/locations/[^/]+$", "cmekConfigName,createAdvancedSiteSearch,dataStoreId,disableCmek,skipDefaultSchemaCreation", "aclEnabled,advancedSiteSearchConfig,billingEstimation,cmekConfig,configurableBillingApproach,configurableBillingApproachUpdateTime,contentConfig,createTime,dataProtectionPolicy,defaultSchemaId,displayName,documentProcessingConfig,federatedSearchConfig,healthcareFhirConfig,identityMappingStore,industryVertical,isInfobotFaqDataStore,kmsKeyName,name,naturalLanguageQueryUnderstandingConfig,servingConfigDataStore,solutionTypes,startingSchema,workspaceConfig", "GoogleCloudDiscoveryengineV1DataStore", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.getIamPolicy", "GET", "v1/{+resource}:getIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "options.requestedPolicyVersion", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.getSiteSearchEngine", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.list", "GET", "v1/{+parent}/dataStores", "parent=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "dataStores"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.models.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/models/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.models.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/models/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "updateMask", "aclEnabled,advancedSiteSearchConfig,billingEstimation,cmekConfig,configurableBillingApproach,configurableBillingApproachUpdateTime,contentConfig,createTime,dataProtectionPolicy,defaultSchemaId,displayName,documentProcessingConfig,federatedSearchConfig,healthcareFhirConfig,identityMappingStore,industryVertical,isInfobotFaqDataStore,kmsKeyName,name,naturalLanguageQueryUnderstandingConfig,servingConfigDataStore,solutionTypes,startingSchema,workspaceConfig", "GoogleCloudDiscoveryengineV1DataStore", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.schemas.create", "POST", "v1/{+parent}/schemas", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "schemaId", "jsonSchema,name,structSchema", "GoogleCloudDiscoveryengineV1Schema", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.schemas.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/schemas/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.schemas.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/schemas/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.schemas.list", "GET", "v1/{+parent}/schemas", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "pageSize,pageToken", "", "", "P", "schemas"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.schemas.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/schemas/[^/]+$", "allowMissing", "jsonSchema,name,structSchema", "GoogleCloudDiscoveryengineV1Schema", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.answer", "POST", "v1/{+servingConfig}:answer", "servingConfig=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "answerGenerationSpec,asynchronousMode,endUserSpec,groundingSpec,query,queryUnderstandingSpec,relatedQuestionsSpec,safetySpec,searchSpec,session,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1AnswerQueryRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.create", "POST", "v1/{+parent}/servingConfigs", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "servingConfigId", "answerGenerationSpec,boostControlIds,createTime,displayName,dissociateControlIds,diversityLevel,filterControlIds,genericConfig,ignoreControlIds,mediaConfig,modelId,name,onewaySynonymsControlIds,promoteControlIds,rankingExpression,redirectControlIds,replacementControlIds,solutionType,synonymsControlIds,updateTime", "GoogleCloudDiscoveryengineV1ServingConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.list", "GET", "v1/{+parent}/servingConfigs", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "pageSize,pageToken", "", "", "P", "servingConfigs"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "updateMask", "answerGenerationSpec,boostControlIds,createTime,displayName,dissociateControlIds,diversityLevel,filterControlIds,genericConfig,ignoreControlIds,mediaConfig,modelId,name,onewaySynonymsControlIds,promoteControlIds,rankingExpression,redirectControlIds,replacementControlIds,solutionType,synonymsControlIds,updateTime", "GoogleCloudDiscoveryengineV1ServingConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.recommend", "POST", "v1/{+servingConfig}:recommend", "servingConfig=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "filter,pageSize,params,userEvent,userLabels,validateOnly", "GoogleCloudDiscoveryengineV1RecommendRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.search", "POST", "v1/{+servingConfig}:search", "servingConfig=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "boostSpec,branch,canonicalFilter,contentSearchSpec,crowdingSpecs,customRankingParams,dataStoreSpecs,displaySpec,entity,facetSpecs,filter,imageQuery,languageCode,naturalLanguageQueryUnderstandingSpec,numResultsPerDataStore,offset,oneBoxPageSize,orderBy,pageCategories,pageSize,pageToken,params,query,queryExpansionSpec,rankingExpression,rankingExpressionBackend,relevanceFilterSpec,relevanceScoreSpec,relevanceThreshold,safeSearch,searchAddonSpec,searchAsYouTypeSpec,session,sessionSpec,spellCorrectionSpec,userInfo,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1SearchRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.searchLite", "POST", "v1/{+servingConfig}:searchLite", "servingConfig=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "boostSpec,branch,canonicalFilter,contentSearchSpec,crowdingSpecs,customRankingParams,dataStoreSpecs,displaySpec,entity,facetSpecs,filter,imageQuery,languageCode,naturalLanguageQueryUnderstandingSpec,numResultsPerDataStore,offset,oneBoxPageSize,orderBy,pageCategories,pageSize,pageToken,params,query,queryExpansionSpec,rankingExpression,rankingExpressionBackend,relevanceFilterSpec,relevanceScoreSpec,relevanceThreshold,safeSearch,searchAddonSpec,searchAsYouTypeSpec,session,sessionSpec,spellCorrectionSpec,userInfo,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1SearchRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.servingConfigs.streamAnswer", "POST", "v1/{+servingConfig}:streamAnswer", "servingConfig=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "", "answerGenerationSpec,asynchronousMode,endUserSpec,groundingSpec,query,queryUnderstandingSpec,relatedQuestionsSpec,safetySpec,searchSpec,session,userLabels,userPseudoId", "GoogleCloudDiscoveryengineV1AnswerQueryRequest", "S", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.sessions.answers.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/sessions/[^/]+/answers/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.sessions.create", "POST", "v1/{+parent}/sessions", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "sessionId", "displayName,endTime,isPinned,labels,name,pendingAsyncAssistOperationId,startTime,state,turns,userPseudoId", "GoogleCloudDiscoveryengineV1Session", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.sessions.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/sessions/[^/]+$", "", "", "", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.sessions.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/sessions/[^/]+$", "includeAnswerDetails", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.sessions.list", "GET", "v1/{+parent}/sessions", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "sessions"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.sessions.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/sessions/[^/]+$", "updateMask", "displayName,endTime,isPinned,labels,name,pendingAsyncAssistOperationId,startTime,state,turns,userPseudoId", "GoogleCloudDiscoveryengineV1Session", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.setIamPolicy", "POST", "v1/{+resource}:setIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "", "policy", "GoogleIamV1SetIamPolicyRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.disableAdvancedSiteSearch", "POST", "v1/{+siteSearchEngine}:disableAdvancedSiteSearch", "siteSearchEngine=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "", "GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.enableAdvancedSiteSearch", "POST", "v1/{+siteSearchEngine}:enableAdvancedSiteSearch", "siteSearchEngine=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "", "GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.recrawlUris", "POST", "v1/{+siteSearchEngine}:recrawlUris", "siteSearchEngine=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "siteCredential,uris", "GoogleCloudDiscoveryengineV1RecrawlUrisRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.create", "POST", "v1/{+parent}/sitemaps", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "createTime,name,uri", "GoogleCloudDiscoveryengineV1Sitemap", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine/sitemaps/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.fetch", "GET", "v1/{+parent}/sitemaps:fetch", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", "matcher.urisMatcher.uris", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.batchCreate", "POST", "v1/{+parent}/targetSites:batchCreate", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "requests", "GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.create", "POST", "v1/{+parent}/targetSites", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", "", "exactMatch,failureReason,generatedUriPattern,indexingStatus,name,providedUriPattern,rootDomainUri,siteVerificationInfo,type,updateTime", "GoogleCloudDiscoveryengineV1TargetSite", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.list", "GET", "v1/{+parent}/targetSites", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", "pageSize,pageToken", "", "", "P", "targetSites"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/[^/]+$", "", "exactMatch,failureReason,generatedUriPattern,indexingStatus,name,providedUriPattern,rootDomainUri,siteVerificationInfo,type,updateTime", "GoogleCloudDiscoveryengineV1TargetSite", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.import", "POST", "v1/{+parent}/suggestionDenyListEntries:import", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "", "gcsSource,inlineSource", "GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.purge", "POST", "v1/{+parent}/suggestionDenyListEntries:purge", "parent=^projects/[^/]+/locations/[^/]+/dataStores/.*$", "", "", "GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.userEvents.collect", "GET", "v1/{+parent}/userEvents:collect", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "ets,uri,userEvent", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.userEvents.import", "POST", "v1/{+parent}/userEvents:import", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "", "bigquerySource,errorConfig,gcsSource,inlineSource", "GoogleCloudDiscoveryengineV1ImportUserEventsRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.userEvents.purge", "POST", "v1/{+parent}/userEvents:purge", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "", "filter,force", "GoogleCloudDiscoveryengineV1PurgeUserEventsRequest", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.userEvents.write", "POST", "v1/{+parent}/userEvents:write", "parent=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "writeAsync", "attributes,attributionToken,completionInfo,conversionType,dataStore,directUserRequest,documents,engine,entity,eventTime,eventType,feedback,filter,mediaInfo,pageInfo,panel,panels,promotionIds,searchInfo,sessionId,tagIds,transactionInfo,userInfo,userPseudoId", "GoogleCloudDiscoveryengineV1UserEvent", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.widgetConfigs.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/widgetConfigs/[^/]+$", "acceptCache,getWidgetConfigRequestOption.turnOffCollectionComponents,languageCode,modelInfoView", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.dataStores.widgetConfigs.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/widgetConfigs/[^/]+$", "updateMask", "accessSettings,allowPublicAccess,allowlistedDomains,assistantSettings,batchAuthStatuses,collectionComponents,configId,contentSearchSpec,createTime,customerProvidedConfig,dataStoreType,dataStoreUiConfigs,defaultSearchRequestOrderBy,displayName,enableAutocomplete,enableConversationalSearch,enablePrivateKnowledgeGraph,enableQualityFeedback,enableResultScore,enableSafeSearch,enableSearchAsYouType,enableSnippetResultSummary,enableSummarization,enableWebApp,facetField,fieldsUiComponentsMap,geminiBundle,homepageSetting,industryVertical,llmEnabled,minimumDataTermAccepted,name,nodes,resultDisplayType,solutionType,uiBranding,uiSettings,updateTime", "GoogleCloudDiscoveryengineV1WidgetConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.getAclConfig", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/aclConfig$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.getCmekConfig", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/cmekConfig$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.groundingConfigs.check", "POST", "v1/{+groundingConfig}:check", "groundingConfig=^projects/[^/]+/locations/[^/]+/groundingConfigs/[^/]+$", "", "answerCandidate,facts,groundingSpec,userLabels", "GoogleCloudDiscoveryengineV1CheckGroundingRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.identityMappingStores.create", "POST", "v1/{+parent}/identityMappingStores", "parent=^projects/[^/]+/locations/[^/]+$", "cmekConfigName,disableCmek,identityMappingStoreId", "cmekConfig,kmsKeyName,name", "GoogleCloudDiscoveryengineV1IdentityMappingStore", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.identityMappingStores.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.identityMappingStores.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.identityMappingStores.importIdentityMappings", "POST", "v1/{+identityMappingStore}:importIdentityMappings", "identityMappingStore=^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", "", "inlineSource", "GoogleCloudDiscoveryengineV1ImportIdentityMappingsRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.identityMappingStores.list", "GET", "v1/{+parent}/identityMappingStores", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "identityMappingStores"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.identityMappingStores.listIdentityMappings", "GET", "v1/{+identityMappingStore}:listIdentityMappings", "identityMappingStore=^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", "pageSize,pageToken", "", "", "P", "identityMappingEntries"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.identityMappingStores.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.identityMappingStores.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.identityMappingStores.purgeIdentityMappings", "POST", "v1/{+identityMappingStore}:purgeIdentityMappings", "identityMappingStore=^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", "", "filter,force,inlineSource", "GoogleCloudDiscoveryengineV1PurgeIdentityMappingsRequest", "DL", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.licenseConfigs.create", "POST", "v1/{+parent}/licenseConfigs", "parent=^projects/[^/]+/locations/[^/]+$", "licenseConfigId", "autoRenew,earlyTerminated,earlyTerminationDate,endDate,freeTrial,geminiBundle,lastUserUpdateTime,licenseCount,name,startDate,state,subscriptionTerm,subscriptionTier", "GoogleCloudDiscoveryengineV1LicenseConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.licenseConfigs.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/licenseConfigs/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.licenseConfigs.list", "GET", "v1/{+parent}/licenseConfigs", "parent=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "licenseConfigs"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.licenseConfigs.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/licenseConfigs/[^/]+$", "updateMask", "autoRenew,earlyTerminated,earlyTerminationDate,endDate,freeTrial,geminiBundle,lastUserUpdateTime,licenseCount,name,startDate,state,subscriptionTerm,subscriptionTier", "GoogleCloudDiscoveryengineV1LicenseConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.podcasts.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/podcasts/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.provision", "POST", "v1/{+name}:provision", "name=^projects/[^/]+/locations/[^/]+$", "", "acceptDataUseTerms,dataUseTermsVersion,idpConfig,saasParams", "GoogleCloudDiscoveryengineV1ProvisionProjectRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.rankingConfigs.rank", "POST", "v1/{+rankingConfig}:rank", "rankingConfig=^projects/[^/]+/locations/[^/]+/rankingConfigs/[^/]+$", "", "ignoreRecordDetailsInResponse,model,query,records,topN,userLabels", "GoogleCloudDiscoveryengineV1RankRequest", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.setUpDataConnector", "POST", "v1/{+parent}:setUpDataConnector", "parent=^projects/[^/]+/locations/[^/]+$", "", "collectionDisplayName,collectionId,dataConnector", "GoogleCloudDiscoveryengineV1SetUpDataConnectorRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.setUpDataConnectorV2", "POST", "v1/{+parent}:setUpDataConnectorV2", "parent=^projects/[^/]+/locations/[^/]+$", "collectionDisplayName,collectionId", "aclEnabled,actionConfig,actionState,alertPolicyConfigs,autoRunDisabled,bapConfig,blockingReasons,cliConfig,connectorModes,connectorSourceId,connectorType,createEuaSaas,createTime,dataProtectionPolicy,dataSource,destinationConfigs,dynamicTools,egressFqdns,endUserConfig,entities,errors,federatedConfig,hybridIngestionDisabled,identityRefreshInterval,identityScheduleConfig,incrementalRefreshInterval,incrementalSyncDisabled,jsonParams,kmsKeyName,lastSyncTime,latestPauseTime,metadata,name,nextSyncTime,oauthStaticIpAddresses,params,privateConnectivityProjectId,realtimeState,realtimeSyncConfig,refreshInterval,removeParamKeys,state,staticIpAddresses,staticIpEnabled,syncMode,tag,updateTime,vpcscEnabled", "GoogleCloudDiscoveryengineV1DataConnector", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.updateAclConfig", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/aclConfig$", "", "idpConfig,name", "GoogleCloudDiscoveryengineV1AclConfig", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.updateCmekConfig", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/cmekConfig$", "setDefault", "isDefault,kmsKey,kmsKeyVersion,lastRotationTimestampMicros,name,notebooklmState,singleRegionKeys,state", "GoogleCloudDiscoveryengineV1CmekConfig", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.userEvents.collect", "GET", "v1/{+parent}/userEvents:collect", "parent=^projects/[^/]+/locations/[^/]+$", "ets,uri,userEvent", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.userEvents.import", "POST", "v1/{+parent}/userEvents:import", "parent=^projects/[^/]+/locations/[^/]+$", "", "bigquerySource,errorConfig,gcsSource,inlineSource", "GoogleCloudDiscoveryengineV1ImportUserEventsRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.userEvents.write", "POST", "v1/{+parent}/userEvents:write", "parent=^projects/[^/]+/locations/[^/]+$", "writeAsync", "attributes,attributionToken,completionInfo,conversionType,dataStore,directUserRequest,documents,engine,entity,eventTime,eventType,feedback,filter,mediaInfo,pageInfo,panel,panels,promotionIds,searchInfo,sessionId,tagIds,transactionInfo,userInfo,userPseudoId", "GoogleCloudDiscoveryengineV1UserEvent", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.userStores.batchUpdateUserLicenses", "POST", "v1/{+parent}:batchUpdateUserLicenses", "parent=^projects/[^/]+/locations/[^/]+/userStores/[^/]+$", "", "deleteUnassignedUserLicenses,inlineSource", "GoogleCloudDiscoveryengineV1BatchUpdateUserLicensesRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.userStores.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/userStores/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.userStores.licenseConfigsUsageStats.list", "GET", "v1/{+parent}/licenseConfigsUsageStats", "parent=^projects/[^/]+/locations/[^/]+/userStores/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.userStores.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/userStores/[^/]+$", "updateMask", "defaultLicenseConfig,displayName,enableExpiredLicenseAutoUpdate,enableLicenseAutoRegister,name", "GoogleCloudDiscoveryengineV1UserStore", "", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.locations.userStores.userLicenses.list", "GET", "v1/{+parent}/userLicenses", "parent=^projects/[^/]+/locations/[^/]+/userStores/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "userLicenses"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.operations.cancel", "POST", "v1/{+name}:cancel", "name=^projects/[^/]+/operations/[^/]+$", "", "", "GoogleLongrunningCancelOperationRequest", "D", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDiscoveryEngine, "v1", "discoveryengine.projects.provision", "POST", "v1/{+name}:provision", "name=^projects/[^/]+$", "", "acceptDataUseTerms,dataUseTermsVersion,idpConfig,saasParams", "GoogleCloudDiscoveryengineV1ProvisionProjectRequest", "L", ""}, +{Api::kDiscoveryEngine, "v1alpha", "discoveryengine.projects.locations.collections.engines.assistants.agents.create", "POST", "v1alpha/{+parent}/agents", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$", "", "a2aAgentDefinition,adkAgentDefinition,authorizationConfig,createTime,creationFailureReason,customPlaceholderText,deploymentFailureReason,description,dialogflowAgentDefinition,displayName,icon,languageCode,managedAgentDefinition,name,observabilityConfig,rejectionReason,sharingConfig,starterPrompts,state,suspensionReason,updateTime", "GoogleCloudDiscoveryengineV1alphaAgent", "", ""}, +{Api::kDiscoveryEngine, "v1alpha", "discoveryengine.projects.locations.collections.engines.assistants.agents.delete", "DELETE", "v1alpha/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$", "", "", "", "DL", ""}, +{Api::kDiscoveryEngine, "v1alpha", "discoveryengine.projects.locations.collections.engines.assistants.agents.files.import", "POST", "v1alpha/{+parent}/files:import", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$", "", "fileName,mimeType", "GoogleCloudDiscoveryengineV1alphaImportAgentFileRequest", "", ""}, +{Api::kDiscoveryEngine, "v1alpha", "discoveryengine.projects.locations.collections.engines.assistants.agents.get", "GET", "v1alpha/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$", "", "", "", "", ""}, +{Api::kDiscoveryEngine, "v1alpha", "discoveryengine.projects.locations.collections.engines.assistants.agents.list", "GET", "v1alpha/{+parent}/agents", "parent=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "agents"}, +{Api::kDiscoveryEngine, "v1alpha", "discoveryengine.projects.locations.collections.engines.assistants.agents.patch", "PATCH", "v1alpha/{+name}", "name=^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$", "updateMask", "a2aAgentDefinition,adkAgentDefinition,authorizationConfig,createTime,creationFailureReason,customPlaceholderText,deploymentFailureReason,description,dialogflowAgentDefinition,displayName,icon,languageCode,managedAgentDefinition,name,observabilityConfig,rejectionReason,sharingConfig,starterPrompts,state,suspensionReason,updateTime", "GoogleCloudDiscoveryengineV1alphaAgent", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.batchDelete", "POST", "v2/{+parent}/entityTypes:batchDelete", "parent=^projects/[^/]+/agent$", "", "entityTypeNames", "GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.batchUpdate", "POST", "v2/{+parent}/entityTypes:batchUpdate", "parent=^projects/[^/]+/agent$", "", "entityTypeBatchInline,entityTypeBatchUri,languageCode,updateMask", "GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.create", "POST", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/agent$", "languageCode", "autoExpansionMode,displayName,enableFuzzyExtraction,entities,kind,name", "GoogleCloudDialogflowV2EntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/entityTypes/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.entities.batchCreate", "POST", "v2/{+parent}/entities:batchCreate", "parent=^projects/[^/]+/agent/entityTypes/[^/]+$", "", "entities,languageCode", "GoogleCloudDialogflowV2BatchCreateEntitiesRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.entities.batchDelete", "POST", "v2/{+parent}/entities:batchDelete", "parent=^projects/[^/]+/agent/entityTypes/[^/]+$", "", "entityValues,languageCode", "GoogleCloudDialogflowV2BatchDeleteEntitiesRequest", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.entities.batchUpdate", "POST", "v2/{+parent}/entities:batchUpdate", "parent=^projects/[^/]+/agent/entityTypes/[^/]+$", "", "entities,languageCode,updateMask", "GoogleCloudDialogflowV2BatchUpdateEntitiesRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/entityTypes/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.list", "GET", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/agent$", "languageCode,pageSize,pageToken", "", "", "P", "entityTypes"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.entityTypes.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/entityTypes/[^/]+$", "languageCode,updateMask", "autoExpansionMode,displayName,enableFuzzyExtraction,entities,kind,name", "GoogleCloudDialogflowV2EntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.create", "POST", "v2/{+parent}/environments", "parent=^projects/[^/]+/agent$", "environmentId", "agentVersion,description,fulfillment,name,state,textToSpeechSettings,updateTime", "GoogleCloudDialogflowV2Environment", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/environments/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/environments/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.getHistory", "GET", "v2/{+parent}/history", "parent=^projects/[^/]+/agent/environments/[^/]+$", "pageSize,pageToken", "", "", "P", "entries"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.intents.list", "GET", "v2/{+parent}/intents", "parent=^projects/[^/]+/agent/environments/[^/]+$", "intentView,languageCode,pageSize,pageToken", "", "", "P", "intents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.list", "GET", "v2/{+parent}/environments", "parent=^projects/[^/]+/agent$", "pageSize,pageToken", "", "", "P", "environments"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/environments/[^/]+$", "allowLoadToDraftAndDiscardChanges,updateMask", "agentVersion,description,fulfillment,name,state,textToSpeechSettings,updateTime", "GoogleCloudDialogflowV2Environment", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.contexts.create", "POST", "v2/{+parent}/contexts", "parent=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "", "lifespanCount,name,parameters", "GoogleCloudDialogflowV2Context", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.contexts.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.contexts.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.contexts.list", "GET", "v2/{+parent}/contexts", "parent=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "contexts"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.contexts.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$", "updateMask", "lifespanCount,name,parameters", "GoogleCloudDialogflowV2Context", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.deleteContexts", "DELETE", "v2/{+parent}/contexts", "parent=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.detectIntent", "POST", "v2/{+session}:detectIntent", "session=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "", "inputAudio,outputAudioConfig,outputAudioConfigMask,queryInput,queryParams", "GoogleCloudDialogflowV2DetectIntentRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.entityTypes.create", "POST", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "", "entities,entityOverrideMode,name", "GoogleCloudDialogflowV2SessionEntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.entityTypes.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.entityTypes.list", "GET", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "sessionEntityTypes"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "updateMask", "entities,entityOverrideMode,name", "GoogleCloudDialogflowV2SessionEntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.export", "POST", "v2/{+parent}/agent:export", "parent=^projects/[^/]+$", "", "agentUri", "GoogleCloudDialogflowV2ExportAgentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.getFulfillment", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/fulfillment$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.getValidationResult", "GET", "v2/{+parent}/agent/validationResult", "parent=^projects/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.import", "POST", "v2/{+parent}/agent:import", "parent=^projects/[^/]+$", "", "agentContent,agentUri", "GoogleCloudDialogflowV2ImportAgentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.intents.batchDelete", "POST", "v2/{+parent}/intents:batchDelete", "parent=^projects/[^/]+/agent$", "", "intents", "GoogleCloudDialogflowV2BatchDeleteIntentsRequest", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.intents.batchUpdate", "POST", "v2/{+parent}/intents:batchUpdate", "parent=^projects/[^/]+/agent$", "", "intentBatchInline,intentBatchUri,intentView,languageCode,updateMask", "GoogleCloudDialogflowV2BatchUpdateIntentsRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.intents.create", "POST", "v2/{+parent}/intents", "parent=^projects/[^/]+/agent$", "intentView,languageCode", "action,defaultResponsePlatforms,displayName,endInteraction,events,followupIntentInfo,inputContextNames,isFallback,liveAgentHandoff,messages,mlDisabled,name,outputContexts,parameters,parentFollowupIntentName,priority,resetContexts,rootFollowupIntentName,trainingPhrases,webhookState", "GoogleCloudDialogflowV2Intent", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.intents.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/intents/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.intents.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/intents/[^/]+$", "intentView,languageCode", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.intents.list", "GET", "v2/{+parent}/intents", "parent=^projects/[^/]+/agent$", "intentView,languageCode,pageSize,pageToken", "", "", "P", "intents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.intents.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/intents/[^/]+$", "intentView,languageCode,updateMask", "action,defaultResponsePlatforms,displayName,endInteraction,events,followupIntentInfo,inputContextNames,isFallback,liveAgentHandoff,messages,mlDisabled,name,outputContexts,parameters,parentFollowupIntentName,priority,resetContexts,rootFollowupIntentName,trainingPhrases,webhookState", "GoogleCloudDialogflowV2Intent", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.create", "POST", "v2/{+parent}/knowledgeBases", "parent=^projects/[^/]+/agent$", "", "displayName,languageCode,name", "GoogleCloudDialogflowV2KnowledgeBase", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/knowledgeBases/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.documents.create", "POST", "v2/{+parent}/documents", "parent=^projects/[^/]+/agent/knowledgeBases/[^/]+$", "", "contentUri,displayName,enableAutoReload,knowledgeTypes,latestReloadStatus,metadata,mimeType,name,rawContent,state", "GoogleCloudDialogflowV2Document", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.documents.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$", "", "", "", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.documents.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.documents.list", "GET", "v2/{+parent}/documents", "parent=^projects/[^/]+/agent/knowledgeBases/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "documents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.documents.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$", "updateMask", "contentUri,displayName,enableAutoReload,knowledgeTypes,latestReloadStatus,metadata,mimeType,name,rawContent,state", "GoogleCloudDialogflowV2Document", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.documents.reload", "POST", "v2/{+name}:reload", "name=^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$", "", "contentUri,importGcsCustomMetadata,smartMessagingPartialUpdate", "GoogleCloudDialogflowV2ReloadDocumentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/knowledgeBases/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.list", "GET", "v2/{+parent}/knowledgeBases", "parent=^projects/[^/]+/agent$", "filter,pageSize,pageToken", "", "", "P", "knowledgeBases"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.knowledgeBases.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/knowledgeBases/[^/]+$", "updateMask", "displayName,languageCode,name", "GoogleCloudDialogflowV2KnowledgeBase", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.restore", "POST", "v2/{+parent}/agent:restore", "parent=^projects/[^/]+$", "", "agentContent,agentUri", "GoogleCloudDialogflowV2RestoreAgentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.search", "GET", "v2/{+parent}/agent:search", "parent=^projects/[^/]+$", "pageSize,pageToken", "", "", "P", "agents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.contexts.create", "POST", "v2/{+parent}/contexts", "parent=^projects/[^/]+/agent/sessions/[^/]+$", "", "lifespanCount,name,parameters", "GoogleCloudDialogflowV2Context", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.contexts.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.contexts.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.contexts.list", "GET", "v2/{+parent}/contexts", "parent=^projects/[^/]+/agent/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "contexts"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.contexts.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$", "updateMask", "lifespanCount,name,parameters", "GoogleCloudDialogflowV2Context", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.deleteContexts", "DELETE", "v2/{+parent}/contexts", "parent=^projects/[^/]+/agent/sessions/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.detectIntent", "POST", "v2/{+session}:detectIntent", "session=^projects/[^/]+/agent/sessions/[^/]+$", "", "inputAudio,outputAudioConfig,outputAudioConfigMask,queryInput,queryParams", "GoogleCloudDialogflowV2DetectIntentRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.entityTypes.create", "POST", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/agent/sessions/[^/]+$", "", "entities,entityOverrideMode,name", "GoogleCloudDialogflowV2SessionEntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.entityTypes.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.entityTypes.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.entityTypes.list", "GET", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/agent/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "sessionEntityTypes"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.sessions.entityTypes.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$", "updateMask", "entities,entityOverrideMode,name", "GoogleCloudDialogflowV2SessionEntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.train", "POST", "v2/{+parent}/agent:train", "parent=^projects/[^/]+$", "", "", "GoogleCloudDialogflowV2TrainAgentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.updateFulfillment", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/fulfillment$", "updateMask", "displayName,enabled,features,genericWebService,name", "GoogleCloudDialogflowV2Fulfillment", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.versions.create", "POST", "v2/{+parent}/versions", "parent=^projects/[^/]+/agent$", "", "createTime,description,name,status,versionNumber", "GoogleCloudDialogflowV2Version", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.versions.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/agent/versions/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.versions.get", "GET", "v2/{+name}", "name=^projects/[^/]+/agent/versions/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.versions.list", "GET", "v2/{+parent}/versions", "parent=^projects/[^/]+/agent$", "pageSize,pageToken", "", "", "P", "versions"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.agent.versions.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/agent/versions/[^/]+$", "updateMask", "createTime,description,name,status,versionNumber", "GoogleCloudDialogflowV2Version", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.answerRecords.list", "GET", "v2/{+parent}/answerRecords", "parent=^projects/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "answerRecords"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.answerRecords.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/answerRecords/[^/]+$", "updateMask", "agentAssistantRecord,answerFeedback,name", "GoogleCloudDialogflowV2AnswerRecord", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationDatasets.get", "GET", "v2/{+name}", "name=^projects/[^/]+/conversationDatasets/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationDatasets.importConversationData", "POST", "v2/{+name}:importConversationData", "name=^projects/[^/]+/conversationDatasets/[^/]+$", "", "inputConfig", "GoogleCloudDialogflowV2ImportConversationDataRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationDatasets.list", "GET", "v2/{+parent}/conversationDatasets", "parent=^projects/[^/]+$", "pageSize,pageToken", "", "", "P", "conversationDatasets"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationModels.create", "POST", "v2/{+parent}/conversationModels", "parent=^projects/[^/]+$", "", "articleSuggestionModelMetadata,createTime,datasets,displayName,languageCode,name,satisfiesPzi,satisfiesPzs,smartReplyModelMetadata,state", "GoogleCloudDialogflowV2ConversationModel", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationModels.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/conversationModels/[^/]+$", "", "", "", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationModels.deploy", "POST", "v2/{+name}:deploy", "name=^projects/[^/]+/conversationModels/[^/]+$", "", "", "GoogleCloudDialogflowV2DeployConversationModelRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationModels.evaluations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/conversationModels/[^/]+/evaluations/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationModels.evaluations.list", "GET", "v2/{+parent}/evaluations", "parent=^projects/[^/]+/conversationModels/[^/]+$", "pageSize,pageToken", "", "", "P", "conversationModelEvaluations"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationModels.get", "GET", "v2/{+name}", "name=^projects/[^/]+/conversationModels/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationModels.list", "GET", "v2/{+parent}/conversationModels", "parent=^projects/[^/]+$", "pageSize,pageToken", "", "", "P", "conversationModels"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationModels.undeploy", "POST", "v2/{+name}:undeploy", "name=^projects/[^/]+/conversationModels/[^/]+$", "", "", "GoogleCloudDialogflowV2UndeployConversationModelRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationProfiles.clearSuggestionFeatureConfig", "POST", "v2/{+conversationProfile}:clearSuggestionFeatureConfig", "conversationProfile=^projects/[^/]+/conversationProfiles/[^/]+$", "", "participantRole,suggestionFeatureType", "GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationProfiles.create", "POST", "v2/{+parent}/conversationProfiles", "parent=^projects/[^/]+$", "", "automatedAgentConfig,createTime,displayName,humanAgentAssistantConfig,humanAgentHandoffConfig,languageCode,loggingConfig,name,newMessageEventNotificationConfig,newRecognitionResultNotificationConfig,notificationConfig,securitySettings,sipConfig,sttConfig,timeZone,ttsConfig,updateTime", "GoogleCloudDialogflowV2ConversationProfile", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationProfiles.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/conversationProfiles/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationProfiles.get", "GET", "v2/{+name}", "name=^projects/[^/]+/conversationProfiles/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationProfiles.list", "GET", "v2/{+parent}/conversationProfiles", "parent=^projects/[^/]+$", "pageSize,pageToken", "", "", "P", "conversationProfiles"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationProfiles.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/conversationProfiles/[^/]+$", "updateMask", "automatedAgentConfig,createTime,displayName,humanAgentAssistantConfig,humanAgentHandoffConfig,languageCode,loggingConfig,name,newMessageEventNotificationConfig,newRecognitionResultNotificationConfig,notificationConfig,securitySettings,sipConfig,sttConfig,timeZone,ttsConfig,updateTime", "GoogleCloudDialogflowV2ConversationProfile", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversationProfiles.setSuggestionFeatureConfig", "POST", "v2/{+conversationProfile}:setSuggestionFeatureConfig", "conversationProfile=^projects/[^/]+/conversationProfiles/[^/]+$", "", "participantRole,suggestionFeatureConfig", "GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.complete", "POST", "v2/{+name}:complete", "name=^projects/[^/]+/conversations/[^/]+$", "", "", "GoogleCloudDialogflowV2CompleteConversationRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.create", "POST", "v2/{+parent}/conversations", "parent=^projects/[^/]+$", "conversationId", "conversationProfile,conversationStage,endTime,ingestedContextReferences,initialConversationProfile,initialGeneratorContexts,lifecycleState,name,phoneNumber,startTime,telephonyConnectionInfo", "GoogleCloudDialogflowV2Conversation", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/conversations/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.list", "GET", "v2/{+parent}/conversations", "parent=^projects/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "conversations"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.messages.list", "GET", "v2/{+parent}/messages", "parent=^projects/[^/]+/conversations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "messages"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.participants.analyzeContent", "POST", "v2/{+participant}:analyzeContent", "participant=^projects/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "assistQueryParams,audioInput,cxParameters,eventInput,queryParams,replyAudioConfig,requestId,suggestionInput,textInput", "GoogleCloudDialogflowV2AnalyzeContentRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.participants.create", "POST", "v2/{+parent}/participants", "parent=^projects/[^/]+/conversations/[^/]+$", "", "agentDesktopSource,documentsMetadataFilters,name,obfuscatedExternalUserId,role,sipRecordingMediaLabel", "GoogleCloudDialogflowV2Participant", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.participants.get", "GET", "v2/{+name}", "name=^projects/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.participants.list", "GET", "v2/{+parent}/participants", "parent=^projects/[^/]+/conversations/[^/]+$", "pageSize,pageToken", "", "", "P", "participants"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.participants.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/conversations/[^/]+/participants/[^/]+$", "updateMask", "agentDesktopSource,documentsMetadataFilters,name,obfuscatedExternalUserId,role,sipRecordingMediaLabel", "GoogleCloudDialogflowV2Participant", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.participants.suggestions.suggestArticles", "POST", "v2/{+parent}/suggestions:suggestArticles", "parent=^projects/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "assistQueryParams,contextSize,latestMessage", "GoogleCloudDialogflowV2SuggestArticlesRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers", "POST", "v2/{+parent}/suggestions:suggestFaqAnswers", "parent=^projects/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "assistQueryParams,contextSize,latestMessage", "GoogleCloudDialogflowV2SuggestFaqAnswersRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.participants.suggestions.suggestKnowledgeAssist", "POST", "v2/{+parent}/suggestions:suggestKnowledgeAssist", "parent=^projects/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "contextSize,latestMessage,previousSuggestedQuery", "GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies", "POST", "v2/{+parent}/suggestions:suggestSmartReplies", "parent=^projects/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "contextSize,currentTextInput,latestMessage", "GoogleCloudDialogflowV2SuggestSmartRepliesRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.suggestions.generate", "POST", "v2/{+conversation}/suggestions:generate", "conversation=^projects/[^/]+/conversations/[^/]+$", "", "latestMessage,triggerEvents", "GoogleCloudDialogflowV2GenerateSuggestionsRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.suggestions.searchKnowledge", "POST", "v2/{+conversation}/suggestions:searchKnowledge", "conversation=^projects/[^/]+/conversations/[^/]+$", "", "conversation,conversationProfile,endUserMetadata,exactSearch,latestMessage,parent,query,querySource,searchConfig,sessionId", "GoogleCloudDialogflowV2SearchKnowledgeRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.conversations.suggestions.suggestConversationSummary", "POST", "v2/{+conversation}/suggestions:suggestConversationSummary", "conversation=^projects/[^/]+/conversations/[^/]+$", "", "assistQueryParams,contextSize,latestMessage", "GoogleCloudDialogflowV2SuggestConversationSummaryRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.deleteAgent", "DELETE", "v2/{+parent}/agent", "parent=^projects/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.generators.create", "POST", "v2/{+parent}/generators", "parent=^projects/[^/]+$", "generatorId", "agentCoachingContext,cesAppSpecs,cesToolSpecs,createTime,description,freeFormContext,inferenceParameter,name,publishedModel,suggestionDedupingConfig,summarizationContext,tools,toolsetTools,triggerEvent,updateTime", "GoogleCloudDialogflowV2Generator", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.generators.list", "GET", "v2/{+parent}/generators", "parent=^projects/[^/]+$", "pageSize,pageToken", "", "", "P", "generators"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.getAgent", "GET", "v2/{+parent}/agent", "parent=^projects/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.create", "POST", "v2/{+parent}/knowledgeBases", "parent=^projects/[^/]+$", "", "displayName,languageCode,name", "GoogleCloudDialogflowV2KnowledgeBase", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/knowledgeBases/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.documents.create", "POST", "v2/{+parent}/documents", "parent=^projects/[^/]+/knowledgeBases/[^/]+$", "", "contentUri,displayName,enableAutoReload,knowledgeTypes,latestReloadStatus,metadata,mimeType,name,rawContent,state", "GoogleCloudDialogflowV2Document", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.documents.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "", "", "", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.documents.export", "POST", "v2/{+name}:export", "name=^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "", "exportFullContent,gcsDestination,smartMessagingPartialUpdate", "GoogleCloudDialogflowV2ExportDocumentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.documents.get", "GET", "v2/{+name}", "name=^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.documents.import", "POST", "v2/{+parent}/documents:import", "parent=^projects/[^/]+/knowledgeBases/[^/]+$", "", "documentTemplate,gcsSource,importGcsCustomMetadata", "GoogleCloudDialogflowV2ImportDocumentsRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.documents.list", "GET", "v2/{+parent}/documents", "parent=^projects/[^/]+/knowledgeBases/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "documents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.documents.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "updateMask", "contentUri,displayName,enableAutoReload,knowledgeTypes,latestReloadStatus,metadata,mimeType,name,rawContent,state", "GoogleCloudDialogflowV2Document", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.documents.reload", "POST", "v2/{+name}:reload", "name=^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "", "contentUri,importGcsCustomMetadata,smartMessagingPartialUpdate", "GoogleCloudDialogflowV2ReloadDocumentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.get", "GET", "v2/{+name}", "name=^projects/[^/]+/knowledgeBases/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.list", "GET", "v2/{+parent}/knowledgeBases", "parent=^projects/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "knowledgeBases"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.knowledgeBases.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/knowledgeBases/[^/]+$", "updateMask", "displayName,languageCode,name", "GoogleCloudDialogflowV2KnowledgeBase", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.batchDelete", "POST", "v2/{+parent}/entityTypes:batchDelete", "parent=^projects/[^/]+/locations/[^/]+/agent$", "", "entityTypeNames", "GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.batchUpdate", "POST", "v2/{+parent}/entityTypes:batchUpdate", "parent=^projects/[^/]+/locations/[^/]+/agent$", "", "entityTypeBatchInline,entityTypeBatchUri,languageCode,updateMask", "GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.create", "POST", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agent$", "languageCode", "autoExpansionMode,displayName,enableFuzzyExtraction,entities,kind,name", "GoogleCloudDialogflowV2EntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate", "POST", "v2/{+parent}/entities:batchCreate", "parent=^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$", "", "entities,languageCode", "GoogleCloudDialogflowV2BatchCreateEntitiesRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete", "POST", "v2/{+parent}/entities:batchDelete", "parent=^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$", "", "entityValues,languageCode", "GoogleCloudDialogflowV2BatchDeleteEntitiesRequest", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate", "POST", "v2/{+parent}/entities:batchUpdate", "parent=^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$", "", "entities,languageCode,updateMask", "GoogleCloudDialogflowV2BatchUpdateEntitiesRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.list", "GET", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agent$", "languageCode,pageSize,pageToken", "", "", "P", "entityTypes"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.entityTypes.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$", "languageCode,updateMask", "autoExpansionMode,displayName,enableFuzzyExtraction,entities,kind,name", "GoogleCloudDialogflowV2EntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.create", "POST", "v2/{+parent}/environments", "parent=^projects/[^/]+/locations/[^/]+/agent$", "environmentId", "agentVersion,description,fulfillment,name,state,textToSpeechSettings,updateTime", "GoogleCloudDialogflowV2Environment", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.getHistory", "GET", "v2/{+parent}/history", "parent=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$", "pageSize,pageToken", "", "", "P", "entries"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.intents.list", "GET", "v2/{+parent}/intents", "parent=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$", "intentView,languageCode,pageSize,pageToken", "", "", "P", "intents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.list", "GET", "v2/{+parent}/environments", "parent=^projects/[^/]+/locations/[^/]+/agent$", "pageSize,pageToken", "", "", "P", "environments"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$", "allowLoadToDraftAndDiscardChanges,updateMask", "agentVersion,description,fulfillment,name,state,textToSpeechSettings,updateTime", "GoogleCloudDialogflowV2Environment", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create", "POST", "v2/{+parent}/contexts", "parent=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "", "lifespanCount,name,parameters", "GoogleCloudDialogflowV2Context", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list", "GET", "v2/{+parent}/contexts", "parent=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "contexts"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$", "updateMask", "lifespanCount,name,parameters", "GoogleCloudDialogflowV2Context", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts", "DELETE", "v2/{+parent}/contexts", "parent=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent", "POST", "v2/{+session}:detectIntent", "session=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "", "inputAudio,outputAudioConfig,outputAudioConfigMask,queryInput,queryParams", "GoogleCloudDialogflowV2DetectIntentRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create", "POST", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "", "entities,entityOverrideMode,name", "GoogleCloudDialogflowV2SessionEntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list", "GET", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "sessionEntityTypes"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "updateMask", "entities,entityOverrideMode,name", "GoogleCloudDialogflowV2SessionEntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.export", "POST", "v2/{+parent}/agent:export", "parent=^projects/[^/]+/locations/[^/]+$", "", "agentUri", "GoogleCloudDialogflowV2ExportAgentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.getFulfillment", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/fulfillment$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.getValidationResult", "GET", "v2/{+parent}/agent/validationResult", "parent=^projects/[^/]+/locations/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.import", "POST", "v2/{+parent}/agent:import", "parent=^projects/[^/]+/locations/[^/]+$", "", "agentContent,agentUri", "GoogleCloudDialogflowV2ImportAgentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.intents.batchDelete", "POST", "v2/{+parent}/intents:batchDelete", "parent=^projects/[^/]+/locations/[^/]+/agent$", "", "intents", "GoogleCloudDialogflowV2BatchDeleteIntentsRequest", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.intents.batchUpdate", "POST", "v2/{+parent}/intents:batchUpdate", "parent=^projects/[^/]+/locations/[^/]+/agent$", "", "intentBatchInline,intentBatchUri,intentView,languageCode,updateMask", "GoogleCloudDialogflowV2BatchUpdateIntentsRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.intents.create", "POST", "v2/{+parent}/intents", "parent=^projects/[^/]+/locations/[^/]+/agent$", "intentView,languageCode", "action,defaultResponsePlatforms,displayName,endInteraction,events,followupIntentInfo,inputContextNames,isFallback,liveAgentHandoff,messages,mlDisabled,name,outputContexts,parameters,parentFollowupIntentName,priority,resetContexts,rootFollowupIntentName,trainingPhrases,webhookState", "GoogleCloudDialogflowV2Intent", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.intents.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/intents/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.intents.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/intents/[^/]+$", "intentView,languageCode", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.intents.list", "GET", "v2/{+parent}/intents", "parent=^projects/[^/]+/locations/[^/]+/agent$", "intentView,languageCode,pageSize,pageToken", "", "", "P", "intents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.intents.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/intents/[^/]+$", "intentView,languageCode,updateMask", "action,defaultResponsePlatforms,displayName,endInteraction,events,followupIntentInfo,inputContextNames,isFallback,liveAgentHandoff,messages,mlDisabled,name,outputContexts,parameters,parentFollowupIntentName,priority,resetContexts,rootFollowupIntentName,trainingPhrases,webhookState", "GoogleCloudDialogflowV2Intent", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.restore", "POST", "v2/{+parent}/agent:restore", "parent=^projects/[^/]+/locations/[^/]+$", "", "agentContent,agentUri", "GoogleCloudDialogflowV2RestoreAgentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.search", "GET", "v2/{+parent}/agent:search", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "agents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.contexts.create", "POST", "v2/{+parent}/contexts", "parent=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$", "", "lifespanCount,name,parameters", "GoogleCloudDialogflowV2Context", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.contexts.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.contexts.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.contexts.list", "GET", "v2/{+parent}/contexts", "parent=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "contexts"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.contexts.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$", "updateMask", "lifespanCount,name,parameters", "GoogleCloudDialogflowV2Context", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.deleteContexts", "DELETE", "v2/{+parent}/contexts", "parent=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.detectIntent", "POST", "v2/{+session}:detectIntent", "session=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$", "", "inputAudio,outputAudioConfig,outputAudioConfigMask,queryInput,queryParams", "GoogleCloudDialogflowV2DetectIntentRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.entityTypes.create", "POST", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$", "", "entities,entityOverrideMode,name", "GoogleCloudDialogflowV2SessionEntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.entityTypes.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.entityTypes.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.entityTypes.list", "GET", "v2/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "sessionEntityTypes"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.sessions.entityTypes.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$", "updateMask", "entities,entityOverrideMode,name", "GoogleCloudDialogflowV2SessionEntityType", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.train", "POST", "v2/{+parent}/agent:train", "parent=^projects/[^/]+/locations/[^/]+$", "", "", "GoogleCloudDialogflowV2TrainAgentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.updateFulfillment", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/fulfillment$", "updateMask", "displayName,enabled,features,genericWebService,name", "GoogleCloudDialogflowV2Fulfillment", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.versions.create", "POST", "v2/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/agent$", "", "createTime,description,name,status,versionNumber", "GoogleCloudDialogflowV2Version", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.versions.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/versions/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.versions.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/versions/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.versions.list", "GET", "v2/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/agent$", "pageSize,pageToken", "", "", "P", "versions"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.agent.versions.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/agent/versions/[^/]+$", "updateMask", "createTime,description,name,status,versionNumber", "GoogleCloudDialogflowV2Version", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.answerRecords.list", "GET", "v2/{+parent}/answerRecords", "parent=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "answerRecords"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.answerRecords.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/answerRecords/[^/]+$", "updateMask", "agentAssistantRecord,answerFeedback,name", "GoogleCloudDialogflowV2AnswerRecord", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.companionAgents.create", "POST", "v2/{+parent}/companionAgents", "parent=^projects/[^/]+/locations/[^/]+$", "companionAgentId", "cesToolSpecs,createTime,description,displayName,name,skillConfigs,toolsetTools,updateTime", "GoogleCloudDialogflowV2CompanionAgent", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.companionAgents.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/companionAgents/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.companionAgents.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/companionAgents/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.companionAgents.list", "GET", "v2/{+parent}/companionAgents", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "companionAgents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.companionAgents.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/companionAgents/[^/]+$", "updateMask", "cesToolSpecs,createTime,description,displayName,name,skillConfigs,toolsetTools,updateTime", "GoogleCloudDialogflowV2CompanionAgent", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationDatasets.create", "POST", "v2/{+parent}/conversationDatasets", "parent=^projects/[^/]+/locations/[^/]+$", "", "conversationCount,conversationInfo,createTime,description,displayName,inputConfig,name,satisfiesPzi,satisfiesPzs", "GoogleCloudDialogflowV2ConversationDataset", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationDatasets.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$", "", "", "", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationDatasets.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationDatasets.importConversationData", "POST", "v2/{+name}:importConversationData", "name=^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$", "", "inputConfig", "GoogleCloudDialogflowV2ImportConversationDataRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationDatasets.list", "GET", "v2/{+parent}/conversationDatasets", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "conversationDatasets"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationModels.create", "POST", "v2/{+parent}/conversationModels", "parent=^projects/[^/]+/locations/[^/]+$", "", "articleSuggestionModelMetadata,createTime,datasets,displayName,languageCode,name,satisfiesPzi,satisfiesPzs,smartReplyModelMetadata,state", "GoogleCloudDialogflowV2ConversationModel", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationModels.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversationModels/[^/]+$", "", "", "", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationModels.deploy", "POST", "v2/{+name}:deploy", "name=^projects/[^/]+/locations/[^/]+/conversationModels/[^/]+$", "", "", "GoogleCloudDialogflowV2DeployConversationModelRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationModels.evaluations.create", "POST", "v2/{+parent}/evaluations", "parent=^projects/[^/]+/locations/[^/]+/conversationModels/[^/]+$", "", "conversationModelEvaluation", "GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationModels.evaluations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversationModels/[^/]+/evaluations/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationModels.evaluations.list", "GET", "v2/{+parent}/evaluations", "parent=^projects/[^/]+/locations/[^/]+/conversationModels/[^/]+$", "pageSize,pageToken", "", "", "P", "conversationModelEvaluations"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationModels.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversationModels/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationModels.list", "GET", "v2/{+parent}/conversationModels", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "conversationModels"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationModels.undeploy", "POST", "v2/{+name}:undeploy", "name=^projects/[^/]+/locations/[^/]+/conversationModels/[^/]+$", "", "", "GoogleCloudDialogflowV2UndeployConversationModelRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationProfiles.clearSuggestionFeatureConfig", "POST", "v2/{+conversationProfile}:clearSuggestionFeatureConfig", "conversationProfile=^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$", "", "participantRole,suggestionFeatureType", "GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationProfiles.create", "POST", "v2/{+parent}/conversationProfiles", "parent=^projects/[^/]+/locations/[^/]+$", "", "automatedAgentConfig,createTime,displayName,humanAgentAssistantConfig,humanAgentHandoffConfig,languageCode,loggingConfig,name,newMessageEventNotificationConfig,newRecognitionResultNotificationConfig,notificationConfig,securitySettings,sipConfig,sttConfig,timeZone,ttsConfig,updateTime", "GoogleCloudDialogflowV2ConversationProfile", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationProfiles.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationProfiles.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationProfiles.list", "GET", "v2/{+parent}/conversationProfiles", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "conversationProfiles"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationProfiles.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$", "updateMask", "automatedAgentConfig,createTime,displayName,humanAgentAssistantConfig,humanAgentHandoffConfig,languageCode,loggingConfig,name,newMessageEventNotificationConfig,newRecognitionResultNotificationConfig,notificationConfig,securitySettings,sipConfig,sttConfig,timeZone,ttsConfig,updateTime", "GoogleCloudDialogflowV2ConversationProfile", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversationProfiles.setSuggestionFeatureConfig", "POST", "v2/{+conversationProfile}:setSuggestionFeatureConfig", "conversationProfile=^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$", "", "participantRole,suggestionFeatureConfig", "GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.complete", "POST", "v2/{+name}:complete", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "", "GoogleCloudDialogflowV2CompleteConversationRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.create", "POST", "v2/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+$", "conversationId", "conversationProfile,conversationStage,endTime,ingestedContextReferences,initialConversationProfile,initialGeneratorContexts,lifecycleState,name,phoneNumber,startTime,telephonyConnectionInfo", "GoogleCloudDialogflowV2Conversation", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.ingestContextReferences", "POST", "v2/{+conversation}:ingestContextReferences", "conversation=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "contextReferences", "GoogleCloudDialogflowV2IngestContextReferencesRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.list", "GET", "v2/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "conversations"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.messages.list", "GET", "v2/{+parent}/messages", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "messages"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.participants.analyzeContent", "POST", "v2/{+participant}:analyzeContent", "participant=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "assistQueryParams,audioInput,cxParameters,eventInput,queryParams,replyAudioConfig,requestId,suggestionInput,textInput", "GoogleCloudDialogflowV2AnalyzeContentRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.participants.create", "POST", "v2/{+parent}/participants", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "agentDesktopSource,documentsMetadataFilters,name,obfuscatedExternalUserId,role,sipRecordingMediaLabel", "GoogleCloudDialogflowV2Participant", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.participants.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.participants.list", "GET", "v2/{+parent}/participants", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "pageSize,pageToken", "", "", "P", "participants"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.participants.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$", "updateMask", "agentDesktopSource,documentsMetadataFilters,name,obfuscatedExternalUserId,role,sipRecordingMediaLabel", "GoogleCloudDialogflowV2Participant", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles", "POST", "v2/{+parent}/suggestions:suggestArticles", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "assistQueryParams,contextSize,latestMessage", "GoogleCloudDialogflowV2SuggestArticlesRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers", "POST", "v2/{+parent}/suggestions:suggestFaqAnswers", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "assistQueryParams,contextSize,latestMessage", "GoogleCloudDialogflowV2SuggestFaqAnswersRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.participants.suggestions.suggestKnowledgeAssist", "POST", "v2/{+parent}/suggestions:suggestKnowledgeAssist", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "contextSize,latestMessage,previousSuggestedQuery", "GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies", "POST", "v2/{+parent}/suggestions:suggestSmartReplies", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$", "", "contextSize,currentTextInput,latestMessage", "GoogleCloudDialogflowV2SuggestSmartRepliesRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.suggestions.generate", "POST", "v2/{+conversation}/suggestions:generate", "conversation=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "latestMessage,triggerEvents", "GoogleCloudDialogflowV2GenerateSuggestionsRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.suggestions.searchKnowledge", "POST", "v2/{+conversation}/suggestions:searchKnowledge", "conversation=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "conversation,conversationProfile,endUserMetadata,exactSearch,latestMessage,parent,query,querySource,searchConfig,sessionId", "GoogleCloudDialogflowV2SearchKnowledgeRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary", "POST", "v2/{+conversation}/suggestions:suggestConversationSummary", "conversation=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "assistQueryParams,contextSize,latestMessage", "GoogleCloudDialogflowV2SuggestConversationSummaryRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.deleteAgent", "DELETE", "v2/{+parent}/agent", "parent=^projects/[^/]+/locations/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.encryptionSpec.initialize", "POST", "v2/{+name}:initialize", "name=^projects/[^/]+/locations/[^/]+/encryptionSpec$", "", "encryptionSpec", "GoogleCloudDialogflowV2InitializeEncryptionSpecRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.generators.create", "POST", "v2/{+parent}/generators", "parent=^projects/[^/]+/locations/[^/]+$", "generatorId", "agentCoachingContext,cesAppSpecs,cesToolSpecs,createTime,description,freeFormContext,inferenceParameter,name,publishedModel,suggestionDedupingConfig,summarizationContext,tools,toolsetTools,triggerEvent,updateTime", "GoogleCloudDialogflowV2Generator", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.generators.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/generators/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.generators.evaluations.create", "POST", "v2/{+parent}/evaluations", "parent=^projects/[^/]+/locations/[^/]+/generators/[^/]+$", "", "completeTime,createTime,displayName,evaluationStatus,generatorEvaluationConfig,initialGenerator,name,satisfiesPzi,satisfiesPzs,summarizationMetrics", "GoogleCloudDialogflowV2GeneratorEvaluation", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.generators.evaluations.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/generators/[^/]+/evaluations/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.generators.evaluations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/generators/[^/]+/evaluations/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.generators.evaluations.list", "GET", "v2/{+parent}/evaluations", "parent=^projects/[^/]+/locations/[^/]+/generators/[^/]+$", "pageSize,pageToken", "", "", "P", "generatorEvaluations"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.generators.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/generators/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.generators.list", "GET", "v2/{+parent}/generators", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "generators"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.generators.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/generators/[^/]+$", "updateMask", "agentCoachingContext,cesAppSpecs,cesToolSpecs,createTime,description,freeFormContext,inferenceParameter,name,publishedModel,suggestionDedupingConfig,summarizationContext,tools,toolsetTools,triggerEvent,updateTime", "GoogleCloudDialogflowV2Generator", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.getAgent", "GET", "v2/{+parent}/agent", "parent=^projects/[^/]+/locations/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.getEncryptionSpec", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/encryptionSpec$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.create", "POST", "v2/{+parent}/knowledgeBases", "parent=^projects/[^/]+/locations/[^/]+$", "", "displayName,languageCode,name", "GoogleCloudDialogflowV2KnowledgeBase", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.documents.create", "POST", "v2/{+parent}/documents", "parent=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$", "", "contentUri,displayName,enableAutoReload,knowledgeTypes,latestReloadStatus,metadata,mimeType,name,rawContent,state", "GoogleCloudDialogflowV2Document", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.documents.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "", "", "", "DL", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.documents.export", "POST", "v2/{+name}:export", "name=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "", "exportFullContent,gcsDestination,smartMessagingPartialUpdate", "GoogleCloudDialogflowV2ExportDocumentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.documents.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.documents.import", "POST", "v2/{+parent}/documents:import", "parent=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$", "", "documentTemplate,gcsSource,importGcsCustomMetadata", "GoogleCloudDialogflowV2ImportDocumentsRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.documents.list", "GET", "v2/{+parent}/documents", "parent=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "documents"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.documents.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "updateMask", "contentUri,displayName,enableAutoReload,knowledgeTypes,latestReloadStatus,metadata,mimeType,name,rawContent,state", "GoogleCloudDialogflowV2Document", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.documents.reload", "POST", "v2/{+name}:reload", "name=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$", "", "contentUri,importGcsCustomMetadata,smartMessagingPartialUpdate", "GoogleCloudDialogflowV2ReloadDocumentRequest", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.list", "GET", "v2/{+parent}/knowledgeBases", "parent=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "knowledgeBases"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.knowledgeBases.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$", "updateMask", "displayName,languageCode,name", "GoogleCloudDialogflowV2KnowledgeBase", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.list", "GET", "v2/{+name}/locations", "name=^projects/[^/]+$", "extraLocationTypes,filter,pageSize,pageToken", "", "", "P", "locations"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.operations.cancel", "POST", "v2/{+name}:cancel", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.operations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.operations.list", "GET", "v2/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.setAgent", "POST", "v2/{+parent}/agent", "parent=^projects/[^/]+/locations/[^/]+$", "updateMask", "apiVersion,avatarUri,classificationThreshold,defaultLanguageCode,description,displayName,enableLogging,matchMode,parent,supportedLanguageCodes,tier,timeZone", "GoogleCloudDialogflowV2Agent", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.sipTrunks.create", "POST", "v2/{+parent}/sipTrunks", "parent=^projects/[^/]+/locations/[^/]+$", "", "connections,displayName,expectedHostname,googleRootCertFile,name,peerHostnames", "GoogleCloudDialogflowV2SipTrunk", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.sipTrunks.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/sipTrunks/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.sipTrunks.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/sipTrunks/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.sipTrunks.list", "GET", "v2/{+parent}/sipTrunks", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "sipTrunks"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.sipTrunks.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/sipTrunks/[^/]+$", "updateMask", "connections,displayName,expectedHostname,googleRootCertFile,name,peerHostnames", "GoogleCloudDialogflowV2SipTrunk", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.statelessSuggestion.generate", "POST", "v2/{+parent}/statelessSuggestion:generate", "parent=^projects/[^/]+/locations/[^/]+$", "", "contextReferences,conversationContext,generator,generatorName,securitySettings,triggerEvents", "GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.suggestions.generateStatelessSummary", "POST", "v2/{+parent}/suggestions:generateStatelessSummary", "parent=^projects/[^/]+/locations/[^/]+$", "", "conversationProfile,latestMessage,maxContextSize,statelessConversation", "GoogleCloudDialogflowV2GenerateStatelessSummaryRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.suggestions.searchKnowledge", "POST", "v2/{+parent}/suggestions:searchKnowledge", "parent=^projects/[^/]+/locations/[^/]+$", "", "conversation,conversationProfile,endUserMetadata,exactSearch,latestMessage,parent,query,querySource,searchConfig,sessionId", "GoogleCloudDialogflowV2SearchKnowledgeRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.tools.create", "POST", "v2/{+parent}/tools", "parent=^projects/[^/]+/locations/[^/]+$", "toolId", "actionConfirmationRequirement,connectorSpec,createTime,description,displayName,extensionSpec,functionSpec,name,openApiSpec,satisfiesPzi,satisfiesPzs,toolKey,updateTime", "GoogleCloudDialogflowV2Tool", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.tools.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/tools/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.tools.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/tools/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.tools.list", "GET", "v2/{+parent}/tools", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "tools"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.locations.tools.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/tools/[^/]+$", "updateMask", "actionConfirmationRequirement,connectorSpec,createTime,description,displayName,extensionSpec,functionSpec,name,openApiSpec,satisfiesPzi,satisfiesPzs,toolKey,updateTime", "GoogleCloudDialogflowV2Tool", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.operations.cancel", "POST", "v2/{+name}:cancel", "name=^projects/[^/]+/operations/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.operations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.operations.list", "GET", "v2/{+name}/operations", "name=^projects/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.setAgent", "POST", "v2/{+parent}/agent", "parent=^projects/[^/]+$", "updateMask", "apiVersion,avatarUri,classificationThreshold,defaultLanguageCode,description,displayName,enableLogging,matchMode,parent,supportedLanguageCodes,tier,timeZone", "GoogleCloudDialogflowV2Agent", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.suggestions.generateStatelessSummary", "POST", "v2/{+parent}/suggestions:generateStatelessSummary", "parent=^projects/[^/]+$", "", "conversationProfile,latestMessage,maxContextSize,statelessConversation", "GoogleCloudDialogflowV2GenerateStatelessSummaryRequest", "", ""}, +{Api::kDialogflowEs, "v2", "dialogflow.projects.suggestions.searchKnowledge", "POST", "v2/{+parent}/suggestions:searchKnowledge", "parent=^projects/[^/]+$", "", "conversation,conversationProfile,endUserMetadata,exactSearch,latestMessage,parent,query,querySource,searchConfig,sessionId", "GoogleCloudDialogflowV2SearchKnowledgeRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.changelogs.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/changelogs/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.changelogs.list", "GET", "v3/{+parent}/changelogs", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "changelogs"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.create", "POST", "v3/{+parent}/agents", "parent=^projects/[^/]+/locations/[^/]+$", "", "advancedSettings,answerFeedbackSettings,avatarUri,clientCertificateSettings,defaultLanguageCode,description,displayName,enableMultiLanguageTraining,enableSpellCorrection,enableStackdriverLogging,genAppBuilderSettings,gitIntegrationSettings,locked,name,personalizationSettings,satisfiesPzi,satisfiesPzs,securitySettings,speechToTextSettings,startFlow,startPlaybook,supportedLanguageCodes,textToSpeechSettings,timeZone", "GoogleCloudDialogflowCxV3Agent", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.entityTypes.create", "POST", "v3/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "languageCode", "autoExpansionMode,displayName,enableFuzzyExtraction,entities,excludedPhrases,kind,name,redact", "GoogleCloudDialogflowCxV3EntityType", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.entityTypes.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/entityTypes/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.entityTypes.export", "POST", "v3/{+parent}/entityTypes:export", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "dataFormat,entityTypes,entityTypesContentInline,entityTypesUri,languageCode", "GoogleCloudDialogflowCxV3ExportEntityTypesRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.entityTypes.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/entityTypes/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.entityTypes.import", "POST", "v3/{+parent}/entityTypes:import", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "entityTypesContent,entityTypesUri,mergeOption,targetEntityType", "GoogleCloudDialogflowCxV3ImportEntityTypesRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.entityTypes.list", "GET", "v3/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "languageCode,pageSize,pageToken", "", "", "P", "entityTypes"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.entityTypes.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/entityTypes/[^/]+$", "languageCode,updateMask", "autoExpansionMode,displayName,enableFuzzyExtraction,entities,excludedPhrases,kind,name,redact", "GoogleCloudDialogflowCxV3EntityType", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.continuousTestResults.list", "GET", "v3/{+parent}/continuousTestResults", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "pageSize,pageToken", "", "", "P", "continuousTestResults"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.create", "POST", "v3/{+parent}/environments", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "description,displayName,name,testCasesConfig,updateTime,versionConfigs,webhookConfig", "GoogleCloudDialogflowCxV3Environment", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.deployFlow", "POST", "v3/{+environment}:deployFlow", "environment=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "", "flowVersion", "GoogleCloudDialogflowCxV3DeployFlowRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.deployments.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/deployments/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.deployments.list", "GET", "v3/{+parent}/deployments", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "pageSize,pageToken", "", "", "P", "deployments"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.experiments.create", "POST", "v3/{+parent}/experiments", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "", "createTime,definition,description,displayName,endTime,experimentLength,lastUpdateTime,name,result,rolloutConfig,rolloutFailureReason,rolloutState,startTime,state,variantsHistory", "GoogleCloudDialogflowCxV3Experiment", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.experiments.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.experiments.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.experiments.list", "GET", "v3/{+parent}/experiments", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "pageSize,pageToken", "", "", "P", "experiments"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.experiments.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$", "updateMask", "createTime,definition,description,displayName,endTime,experimentLength,lastUpdateTime,name,result,rolloutConfig,rolloutFailureReason,rolloutState,startTime,state,variantsHistory", "GoogleCloudDialogflowCxV3Experiment", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.experiments.start", "POST", "v3/{+name}:start", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$", "", "", "GoogleCloudDialogflowCxV3StartExperimentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.experiments.stop", "POST", "v3/{+name}:stop", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$", "", "", "GoogleCloudDialogflowCxV3StopExperimentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.list", "GET", "v3/{+parent}/environments", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "pageSize,pageToken", "", "", "P", "environments"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory", "GET", "v3/{+name}:lookupEnvironmentHistory", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "pageSize,pageToken", "", "", "P", "environments"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "updateMask", "description,displayName,name,testCasesConfig,updateTime,versionConfigs,webhookConfig", "GoogleCloudDialogflowCxV3Environment", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.runContinuousTest", "POST", "v3/{+environment}:runContinuousTest", "environment=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$", "", "", "GoogleCloudDialogflowCxV3RunContinuousTestRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.sessions.detectIntent", "POST", "v3/{+session}:detectIntent", "session=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$", "", "outputAudioConfig,queryInput,queryParams,responseView", "GoogleCloudDialogflowCxV3DetectIntentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.sessions.entityTypes.create", "POST", "v3/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$", "", "entities,entityOverrideMode,name", "GoogleCloudDialogflowCxV3SessionEntityType", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.sessions.entityTypes.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.sessions.entityTypes.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.sessions.entityTypes.list", "GET", "v3/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "sessionEntityTypes"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "updateMask", "entities,entityOverrideMode,name", "GoogleCloudDialogflowCxV3SessionEntityType", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.sessions.fulfillIntent", "POST", "v3/{+session}:fulfillIntent", "session=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$", "", "match,matchIntentRequest,outputAudioConfig", "GoogleCloudDialogflowCxV3FulfillIntentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.sessions.matchIntent", "POST", "v3/{+session}:matchIntent", "session=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$", "", "persistParameterChanges,queryInput,queryParams", "GoogleCloudDialogflowCxV3MatchIntentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.environments.sessions.serverStreamingDetectIntent", "POST", "v3/{+session}:serverStreamingDetectIntent", "session=^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$", "", "outputAudioConfig,queryInput,queryParams,responseView", "GoogleCloudDialogflowCxV3DetectIntentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.export", "POST", "v3/{+name}:export", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "agentUri,dataFormat,environment,gitDestination,includeBigqueryExportSettings", "GoogleCloudDialogflowCxV3ExportAgentRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.create", "POST", "v3/{+parent}/flows", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "languageCode", "advancedSettings,description,displayName,eventHandlers,inputParameterDefinitions,knowledgeConnectorSettings,locked,multiLanguageSettings,name,nluSettings,outputParameterDefinitions,transitionRouteGroups,transitionRoutes", "GoogleCloudDialogflowCxV3Flow", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.export", "POST", "v3/{+name}:export", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "", "flowUri,includeReferencedFlows", "GoogleCloudDialogflowCxV3ExportFlowRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.getValidationResult", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/validationResult$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.import", "POST", "v3/{+parent}/flows:import", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "flowContent,flowImportStrategy,flowUri,importOption", "GoogleCloudDialogflowCxV3ImportFlowRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.list", "GET", "v3/{+parent}/flows", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "languageCode,pageSize,pageToken", "", "", "P", "flows"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.pages.create", "POST", "v3/{+parent}/pages", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "languageCode", "advancedSettings,description,displayName,entryFulfillment,eventHandlers,form,knowledgeConnectorSettings,name,transitionRouteGroups,transitionRoutes", "GoogleCloudDialogflowCxV3Page", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.pages.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/pages/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.pages.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/pages/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.pages.list", "GET", "v3/{+parent}/pages", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "languageCode,pageSize,pageToken", "", "", "P", "pages"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.pages.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/pages/[^/]+$", "languageCode,updateMask", "advancedSettings,description,displayName,entryFulfillment,eventHandlers,form,knowledgeConnectorSettings,name,transitionRouteGroups,transitionRoutes", "GoogleCloudDialogflowCxV3Page", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "languageCode,updateMask", "advancedSettings,description,displayName,eventHandlers,inputParameterDefinitions,knowledgeConnectorSettings,locked,multiLanguageSettings,name,nluSettings,outputParameterDefinitions,transitionRouteGroups,transitionRoutes", "GoogleCloudDialogflowCxV3Flow", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.train", "POST", "v3/{+name}:train", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "", "", "GoogleCloudDialogflowCxV3TrainFlowRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.transitionRouteGroups.create", "POST", "v3/{+parent}/transitionRouteGroups", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "languageCode", "displayName,name,transitionRoutes", "GoogleCloudDialogflowCxV3TransitionRouteGroup", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.transitionRouteGroups.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.transitionRouteGroups.list", "GET", "v3/{+parent}/transitionRouteGroups", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "languageCode,pageSize,pageToken", "", "", "P", "transitionRouteGroups"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+$", "languageCode,updateMask", "displayName,name,transitionRoutes", "GoogleCloudDialogflowCxV3TransitionRouteGroup", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.validate", "POST", "v3/{+name}:validate", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "", "languageCode", "GoogleCloudDialogflowCxV3ValidateFlowRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.versions.compareVersions", "POST", "v3/{+baseVersion}:compareVersions", "baseVersion=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/versions/[^/]+$", "", "languageCode,targetVersion", "GoogleCloudDialogflowCxV3CompareVersionsRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.versions.create", "POST", "v3/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "", "createTime,description,displayName,name,nluSettings,state", "GoogleCloudDialogflowCxV3Version", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.versions.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/versions/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.versions.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/versions/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.versions.list", "GET", "v3/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$", "pageSize,pageToken", "", "", "P", "versions"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.versions.load", "POST", "v3/{+name}:load", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/versions/[^/]+$", "", "allowOverrideAgentResources", "GoogleCloudDialogflowCxV3LoadVersionRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.flows.versions.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/versions/[^/]+$", "updateMask", "createTime,description,displayName,name,nluSettings,state", "GoogleCloudDialogflowCxV3Version", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.generators.create", "POST", "v3/{+parent}/generators", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "languageCode", "displayName,llmModelSettings,modelParameter,name,placeholders,promptText", "GoogleCloudDialogflowCxV3Generator", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.generators.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/generators/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.generators.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/generators/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.generators.list", "GET", "v3/{+parent}/generators", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "languageCode,pageSize,pageToken", "", "", "P", "generators"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.generators.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/generators/[^/]+$", "languageCode,updateMask", "displayName,llmModelSettings,modelParameter,name,placeholders,promptText", "GoogleCloudDialogflowCxV3Generator", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.getGenerativeSettings", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/generativeSettings$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.getValidationResult", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/validationResult$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.intents.create", "POST", "v3/{+parent}/intents", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "languageCode", "description,displayName,dtmfPattern,isFallback,labels,name,parameters,priority,trainingPhrases", "GoogleCloudDialogflowCxV3Intent", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.intents.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/intents/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.intents.export", "POST", "v3/{+parent}/intents:export", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "dataFormat,intents,intentsContentInline,intentsUri", "GoogleCloudDialogflowCxV3ExportIntentsRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.intents.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/intents/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.intents.import", "POST", "v3/{+parent}/intents:import", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "intentsContent,intentsUri,mergeOption", "GoogleCloudDialogflowCxV3ImportIntentsRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.intents.list", "GET", "v3/{+parent}/intents", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "intentView,languageCode,pageSize,pageToken", "", "", "P", "intents"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.intents.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/intents/[^/]+$", "languageCode,updateMask", "description,displayName,dtmfPattern,isFallback,labels,name,parameters,priority,trainingPhrases", "GoogleCloudDialogflowCxV3Intent", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.list", "GET", "v3/{+parent}/agents", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "agents"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "updateMask", "advancedSettings,answerFeedbackSettings,avatarUri,clientCertificateSettings,defaultLanguageCode,description,displayName,enableMultiLanguageTraining,enableSpellCorrection,enableStackdriverLogging,genAppBuilderSettings,gitIntegrationSettings,locked,name,personalizationSettings,satisfiesPzi,satisfiesPzs,securitySettings,speechToTextSettings,startFlow,startPlaybook,supportedLanguageCodes,textToSpeechSettings,timeZone", "GoogleCloudDialogflowCxV3Agent", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.create", "POST", "v3/{+parent}/playbooks", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "codeBlock,createTime,displayName,goal,handlers,inlineActions,inputParameterDefinitions,instruction,llmModelSettings,name,outputParameterDefinitions,playbookType,referencedFlows,referencedPlaybooks,referencedTools,tokenCount,updateTime", "GoogleCloudDialogflowCxV3Playbook", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.examples.create", "POST", "v3/{+parent}/examples", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", "", "actions,conversationState,createTime,description,displayName,languageCode,name,playbookInput,playbookOutput,tokenCount,updateTime", "GoogleCloudDialogflowCxV3Example", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.examples.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/examples/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.examples.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/examples/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.examples.list", "GET", "v3/{+parent}/examples", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", "languageCode,pageSize,pageToken", "", "", "P", "examples"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.examples.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/examples/[^/]+$", "updateMask", "actions,conversationState,createTime,description,displayName,languageCode,name,playbookInput,playbookOutput,tokenCount,updateTime", "GoogleCloudDialogflowCxV3Example", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.export", "POST", "v3/{+name}:export", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", "", "dataFormat,playbookUri", "GoogleCloudDialogflowCxV3ExportPlaybookRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.import", "POST", "v3/{+parent}/playbooks:import", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "importStrategy,playbookContent,playbookUri", "GoogleCloudDialogflowCxV3ImportPlaybookRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.list", "GET", "v3/{+parent}/playbooks", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "pageSize,pageToken", "", "", "P", "playbooks"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", "updateMask", "codeBlock,createTime,displayName,goal,handlers,inlineActions,inputParameterDefinitions,instruction,llmModelSettings,name,outputParameterDefinitions,playbookType,referencedFlows,referencedPlaybooks,referencedTools,tokenCount,updateTime", "GoogleCloudDialogflowCxV3Playbook", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.versions.create", "POST", "v3/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", "", "description,examples,name,playbook,updateTime", "GoogleCloudDialogflowCxV3PlaybookVersion", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.versions.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/versions/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.versions.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/versions/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.versions.list", "GET", "v3/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", "pageSize,pageToken", "", "", "P", "playbookVersions"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.playbooks.versions.restore", "POST", "v3/{+name}:restore", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/versions/[^/]+$", "", "", "GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.restore", "POST", "v3/{+name}:restore", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "agentContent,agentUri,gitSource,restoreOption", "GoogleCloudDialogflowCxV3RestoreAgentRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.detectIntent", "POST", "v3/{+session}:detectIntent", "session=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$", "", "outputAudioConfig,queryInput,queryParams,responseView", "GoogleCloudDialogflowCxV3DetectIntentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.entityTypes.create", "POST", "v3/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$", "", "entities,entityOverrideMode,name", "GoogleCloudDialogflowCxV3SessionEntityType", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.entityTypes.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.entityTypes.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.entityTypes.list", "GET", "v3/{+parent}/entityTypes", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$", "pageSize,pageToken", "", "", "P", "sessionEntityTypes"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.entityTypes.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+/entityTypes/[^/]+$", "updateMask", "entities,entityOverrideMode,name", "GoogleCloudDialogflowCxV3SessionEntityType", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.fulfillIntent", "POST", "v3/{+session}:fulfillIntent", "session=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$", "", "match,matchIntentRequest,outputAudioConfig", "GoogleCloudDialogflowCxV3FulfillIntentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.matchIntent", "POST", "v3/{+session}:matchIntent", "session=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$", "", "persistParameterChanges,queryInput,queryParams", "GoogleCloudDialogflowCxV3MatchIntentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.serverStreamingDetectIntent", "POST", "v3/{+session}:serverStreamingDetectIntent", "session=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$", "", "outputAudioConfig,queryInput,queryParams,responseView", "GoogleCloudDialogflowCxV3DetectIntentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.sessions.submitAnswerFeedback", "POST", "v3/{+session}:submitAnswerFeedback", "session=^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$", "", "answerFeedback,responseId,updateMask", "GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.batchDelete", "POST", "v3/{+parent}/testCases:batchDelete", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "names", "GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.batchRun", "POST", "v3/{+parent}/testCases:batchRun", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "environment,testCases", "GoogleCloudDialogflowCxV3BatchRunTestCasesRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.calculateCoverage", "GET", "v3/{+agent}/testCases:calculateCoverage", "agent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "type", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.create", "POST", "v3/{+parent}/testCases", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "creationTime,displayName,lastTestResult,name,notes,tags,testCaseConversationTurns,testConfig", "GoogleCloudDialogflowCxV3TestCase", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.export", "POST", "v3/{+parent}/testCases:export", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "dataFormat,filter,gcsUri", "GoogleCloudDialogflowCxV3ExportTestCasesRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.import", "POST", "v3/{+parent}/testCases:import", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "content,gcsUri", "GoogleCloudDialogflowCxV3ImportTestCasesRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.list", "GET", "v3/{+parent}/testCases", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "pageSize,pageToken,view", "", "", "P", "testCases"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+$", "updateMask", "creationTime,displayName,lastTestResult,name,notes,tags,testCaseConversationTurns,testConfig", "GoogleCloudDialogflowCxV3TestCase", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.results.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+/results/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.results.list", "GET", "v3/{+parent}/results", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "testCaseResults"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.testCases.run", "POST", "v3/{+name}:run", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+$", "", "environment", "GoogleCloudDialogflowCxV3RunTestCaseRequest", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.create", "POST", "v3/{+parent}/tools", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "dataStoreSpec,description,displayName,functionSpec,name,openApiSpec,toolType", "GoogleCloudDialogflowCxV3Tool", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.list", "GET", "v3/{+parent}/tools", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "pageSize,pageToken", "", "", "P", "tools"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+$", "updateMask", "dataStoreSpec,description,displayName,functionSpec,name,openApiSpec,toolType", "GoogleCloudDialogflowCxV3Tool", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.versions.create", "POST", "v3/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+$", "", "createTime,displayName,name,tool,updateTime", "GoogleCloudDialogflowCxV3ToolVersion", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.versions.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+/versions/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.versions.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+/versions/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.versions.list", "GET", "v3/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+$", "pageSize,pageToken", "", "", "P", "toolVersions"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.tools.versions.restore", "POST", "v3/{+name}:restore", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+/versions/[^/]+$", "", "", "GoogleCloudDialogflowCxV3RestoreToolVersionRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.transitionRouteGroups.create", "POST", "v3/{+parent}/transitionRouteGroups", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "languageCode", "displayName,name,transitionRoutes", "GoogleCloudDialogflowCxV3TransitionRouteGroup", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.transitionRouteGroups.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/transitionRouteGroups/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.transitionRouteGroups.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/transitionRouteGroups/[^/]+$", "languageCode", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.transitionRouteGroups.list", "GET", "v3/{+parent}/transitionRouteGroups", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "languageCode,pageSize,pageToken", "", "", "P", "transitionRouteGroups"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.transitionRouteGroups.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/transitionRouteGroups/[^/]+$", "languageCode,updateMask", "displayName,name,transitionRoutes", "GoogleCloudDialogflowCxV3TransitionRouteGroup", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.updateGenerativeSettings", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/generativeSettings$", "updateMask", "fallbackSettings,generativeSafetySettings,knowledgeConnectorSettings,languageCode,llmModelSettings,name", "GoogleCloudDialogflowCxV3GenerativeSettings", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.validate", "POST", "v3/{+name}:validate", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "languageCode", "GoogleCloudDialogflowCxV3ValidateAgentRequest", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.webhooks.create", "POST", "v3/{+parent}/webhooks", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "", "disabled,displayName,genericWebService,name,serviceDirectory,timeout", "GoogleCloudDialogflowCxV3Webhook", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.webhooks.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/webhooks/[^/]+$", "force", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.webhooks.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/webhooks/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.webhooks.list", "GET", "v3/{+parent}/webhooks", "parent=^projects/[^/]+/locations/[^/]+/agents/[^/]+$", "pageSize,pageToken", "", "", "P", "webhooks"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.agents.webhooks.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/agents/[^/]+/webhooks/[^/]+$", "updateMask", "disabled,displayName,genericWebService,name,serviceDirectory,timeout", "GoogleCloudDialogflowCxV3Webhook", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.list", "GET", "v3/{+name}/locations", "name=^projects/[^/]+$", "extraLocationTypes,filter,pageSize,pageToken", "", "", "P", "locations"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.operations.cancel", "POST", "v3/{+name}:cancel", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.operations.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.operations.list", "GET", "v3/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.securitySettings.create", "POST", "v3/{+parent}/securitySettings", "parent=^projects/[^/]+/locations/[^/]+$", "", "audioExportSettings,deidentifyTemplate,displayName,insightsExportSettings,inspectTemplate,name,purgeDataTypes,redactionScope,redactionStrategy,retentionStrategy,retentionWindowDays", "GoogleCloudDialogflowCxV3SecuritySettings", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.securitySettings.delete", "DELETE", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/securitySettings/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.securitySettings.get", "GET", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/securitySettings/[^/]+$", "", "", "", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.securitySettings.list", "GET", "v3/{+parent}/securitySettings", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "securitySettings"}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.locations.securitySettings.patch", "PATCH", "v3/{+name}", "name=^projects/[^/]+/locations/[^/]+/securitySettings/[^/]+$", "updateMask", "audioExportSettings,deidentifyTemplate,displayName,insightsExportSettings,inspectTemplate,name,purgeDataTypes,redactionScope,redactionStrategy,retentionStrategy,retentionWindowDays", "GoogleCloudDialogflowCxV3SecuritySettings", "", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.operations.cancel", "POST", "v3/{+name}:cancel", "name=^projects/[^/]+/operations/[^/]+$", "", "", "", "D", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.operations.get", "GET", "v3/{+name}", "name=^projects/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kDialogflowCx, "v3", "dialogflow.projects.operations.list", "GET", "v3/{+name}/operations", "name=^projects/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute", "POST", "v2/{+attributesConfig}:addCatalogAttribute", "attributesConfig=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/attributesConfig$", "", "catalogAttribute", "GoogleCloudRetailV2AddCatalogAttributeRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.attributesConfig.removeCatalogAttribute", "POST", "v2/{+attributesConfig}:removeCatalogAttribute", "attributesConfig=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/attributesConfig$", "", "key", "GoogleCloudRetailV2RemoveCatalogAttributeRequest", "D", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.attributesConfig.replaceCatalogAttribute", "POST", "v2/{+attributesConfig}:replaceCatalogAttribute", "attributesConfig=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/attributesConfig$", "", "catalogAttribute,updateMask", "GoogleCloudRetailV2ReplaceCatalogAttributeRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.operations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", "POST", "v2/{+product}:addFulfillmentPlaces", "product=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$", "", "addTime,allowMissing,placeIds,type", "GoogleCloudRetailV2AddFulfillmentPlacesRequest", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.addLocalInventories", "POST", "v2/{+product}:addLocalInventories", "product=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$", "", "addMask,addTime,allowMissing,localInventories", "GoogleCloudRetailV2AddLocalInventoriesRequest", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.create", "POST", "v2/{+parent}/products", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+$", "productId", "attributes,audience,availability,availableQuantity,availableTime,brands,categories,collectionMemberIds,colorInfo,conditions,description,expireTime,fulfillmentInfo,gtin,id,images,languageCode,localInventories,materials,name,patterns,priceInfo,primaryProductId,promotions,publishTime,rating,retrievableFields,sizes,tags,title,ttl,type,uri,variants", "GoogleCloudRetailV2Product", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$", "", "", "", "D", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.import", "POST", "v2/{+parent}/products:import", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+$", "", "errorsConfig,inputConfig,notificationPubsubTopic,reconciliationMode,requestId,updateMask", "GoogleCloudRetailV2ImportProductsRequest", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.list", "GET", "v2/{+parent}/products", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+$", "filter,pageSize,pageToken,readMask", "", "", "P", "products"}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$", "allowMissing,updateMask", "attributes,audience,availability,availableQuantity,availableTime,brands,categories,collectionMemberIds,colorInfo,conditions,description,expireTime,fulfillmentInfo,gtin,id,images,languageCode,localInventories,materials,name,patterns,priceInfo,primaryProductId,promotions,publishTime,rating,retrievableFields,sizes,tags,title,ttl,type,uri,variants", "GoogleCloudRetailV2Product", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.purge", "POST", "v2/{+parent}/products:purge", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+$", "", "filter,force", "GoogleCloudRetailV2PurgeProductsRequest", "DL", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", "POST", "v2/{+product}:removeFulfillmentPlaces", "product=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$", "", "allowMissing,placeIds,removeTime,type", "GoogleCloudRetailV2RemoveFulfillmentPlacesRequest", "DL", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.removeLocalInventories", "POST", "v2/{+product}:removeLocalInventories", "product=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$", "", "allowMissing,placeIds,removeTime", "GoogleCloudRetailV2RemoveLocalInventoriesRequest", "DL", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.branches.products.setInventory", "POST", "v2/{+name}:setInventory", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+/products/.*$", "", "allowMissing,inventory,setMask,setTime", "GoogleCloudRetailV2SetInventoryRequest", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.completeQuery", "GET", "v2/{+catalog}:completeQuery", "catalog=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "dataset,deviceType,enableAttributeSuggestions,entity,languageCodes,maxSuggestions,query,visitorId", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.completionData.import", "POST", "v2/{+parent}/completionData:import", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "inputConfig,notificationPubsubTopic", "GoogleCloudRetailV2ImportCompletionDataRequest", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.controls.create", "POST", "v2/{+parent}/controls", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "controlId", "associatedServingConfigIds,displayName,name,rule,searchSolutionUseCase,solutionTypes", "GoogleCloudRetailV2Control", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.controls.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/controls/[^/]+$", "", "", "", "D", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.controls.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/controls/[^/]+$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.controls.list", "GET", "v2/{+parent}/controls", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "controls"}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.controls.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/controls/[^/]+$", "updateMask", "associatedServingConfigIds,displayName,name,rule,searchSolutionUseCase,solutionTypes", "GoogleCloudRetailV2Control", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.exportAnalyticsMetrics", "POST", "v2/{+catalog}:exportAnalyticsMetrics", "catalog=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "filter,outputConfig", "GoogleCloudRetailV2ExportAnalyticsMetricsRequest", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.generativeQuestion.batchUpdate", "POST", "v2/{+parent}/generativeQuestion:batchUpdate", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "requests", "GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.generativeQuestions.list", "GET", "v2/{+parent}/generativeQuestions", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.getAttributesConfig", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/attributesConfig$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.getCompletionConfig", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/completionConfig$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.getConversationalSearchCustomizationConfig", "GET", "v2/{+name}/conversationalSearchCustomizationConfig", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.getDefaultBranch", "GET", "v2/{+catalog}:getDefaultBranch", "catalog=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.getGenerativeQuestionFeature", "GET", "v2/{+catalog}/generativeQuestionFeature", "catalog=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.list", "GET", "v2/{+parent}/catalogs", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "catalogs"}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.models.create", "POST", "v2/{+parent}/models", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "dryRun", "createTime,dataState,displayName,filteringOption,lastTuneTime,modelFeaturesConfig,name,optimizationObjective,periodicTuningState,servingConfigLists,servingState,trainingState,tuningOperation,type,updateTime", "GoogleCloudRetailV2Model", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.models.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", "", "", "", "D", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.models.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.models.list", "GET", "v2/{+parent}/models", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "pageSize,pageToken", "", "", "P", "models"}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.models.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", "updateMask", "createTime,dataState,displayName,filteringOption,lastTuneTime,modelFeaturesConfig,name,optimizationObjective,periodicTuningState,servingConfigLists,servingState,trainingState,tuningOperation,type,updateTime", "GoogleCloudRetailV2Model", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.models.pause", "POST", "v2/{+name}:pause", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", "", "", "GoogleCloudRetailV2PauseModelRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.models.resume", "POST", "v2/{+name}:resume", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", "", "", "GoogleCloudRetailV2ResumeModelRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.models.tune", "POST", "v2/{+name}:tune", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", "", "", "GoogleCloudRetailV2TuneModelRequest", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.operations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.operations.list", "GET", "v2/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "updateMask", "displayName,name,productLevelConfig", "GoogleCloudRetailV2Catalog", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.placements.conversationalSearch", "POST", "v2/{+placement}:conversationalSearch", "placement=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", "", "branch,conversationId,conversationalFilteringSpec,pageCategories,query,safetySettings,searchParams,userInfo,userLabels,visitorId", "GoogleCloudRetailV2ConversationalSearchRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.placements.predict", "POST", "v2/{+placement}:predict", "placement=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", "", "filter,labels,pageSize,pageToken,params,userEvent,validateOnly", "GoogleCloudRetailV2PredictRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.placements.search", "POST", "v2/{+placement}:search", "placement=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", "", "boostSpec,branch,canonicalFilter,conversationalSearchSpec,dynamicFacetSpec,entity,facetSpecs,filter,labels,languageCode,offset,orderBy,pageCategories,pageSize,pageToken,personalizationSpec,placeId,query,queryExpansionSpec,regionCode,searchMode,spellCorrectionSpec,tileNavigationSpec,userAttributes,userInfo,variantRollupKeys,visitorId", "GoogleCloudRetailV2SearchRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.addControl", "POST", "v2/{+servingConfig}:addControl", "servingConfig=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "", "controlId", "GoogleCloudRetailV2AddControlRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.conversationalSearch", "POST", "v2/{+placement}:conversationalSearch", "placement=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "", "branch,conversationId,conversationalFilteringSpec,pageCategories,query,safetySettings,searchParams,userInfo,userLabels,visitorId", "GoogleCloudRetailV2ConversationalSearchRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.create", "POST", "v2/{+parent}/servingConfigs", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "servingConfigId", "boostControlIds,displayName,diversityLevel,diversityType,doNotAssociateControlIds,dynamicFacetSpec,enableCategoryFilterLevel,facetControlIds,filterControlIds,ignoreControlIds,ignoreRecsDenylist,modelId,name,onewaySynonymsControlIds,personalizationSpec,priceRerankingLevel,redirectControlIds,replacementControlIds,solutionTypes,twowaySynonymsControlIds", "GoogleCloudRetailV2ServingConfig", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.delete", "DELETE", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "", "", "", "D", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "", "", "", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.list", "GET", "v2/{+parent}/servingConfigs", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "pageSize,pageToken", "", "", "P", "servingConfigs"}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.patch", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "updateMask", "boostControlIds,displayName,diversityLevel,diversityType,doNotAssociateControlIds,dynamicFacetSpec,enableCategoryFilterLevel,facetControlIds,filterControlIds,ignoreControlIds,ignoreRecsDenylist,modelId,name,onewaySynonymsControlIds,personalizationSpec,priceRerankingLevel,redirectControlIds,replacementControlIds,solutionTypes,twowaySynonymsControlIds", "GoogleCloudRetailV2ServingConfig", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.predict", "POST", "v2/{+placement}:predict", "placement=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "", "filter,labels,pageSize,pageToken,params,userEvent,validateOnly", "GoogleCloudRetailV2PredictRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.removeControl", "POST", "v2/{+servingConfig}:removeControl", "servingConfig=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "", "controlId", "GoogleCloudRetailV2RemoveControlRequest", "D", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.servingConfigs.search", "POST", "v2/{+placement}:search", "placement=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", "", "boostSpec,branch,canonicalFilter,conversationalSearchSpec,dynamicFacetSpec,entity,facetSpecs,filter,labels,languageCode,offset,orderBy,pageCategories,pageSize,pageToken,personalizationSpec,placeId,query,queryExpansionSpec,regionCode,searchMode,spellCorrectionSpec,tileNavigationSpec,userAttributes,userInfo,variantRollupKeys,visitorId", "GoogleCloudRetailV2SearchRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.setDefaultBranch", "POST", "v2/{+catalog}:setDefaultBranch", "catalog=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "branchId,force,note", "GoogleCloudRetailV2SetDefaultBranchRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.updateAttributesConfig", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/attributesConfig$", "updateMask", "attributeConfigLevel,catalogAttributes,name", "GoogleCloudRetailV2AttributesConfig", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.updateCompletionConfig", "PATCH", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/completionConfig$", "updateMask", "allowlistInputConfig,autoLearning,denylistInputConfig,lastAllowlistImportOperation,lastDenylistImportOperation,lastSuggestionsImportOperation,matchingOrder,maxSuggestions,minPrefixLength,name,suggestionsInputConfig", "GoogleCloudRetailV2CompletionConfig", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.updateConversationalSearchCustomizationConfig", "PATCH", "v2/{+catalog}/conversationalSearchCustomizationConfig", "catalog=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "updateMask", "catalog,intentClassificationConfig,retailerDisplayName", "GoogleCloudRetailV2ConversationalSearchCustomizationConfig", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.updateGenerativeQuestion", "PATCH", "v2/{+catalog}/generativeQuestion", "catalog=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "updateMask", "allowedInConversation,catalog,exampleValues,facet,finalQuestion,frequency,generatedQuestion", "GoogleCloudRetailV2GenerativeQuestionConfig", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.updateGenerativeQuestionFeature", "PATCH", "v2/{+catalog}/generativeQuestionFeature", "catalog=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "updateMask", "catalog,featureEnabled,minimumProducts", "GoogleCloudRetailV2GenerativeQuestionsFeatureConfig", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.userEvents.collect", "POST", "v2/{+parent}/userEvents:collect", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "ets,prebuiltRule,rawJson,uri,userEvent", "GoogleCloudRetailV2CollectUserEventRequest", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.userEvents.import", "POST", "v2/{+parent}/userEvents:import", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "errorsConfig,inputConfig", "GoogleCloudRetailV2ImportUserEventsRequest", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.userEvents.purge", "POST", "v2/{+parent}/userEvents:purge", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "filter,force", "GoogleCloudRetailV2PurgeUserEventsRequest", "DL", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.userEvents.rejoin", "POST", "v2/{+parent}/userEvents:rejoin", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "userEventRejoinScope", "GoogleCloudRetailV2RejoinUserEventsRequest", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.catalogs.userEvents.write", "POST", "v2/{+parent}/userEvents:write", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "writeAsync", "attributes,attributionToken,cartId,completionDetail,entity,eventTime,eventType,experimentIds,filter,offset,orderBy,pageCategories,pageViewId,panels,productDetails,purchaseTransaction,referrerUri,searchQuery,sessionId,uri,userInfo,visitorId", "GoogleCloudRetailV2UserEvent", "", ""}, +{Api::kRetail, "v2", "retail.projects.locations.operations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kRetail, "v2", "retail.projects.locations.operations.list", "GET", "v2/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kRetail, "v2", "retail.projects.operations.get", "GET", "v2/{+name}", "name=^projects/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kRetail, "v2", "retail.projects.operations.list", "GET", "v2/{+name}/operations", "name=^projects/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.analysisRules.create", "POST", "v1/{+parent}/analysisRules", "parent=^projects/[^/]+/locations/[^/]+$", "", "active,analysisPercentage,annotatorSelector,conversationFilter,createTime,displayName,name,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1AnalysisRule", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.analysisRules.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.analysisRules.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.analysisRules.list", "GET", "v1/{+parent}/analysisRules", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "analysisRules"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.analysisRules.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$", "updateMask", "active,analysisPercentage,annotatorSelector,conversationFilter,createTime,displayName,name,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1AnalysisRule", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.assessmentRules.create", "POST", "v1/{+parent}/assessmentRules", "parent=^projects/[^/]+/locations/[^/]+$", "assessmentRuleId", "active,createTime,displayName,name,sampleRule,satisfiesPzi,satisfiesPzs,scheduleInfo,updateTime", "GoogleCloudContactcenterinsightsV1AssessmentRule", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.assessmentRules.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/assessmentRules/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.assessmentRules.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/assessmentRules/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.assessmentRules.list", "GET", "v1/{+parent}/assessmentRules", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "assessmentRules"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.assessmentRules.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/assessmentRules/[^/]+$", "updateMask", "active,createTime,displayName,name,sampleRule,satisfiesPzi,satisfiesPzs,scheduleInfo,updateTime", "GoogleCloudContactcenterinsightsV1AssessmentRule", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.appeal", "POST", "v1/{+name}:appeal", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "", "GoogleCloudContactcenterinsightsV1AppealAssessmentRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.create", "POST", "v1/{+parent}/assessments", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", "", "agentInfo,createTime,name,state,updateTime", "GoogleCloudContactcenterinsightsV1Assessment", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/assessments/[^/]+$", "force", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.finalize", "POST", "v1/{+name}:finalize", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "", "GoogleCloudContactcenterinsightsV1FinalizeAssessmentRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.list", "GET", "v1/{+parent}/assessments", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "assessments"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.notes.create", "POST", "v1/{+parent}/notes", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "assessmentNote,content,conversationTurnNote,createTime,name,noteCreator,qaQuestionNote,updateTime", "GoogleCloudContactcenterinsightsV1Note", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.notes.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/assessments/[^/]+/notes/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.notes.list", "GET", "v1/{+parent}/notes", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/assessments/[^/]+$", "pageSize,pageToken", "", "", "P", "notes"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.notes.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/assessments/[^/]+/notes/[^/]+$", "updateMask", "assessmentNote,content,conversationTurnNote,createTime,name,noteCreator,qaQuestionNote,updateTime", "GoogleCloudContactcenterinsightsV1Note", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.assessments.publish", "POST", "v1/{+name}:publish", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "", "GoogleCloudContactcenterinsightsV1PublishAssessmentRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.calculateStats", "GET", "v1/{+location}/conversations:calculateStats", "location=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "filter", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", "force", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.create", "POST", "v1/{+parent}/feedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", "feedbackLabelId", "createTime,label,labeledResource,name,qaAnswerLabel,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1FeedbackLabel", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.list", "GET", "v1/{+parent}/feedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "feedbackLabels"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "updateMask", "createTime,label,labeledResource,name,qaAnswerLabel,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1FeedbackLabel", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.generateSignedAudio", "GET", "v1/{+name}:generateSignedAudio", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", "view", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.list", "GET", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "filter,orderBy,pageSize,pageToken,view", "", "", "P", "conversations"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.create", "POST", "v1/{+parent}/authorizedViews", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+$", "authorizedViewId", "conversationFilter,createTime,displayName,name,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1AuthorizedView", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.generativeInsights", "POST", "v1/{+location}:generativeInsights", "location=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "", "chart,comparisonFilter,filter,naturalLanguageQuery,revisionId,sessionId,sqlComparisonKey,sqlQuery,timeZone,userProvidedChartSpec", "GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.getIamPolicy", "GET", "v1/{+resource}:getIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "options.requestedPolicyVersion", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.list", "GET", "v1/{+parent}/authorizedViews", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "authorizedViews"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.cancel", "POST", "v1/{+name}:cancel", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/operations/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "updateMask", "conversationFilter,createTime,displayName,name,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1AuthorizedView", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.queryMetrics", "POST", "v1/{+location}:queryMetrics", "location=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "", "dimensions,filter,measureMask,timeGranularity", "GoogleCloudContactcenterinsightsV1QueryMetricsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.queryPerformanceOverview", "POST", "v1/{+parent}:queryPerformanceOverview", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "", "agentPerformanceSource,comparisonQueryInterval,filter,queryInterval", "GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.search", "GET", "v1/{+parent}/authorizedViews:search", "parent=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+$", "orderBy,pageSize,pageToken,query", "", "", "P", "authorizedViews"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.setIamPolicy", "POST", "v1/{+resource}:setIamPolicy", "resource=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "", "policy,updateMask", "GoogleIamV1SetIamPolicyRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.testIamPermissions", "POST", "v1/{+resource}:testIamPermissions", "resource=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "", "permissions", "GoogleIamV1TestIamPermissionsRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.create", "POST", "v1/{+parent}/authorizedViewSets", "parent=^projects/[^/]+/locations/[^/]+$", "authorizedViewSetId", "createTime,displayName,name,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1AuthorizedViewSet", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+$", "force", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.list", "GET", "v1/{+parent}/authorizedViewSets", "parent=^projects/[^/]+/locations/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "authorizedViewSets"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.authorizedViewSets.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+$", "updateMask", "createTime,displayName,name,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1AuthorizedViewSet", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.autoLabelingRules.create", "POST", "v1/{+parent}/autoLabelingRules", "parent=^projects/[^/]+/locations/[^/]+$", "autoLabelingRuleId", "active,conditions,createTime,description,displayName,labelKey,labelKeyType,name,updateTime", "GoogleCloudContactcenterinsightsV1AutoLabelingRule", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.autoLabelingRules.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/autoLabelingRules/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.autoLabelingRules.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/autoLabelingRules/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.autoLabelingRules.list", "GET", "v1/{+parent}/autoLabelingRules", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "autoLabelingRules"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.autoLabelingRules.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/autoLabelingRules/[^/]+$", "updateMask", "active,conditions,createTime,description,displayName,labelKey,labelKeyType,name,updateTime", "GoogleCloudContactcenterinsightsV1AutoLabelingRule", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.autoLabelingRules.test", "POST", "v1/{+parent}/autoLabelingRules:test", "parent=^projects/[^/]+/locations/[^/]+$", "", "autoLabelingRule,conversation", "GoogleCloudContactcenterinsightsV1TestAutoLabelingRuleRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.bulkDeleteFeedbackLabels", "POST", "v1/{+parent}:bulkDeleteFeedbackLabels", "parent=^projects/[^/]+/locations/[^/]+$", "", "filter,parent", "GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.bulkDownloadFeedbackLabels", "POST", "v1/{+parent}:bulkDownloadFeedbackLabels", "parent=^projects/[^/]+/locations/[^/]+$", "", "conversationFilter,feedbackLabelType,filter,gcsDestination,maxDownloadCount,parent,sheetsDestination,templateQaScorecardId", "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.bulkUploadFeedbackLabels", "POST", "v1/{+parent}:bulkUploadFeedbackLabels", "parent=^projects/[^/]+/locations/[^/]+$", "", "gcsSource,sheetsSource,validateOnly", "GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.analyses.create", "POST", "v1/{+parent}/analyses", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "analysisResult,annotatorSelector,createTime,name,requestTime,satisfiesPzi,satisfiesPzs", "GoogleCloudContactcenterinsightsV1Analysis", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.analyses.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.analyses.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.analyses.list", "GET", "v1/{+parent}/analyses", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "analyses"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.appeal", "POST", "v1/{+name}:appeal", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "", "GoogleCloudContactcenterinsightsV1AppealAssessmentRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.create", "POST", "v1/{+parent}/assessments", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "agentInfo,createTime,name,state,updateTime", "GoogleCloudContactcenterinsightsV1Assessment", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/assessments/[^/]+$", "force", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.finalize", "POST", "v1/{+name}:finalize", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "", "GoogleCloudContactcenterinsightsV1FinalizeAssessmentRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.list", "GET", "v1/{+parent}/assessments", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "assessments"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.notes.create", "POST", "v1/{+parent}/notes", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "assessmentNote,content,conversationTurnNote,createTime,name,noteCreator,qaQuestionNote,updateTime", "GoogleCloudContactcenterinsightsV1Note", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.notes.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/assessments/[^/]+/notes/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.notes.list", "GET", "v1/{+parent}/notes", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/assessments/[^/]+$", "pageSize,pageToken", "", "", "P", "notes"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.notes.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/assessments/[^/]+/notes/[^/]+$", "updateMask", "assessmentNote,content,conversationTurnNote,createTime,name,noteCreator,qaQuestionNote,updateTime", "GoogleCloudContactcenterinsightsV1Note", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.assessments.publish", "POST", "v1/{+name}:publish", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/assessments/[^/]+$", "", "", "GoogleCloudContactcenterinsightsV1PublishAssessmentRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.bulkAnalyze", "POST", "v1/{+parent}/conversations:bulkAnalyze", "parent=^projects/[^/]+/locations/[^/]+$", "", "analysisPercentage,annotatorSelector,filter,parent,relabel", "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.bulkDelete", "POST", "v1/{+parent}/conversations:bulkDelete", "parent=^projects/[^/]+/locations/[^/]+$", "", "filter,force,maxDeleteCount,parent", "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.calculateStats", "GET", "v1/{+location}/conversations:calculateStats", "location=^projects/[^/]+/locations/[^/]+$", "filter", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.create", "POST", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+$", "conversationId", "agentId,callMetadata,correlationInfo,createTime,dataSource,dialogflowIntents,duration,expireTime,labels,languageCode,latestAnalysis,latestSummary,medium,metadataJson,name,obfuscatedUserId,qualityMetadata,runtimeAnnotations,satisfiesPzi,satisfiesPzs,startTime,transcript,ttl,turnCount,updateTime", "GoogleCloudContactcenterinsightsV1Conversation", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "force", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.feedbackLabels.create", "POST", "v1/{+parent}/feedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "feedbackLabelId", "createTime,label,labeledResource,name,qaAnswerLabel,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1FeedbackLabel", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.feedbackLabels.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.feedbackLabels.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.feedbackLabels.list", "GET", "v1/{+parent}/feedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "feedbackLabels"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.feedbackLabels.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "updateMask", "createTime,label,labeledResource,name,qaAnswerLabel,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1FeedbackLabel", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.generateSignedAudio", "GET", "v1/{+name}:generateSignedAudio", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "view", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.ingest", "POST", "v1/{+parent}/conversations:ingest", "parent=^projects/[^/]+/locations/[^/]+$", "", "conversationConfig,gcsSource,parent,redactionConfig,sampleSize,speechConfig,transcriptObjectConfig", "GoogleCloudContactcenterinsightsV1IngestConversationsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.list", "GET", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+$", "filter,orderBy,pageSize,pageToken,view", "", "", "P", "conversations"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "allowMissing,conversationAutoLabelingUpdateConfig.allowAutoLabelingUpdate,updateMask", "agentId,callMetadata,correlationInfo,createTime,dataSource,dialogflowIntents,duration,expireTime,labels,languageCode,latestAnalysis,latestSummary,medium,metadataJson,name,obfuscatedUserId,qualityMetadata,runtimeAnnotations,satisfiesPzi,satisfiesPzs,startTime,transcript,ttl,turnCount,updateTime", "GoogleCloudContactcenterinsightsV1Conversation", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.sample", "POST", "v1/{+parent}/conversations:sample", "parent=^projects/[^/]+/locations/[^/]+$", "", "destinationDataset,parent,sampleRule", "GoogleCloudContactcenterinsightsV1SampleConversationsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.segments.bulkAnalyze", "POST", "v1/{+parent}/segments:bulkAnalyze", "parent=^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "", "analysisPercentage,annotatorSelector,filter,parent,relabel", "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.conversations.upload", "POST", "v1/{+parent}/conversations:upload", "parent=^projects/[^/]+/locations/[^/]+$", "", "conversation,conversationId,parent,redactionConfig,speechConfig", "GoogleCloudContactcenterinsightsV1UploadConversationRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.charts.create", "POST", "v1/{+parent}/charts", "parent=^projects/[^/]+/locations/[^/]+/dashboards/[^/]+$", "chartId", "action,chartType,chartVisualizationType,createTime,dataSource,dateRangeConfig,description,displayName,filter,height,name,updateTime,width", "GoogleCloudContactcenterinsightsV1Chart", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.charts.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dashboards/[^/]+/charts/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.charts.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dashboards/[^/]+/charts/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.charts.list", "GET", "v1/{+parent}/charts", "parent=^projects/[^/]+/locations/[^/]+/dashboards/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.charts.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dashboards/[^/]+/charts/[^/]+$", "updateMask", "action,chartType,chartVisualizationType,createTime,dataSource,dateRangeConfig,description,displayName,filter,height,name,updateTime,width", "GoogleCloudContactcenterinsightsV1Chart", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.create", "POST", "v1/{+parent}/dashboards", "parent=^projects/[^/]+/locations/[^/]+$", "dashboardId", "createTime,dateRangeConfig,description,displayName,filter,name,readOnly,rootContainer,updateTime", "GoogleCloudContactcenterinsightsV1Dashboard", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dashboards/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dashboards/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.list", "GET", "v1/{+parent}/dashboards", "parent=^projects/[^/]+/locations/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "dashboards"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.dashboards.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/dashboards/[^/]+$", "updateMask", "createTime,dateRangeConfig,description,displayName,filter,name,readOnly,rootContainer,updateTime", "GoogleCloudContactcenterinsightsV1Dashboard", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.bulkDeleteFeedbackLabels", "POST", "v1/{+parent}:bulkDeleteFeedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "filter,parent", "GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.bulkDownloadFeedbackLabels", "POST", "v1/{+parent}:bulkDownloadFeedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "conversationFilter,feedbackLabelType,filter,gcsDestination,maxDownloadCount,parent,sheetsDestination,templateQaScorecardId", "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.bulkUploadFeedbackLabels", "POST", "v1/{+parent}:bulkUploadFeedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "gcsSource,sheetsSource,validateOnly", "GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.bulkDelete", "POST", "v1/{+parent}/conversations:bulkDelete", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "filter,force,maxDeleteCount,parent", "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.calculateStats", "POST", "v1/{+location}/conversations:calculateStats", "location=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "filter", "GoogleCloudContactcenterinsightsV1CalculateStatsRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/datasets/[^/]+/conversations/[^/]+$", "force", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.feedbackLabels.create", "POST", "v1/{+parent}/feedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+/conversations/[^/]+$", "feedbackLabelId", "createTime,label,labeledResource,name,qaAnswerLabel,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1FeedbackLabel", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.feedbackLabels.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/datasets/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.feedbackLabels.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/datasets/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.feedbackLabels.list", "GET", "v1/{+parent}/feedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+/conversations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "feedbackLabels"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.feedbackLabels.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/datasets/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "updateMask", "createTime,label,labeledResource,name,qaAnswerLabel,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1FeedbackLabel", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.generateSignedAudio", "GET", "v1/{+name}:generateSignedAudio", "name=^projects/[^/]+/locations/[^/]+/datasets/[^/]+/conversations/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/datasets/[^/]+/conversations/[^/]+$", "view", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.ingest", "POST", "v1/{+parent}/conversations:ingest", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "conversationConfig,gcsSource,parent,redactionConfig,sampleSize,speechConfig,transcriptObjectConfig", "GoogleCloudContactcenterinsightsV1IngestConversationsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.list", "GET", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "filter,orderBy,pageSize,pageToken,view", "", "", "P", "conversations"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.conversations.sample", "POST", "v1/{+parent}/conversations:sample", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "destinationDataset,parent,sampleRule", "GoogleCloudContactcenterinsightsV1SampleConversationsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.create", "POST", "v1/{+parent}/datasets", "parent=^projects/[^/]+/locations/[^/]+$", "datasetId", "createTime,description,displayName,name,satisfiesPzi,satisfiesPzs,ttl,type,updateTime", "GoogleCloudContactcenterinsightsV1Dataset", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "", "", "DL", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.insightsdata.export", "POST", "v1/{+parent}/insightsdata:export", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "", "bigQueryDestination,exportSchemaVersion,filter,kmsKey,parent,writeDisposition", "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.list", "GET", "v1/{+parent}/datasets", "parent=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "datasets"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.listAllFeedbackLabels", "GET", "v1/{+parent}:listAllFeedbackLabels", "parent=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "feedbackLabels"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.datasets.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", "updateMask", "createTime,description,displayName,name,satisfiesPzi,satisfiesPzs,ttl,type,updateTime", "GoogleCloudContactcenterinsightsV1Dataset", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.encryptionSpec.initialize", "POST", "v1/{+name}:initialize", "name=^projects/[^/]+/locations/[^/]+/encryptionSpec$", "", "encryptionSpec", "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.generativeInsights", "POST", "v1/{+location}:generativeInsights", "location=^projects/[^/]+/locations/[^/]+$", "", "chart,comparisonFilter,filter,naturalLanguageQuery,revisionId,sessionId,sqlComparisonKey,sqlQuery,timeZone,userProvidedChartSpec", "GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.getCorrelationConfig", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/correlationConfig$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.getEncryptionSpec", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/encryptionSpec$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.getSettings", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/settings$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.insightsdata.export", "POST", "v1/{+parent}/insightsdata:export", "parent=^projects/[^/]+/locations/[^/]+$", "", "bigQueryDestination,exportSchemaVersion,filter,kmsKey,parent,writeDisposition", "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.calculateIssueModelStats", "GET", "v1/{+issueModel}:calculateIssueModelStats", "issueModel=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.create", "POST", "v1/{+parent}/issueModels", "parent=^projects/[^/]+/locations/[^/]+$", "", "createTime,displayName,inputDataConfig,issueCount,languageCode,modelType,name,state,trainingStats,updateTime", "GoogleCloudContactcenterinsightsV1IssueModel", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "", "", "", "DL", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.deploy", "POST", "v1/{+name}:deploy", "name=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "", "name", "GoogleCloudContactcenterinsightsV1DeployIssueModelRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.export", "POST", "v1/{+name}:export", "name=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "", "gcsDestination,name", "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.import", "POST", "v1/{+parent}/issueModels:import", "parent=^projects/[^/]+/locations/[^/]+$", "", "createNewModel,gcsSource,parent", "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.issues.create", "POST", "v1/{+parent}/issues", "parent=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "", "createTime,displayDescription,displayName,name,sampleUtterances,updateTime", "GoogleCloudContactcenterinsightsV1Issue", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.issues.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.issues.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.issues.list", "GET", "v1/{+parent}/issues", "parent=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.issues.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$", "updateMask", "createTime,displayDescription,displayName,name,sampleUtterances,updateTime", "GoogleCloudContactcenterinsightsV1Issue", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.list", "GET", "v1/{+parent}/issueModels", "parent=^projects/[^/]+/locations/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "updateMask", "createTime,displayName,inputDataConfig,issueCount,languageCode,modelType,name,state,trainingStats,updateTime", "GoogleCloudContactcenterinsightsV1IssueModel", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.issueModels.undeploy", "POST", "v1/{+name}:undeploy", "name=^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "", "name", "GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.listAllFeedbackLabels", "GET", "v1/{+parent}:listAllFeedbackLabels", "parent=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "feedbackLabels"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.operations.cancel", "POST", "v1/{+name}:cancel", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.phraseMatchers.create", "POST", "v1/{+parent}/phraseMatchers", "parent=^projects/[^/]+/locations/[^/]+$", "", "activationUpdateTime,active,displayName,name,phraseMatchRuleGroups,revisionCreateTime,revisionId,roleMatch,type,updateTime,versionTag", "GoogleCloudContactcenterinsightsV1PhraseMatcher", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.phraseMatchers.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.phraseMatchers.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.phraseMatchers.list", "GET", "v1/{+parent}/phraseMatchers", "parent=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "phraseMatchers"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.phraseMatchers.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$", "updateMask", "activationUpdateTime,active,displayName,name,phraseMatchRuleGroups,revisionCreateTime,revisionId,roleMatch,type,updateTime,versionTag", "GoogleCloudContactcenterinsightsV1PhraseMatcher", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaQuestionTags.create", "POST", "v1/{+parent}/qaQuestionTags", "parent=^projects/[^/]+/locations/[^/]+$", "qaQuestionTagId", "createTime,displayName,name,qaQuestionIds,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1QaQuestionTag", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaQuestionTags.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaQuestionTags/[^/]+$", "", "", "", "DL", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaQuestionTags.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaQuestionTags/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaQuestionTags.list", "GET", "v1/{+parent}/qaQuestionTags", "parent=^projects/[^/]+/locations/[^/]+$", "filter", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaQuestionTags.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaQuestionTags/[^/]+$", "updateMask", "createTime,displayName,name,qaQuestionIds,satisfiesPzi,satisfiesPzs,updateTime", "GoogleCloudContactcenterinsightsV1QaQuestionTag", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.create", "POST", "v1/{+parent}/qaScorecards", "parent=^projects/[^/]+/locations/[^/]+$", "qaScorecardId", "createTime,description,displayName,isDefault,name,satisfiesPzi,satisfiesPzs,source,updateTime", "GoogleCloudContactcenterinsightsV1QaScorecard", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", "force", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.list", "GET", "v1/{+parent}/qaScorecards", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken,qaScorecardSources", "", "", "P", "qaScorecards"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", "updateMask", "createTime,description,displayName,isDefault,name,satisfiesPzi,satisfiesPzs,source,updateTime", "GoogleCloudContactcenterinsightsV1QaScorecard", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.create", "POST", "v1/{+parent}/revisions", "parent=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", "qaScorecardRevisionId", "alternateIds,createTime,name,satisfiesPzi,satisfiesPzs,snapshot,state", "GoogleCloudContactcenterinsightsV1QaScorecardRevision", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", "force", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.deploy", "POST", "v1/{+name}:deploy", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", "", "", "GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.list", "GET", "v1/{+parent}/revisions", "parent=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", "filter,pageSize,pageToken,qaScorecardSources", "", "", "P", "qaScorecardRevisions"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.create", "POST", "v1/{+parent}/qaQuestions", "parent=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", "qaQuestionId", "abbreviation,answerChoices,answerInstructions,createTime,metrics,name,order,predefinedQuestionConfig,qaQuestionDataOptions,questionBody,questionType,satisfiesPzi,satisfiesPzs,tags,tuningMetadata,updateTime", "GoogleCloudContactcenterinsightsV1QaQuestion", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.list", "GET", "v1/{+parent}/qaQuestions", "parent=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", "pageSize,pageToken", "", "", "P", "qaQuestions"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$", "updateMask", "abbreviation,answerChoices,answerInstructions,createTime,metrics,name,order,predefinedQuestionConfig,qaQuestionDataOptions,questionBody,questionType,satisfiesPzi,satisfiesPzs,tags,tuningMetadata,updateTime", "GoogleCloudContactcenterinsightsV1QaQuestion", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.tuneQaScorecardRevision", "POST", "v1/{+parent}:tuneQaScorecardRevision", "parent=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", "", "filter,validateOnly", "GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.qaScorecards.revisions.undeploy", "POST", "v1/{+name}:undeploy", "name=^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", "", "", "GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.queryMetrics", "POST", "v1/{+location}:queryMetrics", "location=^projects/[^/]+/locations/[^/]+$", "", "dimensions,filter,measureMask,timeGranularity", "GoogleCloudContactcenterinsightsV1QueryMetricsRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.queryPerformanceOverview", "POST", "v1/{+parent}:queryPerformanceOverview", "parent=^projects/[^/]+/locations/[^/]+$", "", "agentPerformanceSource,comparisonQueryInterval,filter,queryInterval", "GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.testCorrelationConfig", "POST", "v1/{+location}:testCorrelationConfig", "location=^projects/[^/]+/locations/[^/]+$", "", "conversations,correlationConfig,filter,maxSampleCount", "GoogleCloudContactcenterinsightsV1TestCorrelationConfigRequest", "L", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.updateCorrelationConfig", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/correlationConfig$", "updateMask", "createTime,fullConversationConfig,name,updateTime", "GoogleCloudContactcenterinsightsV1CorrelationConfig", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.updateSettings", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/settings$", "updateMask", "analysisConfig,conversationTtl,createTime,diagnosticMetricConfig,languageCode,name,pubsubNotificationSettings,redactionConfig,satisfiesPzi,satisfiesPzs,screenRecordingBucketUri,speechConfig,timeZone,updateTime", "GoogleCloudContactcenterinsightsV1Settings", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.views.create", "POST", "v1/{+parent}/views", "parent=^projects/[^/]+/locations/[^/]+$", "", "createTime,displayName,name,updateTime,value", "GoogleCloudContactcenterinsightsV1View", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.views.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/views/[^/]+$", "", "", "", "D", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.views.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/views/[^/]+$", "", "", "", "", ""}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.views.list", "GET", "v1/{+parent}/views", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "views"}, +{Api::kInsights, "v1", "contactcenterinsights.projects.locations.views.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/views/[^/]+$", "updateMask", "createTime,displayName,name,updateTime,value", "GoogleCloudContactcenterinsightsV1View", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.agents.create", "POST", "v1/{+parent}/agents", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "agentId", "afterAgentCallbacks,afterModelCallbacks,afterToolCallbacks,beforeAgentCallbacks,beforeModelCallbacks,beforeToolCallbacks,childAgents,createTime,description,displayName,etag,generatedSummary,guardrails,instruction,llmAgent,modelSettings,name,remoteA2aAgent,remoteDialogflowAgent,tools,toolsets,transferRules,updateTime,validationErrors", "Agent", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.agents.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$", "etag,force", "", "", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.agents.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.agents.list", "GET", "v1/{+parent}/agents", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "agents"}, +{Api::kCes, "v1", "ces.projects.locations.apps.agents.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$", "updateMask", "afterAgentCallbacks,afterModelCallbacks,afterToolCallbacks,beforeAgentCallbacks,beforeModelCallbacks,beforeToolCallbacks,childAgents,createTime,description,displayName,etag,generatedSummary,guardrails,instruction,llmAgent,modelSettings,name,remoteA2aAgent,remoteDialogflowAgent,tools,toolsets,transferRules,updateTime,validationErrors", "Agent", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.assistantSessions.cancelAssistantTurn", "POST", "v1/{+name}:cancelAssistantTurn", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/assistantSessions/[^/]+$", "", "turnId", "CancelAssistantTurnRequest", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.assistantSessions.streamChatAiAssistant", "POST", "v1/{+name}:streamChatAiAssistant", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/assistantSessions/[^/]+$", "", "attachOnly,attachedGcsUris,clientCapabilities,confirmationResponse,contextToken,message,operationCompletedEvent,resumeFromSequenceNumber", "StreamChatAiAssistantRequest", "S", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.changelogs.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/changelogs/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.changelogs.list", "GET", "v1/{+parent}/changelogs", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "changelogs"}, +{Api::kCes, "v1", "ces.projects.locations.apps.conversations.batchDelete", "POST", "v1/{+parent}/conversations:batchDelete", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "", "conversations", "BatchDeleteConversationsRequest", "DL", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.conversations.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$", "source", "", "", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.conversations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$", "source", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.conversations.list", "GET", "v1/{+parent}/conversations", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "filter,pageSize,pageToken,source,sources", "", "", "P", "conversations"}, +{Api::kCes, "v1", "ces.projects.locations.apps.create", "POST", "v1/{+parent}/apps", "parent=^projects/[^/]+/locations/[^/]+$", "appId", "audioProcessingConfig,clientCertificateSettings,createTime,dashboardSettings,dataStoreSettings,defaultChannelProfile,deploymentCount,description,displayName,errorHandlingSettings,etag,evaluationMetricsThresholds,globalInstruction,guardrails,languageSettings,locked,loggingSettings,metadata,modelSettings,name,pinned,predefinedVariableDeclarations,rootAgent,timeZoneSettings,toolExecutionMode,updateTime,validationErrors,variableDeclarations,vpcScSettings", "App", "L", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "etag", "", "", "DL", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.deployments.create", "POST", "v1/{+parent}/deployments", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "deploymentId", "agentRegistryDeployment,appVersion,channelProfile,createTime,displayName,etag,experimentConfig,instagramCredentials,modality,modelSettings,name,updateTime,whatsappCredentials", "Deployment", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.deployments.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$", "etag", "", "", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.deployments.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.deployments.getExtendedAgentCard", "GET", "v1/{+tenant}/extendedAgentCard", "tenant=^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.deployments.list", "GET", "v1/{+parent}/deployments", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "orderBy,pageSize,pageToken", "", "", "P", "deployments"}, +{Api::kCes, "v1", "ces.projects.locations.apps.deployments.message.send", "POST", "v1/{+tenant}/message:send", "tenant=^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$", "", "configuration,message,metadata", "LfA2aV1SendMessageRequest", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.deployments.message.stream", "POST", "v1/{+tenant}/message:stream", "tenant=^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$", "", "configuration,message,metadata", "LfA2aV1SendMessageRequest", "S", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.deployments.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$", "updateMask", "agentRegistryDeployment,appVersion,channelProfile,createTime,displayName,etag,experimentConfig,instagramCredentials,modality,modelSettings,name,updateTime,whatsappCredentials", "Deployment", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.examples.create", "POST", "v1/{+parent}/examples", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "exampleId", "createTime,description,displayName,entryAgent,etag,invalid,messages,name,updateTime", "Example", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.examples.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$", "etag", "", "", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.examples.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.examples.list", "GET", "v1/{+parent}/examples", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "examples"}, +{Api::kCes, "v1", "ces.projects.locations.apps.examples.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$", "updateMask", "createTime,description,displayName,entryAgent,etag,invalid,messages,name,updateTime", "Example", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.executeTool", "POST", "v1/{+parent}:executeTool", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "", "args,context,mockConfig,tool,toolsetTool,variables", "ExecuteToolRequest", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.exportApp", "POST", "v1/{+name}:exportApp", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "", "appVersion,exportFormat,gcsUri", "ExportAppRequest", "L", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.generateOnboardingSuggestions", "POST", "v1/{+name}:generateOnboardingSuggestions", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "", "maxSuggestions", "GenerateOnboardingSuggestionsRequest", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.getExtendedAgentCard", "GET", "v1/{+tenant}/extendedAgentCard", "tenant=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.guardrails.create", "POST", "v1/{+parent}/guardrails", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "guardrailId", "action,codeCallback,contentFilter,createTime,description,displayName,enabled,etag,llmPolicy,llmPromptSecurity,modelSafety,name,supervisor,updateTime", "Guardrail", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.guardrails.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$", "etag,force", "", "", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.guardrails.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.guardrails.list", "GET", "v1/{+parent}/guardrails", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "guardrails"}, +{Api::kCes, "v1", "ces.projects.locations.apps.guardrails.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$", "updateMask", "action,codeCallback,contentFilter,createTime,description,displayName,enabled,etag,llmPolicy,llmPromptSecurity,modelSafety,name,supervisor,updateTime", "Guardrail", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.importApp", "POST", "v1/{+parent}/apps:importApp", "parent=^projects/[^/]+/locations/[^/]+$", "", "appContent,appId,displayName,gcsUri,ignoreAppLock,importOptions,jsonPatchContent,jsonPatchGcsUri", "ImportAppRequest", "L", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.list", "GET", "v1/{+parent}/apps", "parent=^projects/[^/]+/locations/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "apps"}, +{Api::kCes, "v1", "ces.projects.locations.apps.message.send", "POST", "v1/{+tenant}/message:send", "tenant=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "", "configuration,message,metadata", "LfA2aV1SendMessageRequest", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.message.stream", "POST", "v1/{+tenant}/message:stream", "tenant=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "", "configuration,message,metadata", "LfA2aV1SendMessageRequest", "S", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "updateMask", "audioProcessingConfig,clientCertificateSettings,createTime,dashboardSettings,dataStoreSettings,defaultChannelProfile,deploymentCount,description,displayName,errorHandlingSettings,etag,evaluationMetricsThresholds,globalInstruction,guardrails,languageSettings,locked,loggingSettings,metadata,modelSettings,name,pinned,predefinedVariableDeclarations,rootAgent,timeZoneSettings,toolExecutionMode,updateTime,validationErrors,variableDeclarations,vpcScSettings", "App", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.retrieveToolSchema", "POST", "v1/{+parent}:retrieveToolSchema", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "", "tool,toolsetTool", "RetrieveToolSchemaRequest", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.sessions.generateChatToken", "POST", "v1/{+name}:generateChatToken", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$", "", "deployment,liveHandoffEnabled,recaptchaToken", "GenerateChatTokenRequest", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.sessions.runSession", "POST", "v1/{+session}:runSession", "session=^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$", "", "config,inputs", "RunSessionRequest", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.sessions.streamRunSession", "POST", "v1/{+session}:streamRunSession", "session=^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$", "", "config,inputs", "RunSessionRequest", "S", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.tools.create", "POST", "v1/{+parent}/tools", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "toolId", "agentTool,clientFunction,connectorTool,createTime,dataStoreTool,displayName,etag,executionType,fileSearchTool,generatedSummary,googleSearchTool,mcpTool,name,openApiTool,pythonFunction,readOnly,remoteAgentTool,systemTool,timeout,toolFakeConfig,updateTime,widgetTool", "Tool", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.tools.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$", "etag,force", "", "", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.tools.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.tools.list", "GET", "v1/{+parent}/tools", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "tools"}, +{Api::kCes, "v1", "ces.projects.locations.apps.tools.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$", "updateMask", "agentTool,clientFunction,connectorTool,createTime,dataStoreTool,displayName,etag,executionType,fileSearchTool,generatedSummary,googleSearchTool,mcpTool,name,openApiTool,pythonFunction,readOnly,remoteAgentTool,systemTool,timeout,toolFakeConfig,updateTime,widgetTool", "Tool", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.toolsets.create", "POST", "v1/{+parent}/toolsets", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "toolsetId", "connectorToolset,createTime,description,displayName,etag,executionType,mcpToolset,name,openApiToolset,timeout,toolFakeConfig,updateTime", "Toolset", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.toolsets.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$", "etag,force", "", "", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.toolsets.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.toolsets.list", "GET", "v1/{+parent}/toolsets", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "toolsets"}, +{Api::kCes, "v1", "ces.projects.locations.apps.toolsets.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$", "updateMask", "connectorToolset,createTime,description,displayName,etag,executionType,mcpToolset,name,openApiToolset,timeout,toolFakeConfig,updateTime", "Toolset", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.toolsets.retrieveTools", "POST", "v1/{+toolset}:retrieveTools", "toolset=^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$", "", "bypassPersistenceConfig,toolIds", "RetrieveToolsRequest", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.versions.create", "POST", "v1/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "appVersionId", "createTime,creator,description,displayName,etag,name,snapshot,updateTime", "AppVersion", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.versions.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$", "etag", "", "", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.versions.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.versions.getExtendedAgentCard", "GET", "v1/{+tenant}/extendedAgentCard", "tenant=^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.versions.list", "GET", "v1/{+parent}/versions", "parent=^projects/[^/]+/locations/[^/]+/apps/[^/]+$", "filter,orderBy,pageSize,pageToken", "", "", "P", "appVersions"}, +{Api::kCes, "v1", "ces.projects.locations.apps.versions.message.send", "POST", "v1/{+tenant}/message:send", "tenant=^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$", "", "configuration,message,metadata", "LfA2aV1SendMessageRequest", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.versions.message.stream", "POST", "v1/{+tenant}/message:stream", "tenant=^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$", "", "configuration,message,metadata", "LfA2aV1SendMessageRequest", "S", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.versions.patch", "PATCH", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$", "updateMask", "createTime,creator,description,displayName,etag,name,snapshot,updateTime", "AppVersion", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.apps.versions.restore", "POST", "v1/{+name}:restore", "name=^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$", "", "", "RestoreAppVersionRequest", "L", ""}, +{Api::kCes, "v1", "ces.projects.locations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+$", "", "", "", "", ""}, +{Api::kCes, "v1", "ces.projects.locations.list", "GET", "v1/{+name}/locations", "name=^projects/[^/]+$", "extraLocationTypes,filter,pageSize,pageToken", "", "", "P", "locations"}, +{Api::kCes, "v1", "ces.projects.locations.operations.cancel", "POST", "v1/{+name}:cancel", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "CancelOperationRequest", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.operations.delete", "DELETE", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "D", ""}, +{Api::kCes, "v1", "ces.projects.locations.operations.get", "GET", "v1/{+name}", "name=^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kCes, "v1", "ces.projects.locations.operations.list", "GET", "v1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.catalogItems.create", "POST", "v1beta1/{+parent}/catalogItems", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "categoryHierarchies,description,id,itemAttributes,itemGroupId,languageCode,productMetadata,tags,title", "GoogleCloudRecommendationengineV1beta1CatalogItem", "", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.catalogItems.delete", "DELETE", "v1beta1/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/catalogItems/.*$", "", "", "", "D", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.catalogItems.get", "GET", "v1beta1/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/catalogItems/.*$", "", "", "", "", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.catalogItems.import", "POST", "v1beta1/{+parent}/catalogItems:import", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "", "errorsConfig,inputConfig,requestId,updateMask", "GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest", "L", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.catalogItems.list", "GET", "v1beta1/{+parent}/catalogItems", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "catalogItems"}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.catalogItems.patch", "PATCH", "v1beta1/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/catalogItems/.*$", "updateMask", "categoryHierarchies,description,id,itemAttributes,itemGroupId,languageCode,productMetadata,tags,title", "GoogleCloudRecommendationengineV1beta1CatalogItem", "", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.operations.get", "GET", "v1beta1/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.operations.list", "GET", "v1beta1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.placements.predict", "POST", "v1beta1/{+name}:predict", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+/placements/[^/]+$", "", "dryRun,filter,labels,pageSize,pageToken,params,userEvent", "GoogleCloudRecommendationengineV1beta1PredictRequest", "", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.create", "POST", "v1beta1/{+parent}/predictionApiKeyRegistrations", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+$", "", "predictionApiKeyRegistration", "GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest", "", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.delete", "DELETE", "v1beta1/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+/predictionApiKeyRegistrations/[^/]+$", "", "", "", "D", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.list", "GET", "v1beta1/{+parent}/predictionApiKeyRegistrations", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+$", "pageSize,pageToken", "", "", "P", "predictionApiKeyRegistrations"}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.userEvents.collect", "GET", "v1beta1/{+parent}/userEvents:collect", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+$", "ets,uri,userEvent", "", "", "", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.userEvents.import", "POST", "v1beta1/{+parent}/userEvents:import", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+$", "", "errorsConfig,inputConfig,requestId", "GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest", "L", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.userEvents.list", "GET", "v1beta1/{+parent}/userEvents", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+$", "filter,pageSize,pageToken", "", "", "P", "userEvents"}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.userEvents.purge", "POST", "v1beta1/{+parent}/userEvents:purge", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+$", "", "filter,force", "GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest", "DL", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.userEvents.rejoin", "POST", "v1beta1/{+parent}/userEvents:rejoin", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+$", "", "userEventRejoinScope", "GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest", "L", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.eventStores.userEvents.write", "POST", "v1beta1/{+parent}/userEvents:write", "parent=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+$", "", "eventDetail,eventSource,eventTime,eventType,productEventDetail,userInfo", "GoogleCloudRecommendationengineV1beta1UserEvent", "", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.list", "GET", "v1beta1/{+parent}/catalogs", "parent=^projects/[^/]+/locations/[^/]+$", "pageSize,pageToken", "", "", "P", "catalogs"}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.operations.get", "GET", "v1beta1/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/operations/[^/]+$", "", "", "", "L", ""}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.operations.list", "GET", "v1beta1/{+name}/operations", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "filter,pageSize,pageToken,returnPartialSuccess", "", "", "P", "operations"}, +{Api::kRecommendations, "v1beta1", "recommendationengine.projects.locations.catalogs.patch", "PATCH", "v1beta1/{+name}", "name=^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", "updateMask", "catalogItemLevelConfig,defaultEventStoreId,displayName,name", "GoogleCloudRecommendationengineV1beta1Catalog", "", ""}, diff --git a/src/google/enterprise/caps.h b/src/google/enterprise/caps.h new file mode 100644 index 0000000..d9857e2 --- /dev/null +++ b/src/google/enterprise/caps.h @@ -0,0 +1,23 @@ +#pragma once + +// Static ceilings for the enterprise package. Never autotuned. + +#include + +namespace molo::google::enterprise { + +struct EnterpriseCaps { + static constexpr std::size_t kMaxBodyBytes = 1024 * 1024; // serialized request body + static constexpr std::size_t kMaxResourceChars = 512; // a resource name + static constexpr std::size_t kMaxSegmentChars = 200; // one name segment + static constexpr std::size_t kMaxQueryValueChars = 2048; // one query value + static constexpr std::size_t kMaxQueryParams = 20; + static constexpr int kPageSize = 50; + static constexpr int kMaxListPages = 10; // 500 items per list + static constexpr std::size_t kMaxListItems = 500; + static constexpr std::size_t kMaxStreamEvents = 2000; + static constexpr std::size_t kMaxTextChars = 8000; // query / utterance text + static constexpr std::size_t kMaxDocuments = 100; // rank records, grounding facts +}; + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/contact_center.cpp b/src/google/enterprise/contact_center.cpp new file mode 100644 index 0000000..fe22282 --- /dev/null +++ b/src/google/enterprise/contact_center.cpp @@ -0,0 +1,115 @@ +#include "google/enterprise/contact_center.h" + +#include "google/enterprise/caps.h" +#include "google/errors.h" + +namespace molo::google::enterprise { + +using clients::body::Json; + +namespace { +[[noreturn]] void bad(const std::string& m) { throw GoogleError::invalid(m); } + +Invocation make(const char* rpc, const char* key, const std::string& name) { + Invocation i; + i.rpc = rpc; + i.path[key] = name; + return i; +} +void check_id(const std::string& id, const char* what) { + if (!valid_resource_name(id) || id.find('/') != std::string::npos) bad(std::string("bad ") + what); +} +} // namespace + +Insights::Insights(std::shared_ptr client, std::string location, Sleeper sleeper) + : caller_(std::move(client), Api::kInsights, std::move(location), std::move(sleeper)) {} + +std::string Insights::location_name(const std::string& project, const std::string& location) { + check_id(project, "project"); + check_id(location, "location"); + return "projects/" + project + "/locations/" + location; +} + +ListResult Insights::list_conversations(const std::string& p, const std::string& filter) const { + Invocation i = make("contactcenterinsights.projects.locations.conversations.list", "parent", p); + if (!filter.empty()) i.query["filter"] = filter; + return caller_.list(i); +} +Json Insights::get_conversation(const std::string& n) const { + return caller_.invoke(make("contactcenterinsights.projects.locations.conversations.get", "name", n)); +} +Json Insights::calculate_stats(const std::string& p, const std::string& filter) const { + Invocation i = make("contactcenterinsights.projects.locations.conversations.calculateStats", "location", p); + if (!filter.empty()) i.query["filter"] = filter; + return caller_.invoke(i); +} +Json Insights::list_issue_models(const std::string& p) const { + return caller_.invoke(make("contactcenterinsights.projects.locations.issueModels.list", "parent", p)); +} +ListResult Insights::list_phrase_matchers(const std::string& p) const { + return caller_.list(make("contactcenterinsights.projects.locations.phraseMatchers.list", "parent", p)); +} +ListResult Insights::list_analysis_rules(const std::string& p) const { + return caller_.list(make("contactcenterinsights.projects.locations.analysisRules.list", "parent", p)); +} +ListResult Insights::list_views(const std::string& p) const { + return caller_.list(make("contactcenterinsights.projects.locations.views.list", "parent", p)); +} +Json Insights::analyze(const std::string& conversation) const { + return caller_.invoke(make("contactcenterinsights.projects.locations.conversations.analyses.create", "parent", + conversation)); +} + +Ces::Ces(std::shared_ptr client, std::string location, Sleeper sleeper) + : caller_(std::move(client), Api::kCes, std::move(location), std::move(sleeper)) {} + +std::string Ces::session_name(const std::string& project, const std::string& location, + const std::string& app, const std::string& id) { + check_id(project, "project"); + check_id(location, "location"); + check_id(app, "app id"); + check_id(id, "session id"); + return "projects/" + project + "/locations/" + location + "/apps/" + app + "/sessions/" + id; +} + +Invocation Ces::run_session_invocation(const std::string& session, const std::string& text) { + if (text.empty() || text.size() > EnterpriseCaps::kMaxTextChars) bad("text is empty or too long"); + Invocation i = make("ces.projects.locations.apps.sessions.runSession", "session", session); + Json t = Json::object(); + t.set("text", Json(text)); + Json input = Json::object(); + input.set("text", Json(text)); + Json inputs = Json::array(); + inputs.push(input); + Json b = Json::object(); + b.set("inputs", inputs); + i.body = b; + return i; +} + +ListResult Ces::list_apps(const std::string& p) const { + return caller_.list(make("ces.projects.locations.apps.list", "parent", p)); +} +Json Ces::get_app(const std::string& n) const { + return caller_.invoke(make("ces.projects.locations.apps.get", "name", n)); +} +ListResult Ces::list_agents(const std::string& a) const { + return caller_.list(make("ces.projects.locations.apps.agents.list", "parent", a)); +} +ListResult Ces::list_tools(const std::string& a) const { + return caller_.list(make("ces.projects.locations.apps.tools.list", "parent", a)); +} +ListResult Ces::list_examples(const std::string& a) const { + return caller_.list(make("ces.projects.locations.apps.examples.list", "parent", a)); +} +ListResult Ces::list_guardrails(const std::string& a) const { + return caller_.list(make("ces.projects.locations.apps.guardrails.list", "parent", a)); +} +ListResult Ces::list_conversations(const std::string& a) const { + return caller_.list(make("ces.projects.locations.apps.conversations.list", "parent", a)); +} +Json Ces::run_session(const std::string& s, const std::string& t) const { + return caller_.invoke(run_session_invocation(s, t)); +} + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/contact_center.h b/src/google/enterprise/contact_center.h new file mode 100644 index 0000000..bd74ec4 --- /dev/null +++ b/src/google/enterprise/contact_center.h @@ -0,0 +1,60 @@ +#pragma once + +// Contact Center Insights (v1) and Customer Engagement Suite (CES, v1). + +#include +#include + +#include "google/enterprise/caller.h" + +namespace molo::google::enterprise { + +class Insights { + public: + Insights(std::shared_ptr client, std::string location = "us-central1", + Sleeper sleeper = nullptr); + Caller& caller() { return caller_; } + const Caller& caller() const { return caller_; } + + static std::string location_name(const std::string& project, const std::string& location); + + ListResult list_conversations(const std::string& location_parent, const std::string& filter = "") const; + clients::body::Json get_conversation(const std::string& name) const; + clients::body::Json calculate_stats(const std::string& location_parent, const std::string& filter = "") const; + // issueModels.list has no paging in Discovery: one document. + clients::body::Json list_issue_models(const std::string& location_parent) const; + ListResult list_phrase_matchers(const std::string& location_parent) const; + ListResult list_analysis_rules(const std::string& location_parent) const; + ListResult list_views(const std::string& location_parent) const; + // Starts an analysis (long-running, billed). Not read-only. + clients::body::Json analyze(const std::string& conversation) const; + + private: + Caller caller_; +}; + +class Ces { + public: + Ces(std::shared_ptr client, std::string location = "global", Sleeper sleeper = nullptr); + Caller& caller() { return caller_; } + const Caller& caller() const { return caller_; } + + static std::string session_name(const std::string& project, const std::string& location, + const std::string& app, const std::string& session_id); + static Invocation run_session_invocation(const std::string& session, const std::string& text); + + ListResult list_apps(const std::string& location_parent) const; + clients::body::Json get_app(const std::string& name) const; + ListResult list_agents(const std::string& app) const; + ListResult list_tools(const std::string& app) const; + ListResult list_examples(const std::string& app) const; + ListResult list_guardrails(const std::string& app) const; + ListResult list_conversations(const std::string& app) const; + // Sends one text turn to the app. + clients::body::Json run_session(const std::string& session, const std::string& text) const; + + private: + Caller caller_; +}; + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/dialogflow.cpp b/src/google/enterprise/dialogflow.cpp new file mode 100644 index 0000000..a893e35 --- /dev/null +++ b/src/google/enterprise/dialogflow.cpp @@ -0,0 +1,165 @@ +#include "google/enterprise/dialogflow.h" + +#include "google/enterprise/caps.h" +#include "google/errors.h" + +namespace molo::google::enterprise { + +using clients::body::Json; + +namespace { +[[noreturn]] void bad(const std::string& m) { throw GoogleError::invalid(m); } + +Invocation make(const char* rpc, const char* key, const std::string& name) { + Invocation i; + i.rpc = rpc; + i.path[key] = name; + return i; +} + +void check_id(const std::string& id, const char* what) { + if (!valid_resource_name(id) || id.find('/') != std::string::npos) bad(std::string("bad ") + what); +} + +bool is_regional(const std::string& name) { return name.find("/locations/") != std::string::npos; } + +Json detect_body(const std::string& text, const std::string& language) { + Json b = Json::object(); + b.set("queryInput", text_query_input(text, language)); + return b; +} +} // namespace + +Json text_query_input(const std::string& text, const std::string& language) { + if (text.empty() || text.size() > 256) // Dialogflow rejects text over 256 characters + bad("text must be 1..256 characters"); + check_id(language, "language code"); + Json t = Json::object(); + t.set("text", Json(text)); + Json q = Json::object(); + q.set("text", t); + q.set("languageCode", Json(language)); + return q; +} + +// ---- ES --------------------------------------------------------------- + +DialogflowEs::DialogflowEs(std::shared_ptr client, std::string location) + : caller_(std::move(client), Api::kDialogflowEs, std::move(location)) {} + +bool DialogflowEs::regional(const std::string& name) const { return is_regional(name); } + +std::string DialogflowEs::session_name(const std::string& project, const std::string& location, + const std::string& id) { + check_id(project, "project"); + check_id(id, "session id"); + if (location.empty() || location == "global") return "projects/" + project + "/agent/sessions/" + id; + check_id(location, "location"); + return "projects/" + project + "/locations/" + location + "/agent/sessions/" + id; +} + +Invocation DialogflowEs::detect_intent_invocation(const std::string& session, const std::string& text, + const std::string& language) { + Invocation i = make(is_regional(session) ? "dialogflow.projects.locations.agent.sessions.detectIntent" + : "dialogflow.projects.agent.sessions.detectIntent", + "session", session); + i.body = detect_body(text, language); + return i; +} + +Json DialogflowEs::detect_intent(const std::string& s, const std::string& t, const std::string& l) const { + return caller_.invoke(detect_intent_invocation(s, t, l)); +} + +Json DialogflowEs::get_agent(const std::string& project) const { + // The ES agent get row hangs off `projects/{p}` (or a location). + return caller_.invoke(make(regional(project) ? "dialogflow.projects.locations.getAgent" + : "dialogflow.projects.getAgent", + "parent", project)); +} + +ListResult DialogflowEs::list_intents(const std::string& p) const { + return caller_.list(make(regional(p) ? "dialogflow.projects.locations.agent.intents.list" + : "dialogflow.projects.agent.intents.list", + "parent", p)); +} +ListResult DialogflowEs::list_entity_types(const std::string& p) const { + return caller_.list(make(regional(p) ? "dialogflow.projects.locations.agent.entityTypes.list" + : "dialogflow.projects.agent.entityTypes.list", + "parent", p)); +} +ListResult DialogflowEs::list_environments(const std::string& p) const { + return caller_.list(make(regional(p) ? "dialogflow.projects.locations.agent.environments.list" + : "dialogflow.projects.agent.environments.list", + "parent", p)); +} +ListResult DialogflowEs::list_contexts(const std::string& s) const { + return caller_.list(make(regional(s) ? "dialogflow.projects.locations.agent.sessions.contexts.list" + : "dialogflow.projects.agent.sessions.contexts.list", + "parent", s)); +} +Json DialogflowEs::train_agent(const std::string& p) const { + return caller_.invoke(make(regional(p) ? "dialogflow.projects.locations.agent.train" + : "dialogflow.projects.agent.train", + "parent", p)); +} +Json DialogflowEs::delete_contexts(const std::string& s, bool confirm) const { + return caller_.invoke_destructive( + make(regional(s) ? "dialogflow.projects.locations.agent.sessions.deleteContexts" + : "dialogflow.projects.agent.sessions.deleteContexts", + "parent", s), + confirm); +} + +// ---- CX --------------------------------------------------------------- + +DialogflowCx::DialogflowCx(std::shared_ptr client, std::string location) + : caller_(std::move(client), Api::kDialogflowCx, std::move(location)) {} + +std::string DialogflowCx::session_name(const std::string& project, const std::string& location, + const std::string& agent, const std::string& id) { + check_id(project, "project"); + check_id(location, "location"); + check_id(agent, "agent id"); + check_id(id, "session id"); + return "projects/" + project + "/locations/" + location + "/agents/" + agent + "/sessions/" + id; +} + +Invocation DialogflowCx::detect_intent_invocation(const std::string& session, const std::string& text, + const std::string& language) { + Invocation i = make("dialogflow.projects.locations.agents.sessions.detectIntent", "session", session); + i.body = detect_body(text, language); + return i; +} + +Json DialogflowCx::detect_intent(const std::string& s, const std::string& t, const std::string& l) const { + return caller_.invoke(detect_intent_invocation(s, t, l)); +} +Json DialogflowCx::match_intent(const std::string& s, const std::string& t, const std::string& l) const { + Invocation i = make("dialogflow.projects.locations.agents.sessions.matchIntent", "session", s); + i.body = detect_body(t, l); + return caller_.invoke(i); +} +ListResult DialogflowCx::list_agents(const std::string& p) const { + return caller_.list(make("dialogflow.projects.locations.agents.list", "parent", p)); +} +Json DialogflowCx::get_agent(const std::string& n) const { + return caller_.invoke(make("dialogflow.projects.locations.agents.get", "name", n)); +} +ListResult DialogflowCx::list_flows(const std::string& a) const { + return caller_.list(make("dialogflow.projects.locations.agents.flows.list", "parent", a)); +} +ListResult DialogflowCx::list_pages(const std::string& f) const { + return caller_.list(make("dialogflow.projects.locations.agents.flows.pages.list", "parent", f)); +} +ListResult DialogflowCx::list_intents(const std::string& a) const { + return caller_.list(make("dialogflow.projects.locations.agents.intents.list", "parent", a)); +} +Json DialogflowCx::validate_agent(const std::string& a) const { + return caller_.invoke(make("dialogflow.projects.locations.agents.validate", "name", a)); +} +Json DialogflowCx::delete_agent(const std::string& n, bool confirm) const { + return caller_.invoke_destructive(make("dialogflow.projects.locations.agents.delete", "name", n), confirm); +} + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/dialogflow.h b/src/google/enterprise/dialogflow.h new file mode 100644 index 0000000..8879a57 --- /dev/null +++ b/src/google/enterprise/dialogflow.h @@ -0,0 +1,72 @@ +#pragma once + +// Dialogflow ES (v2) and CX (v3): detect intent, match intent, agents, +// intents, flows, pages, sessions. Other rows through caller(). + +#include +#include + +#include "google/enterprise/caller.h" + +namespace molo::google::enterprise { + +// queryInput for detectIntent: text with a language code. +clients::body::Json text_query_input(const std::string& text, const std::string& language); + +class DialogflowEs { + public: + // location "global" uses the legacy `projects/{p}/agent` names; any other + // uses `projects/{p}/locations/{l}/agent` on the regional host. + DialogflowEs(std::shared_ptr client, std::string location = "global"); + Caller& caller() { return caller_; } + const Caller& caller() const { return caller_; } + + static std::string session_name(const std::string& project, const std::string& location, + const std::string& session_id); + static Invocation detect_intent_invocation(const std::string& session, const std::string& text, + const std::string& language); + + clients::body::Json detect_intent(const std::string& session, const std::string& text, + const std::string& language) const; + clients::body::Json get_agent(const std::string& project) const; // projects/{p}/agent + ListResult list_intents(const std::string& agent_parent) const; + ListResult list_entity_types(const std::string& agent_parent) const; + ListResult list_environments(const std::string& agent_parent) const; + ListResult list_contexts(const std::string& session) const; + // Starts training: a long-running operation. Not read-only. + clients::body::Json train_agent(const std::string& project_parent) const; // projects/{p}[/locations/{l}] + clients::body::Json delete_contexts(const std::string& session, bool confirm) const; + + private: + bool regional(const std::string& name) const; + Caller caller_; +}; + +class DialogflowCx { + public: + DialogflowCx(std::shared_ptr client, std::string location = "global"); + Caller& caller() { return caller_; } + const Caller& caller() const { return caller_; } + + static std::string session_name(const std::string& project, const std::string& location, + const std::string& agent, const std::string& session_id); + static Invocation detect_intent_invocation(const std::string& session, const std::string& text, + const std::string& language); + + clients::body::Json detect_intent(const std::string& session, const std::string& text, + const std::string& language) const; + clients::body::Json match_intent(const std::string& session, const std::string& text, + const std::string& language) const; + ListResult list_agents(const std::string& location_parent) const; + clients::body::Json get_agent(const std::string& name) const; + ListResult list_flows(const std::string& agent) const; + ListResult list_pages(const std::string& flow) const; + ListResult list_intents(const std::string& agent) const; + clients::body::Json validate_agent(const std::string& agent) const; // starts validation + clients::body::Json delete_agent(const std::string& name, bool confirm) const; + + private: + Caller caller_; +}; + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/discovery_engine.cpp b/src/google/enterprise/discovery_engine.cpp new file mode 100644 index 0000000..c34abe9 --- /dev/null +++ b/src/google/enterprise/discovery_engine.cpp @@ -0,0 +1,315 @@ +#include "google/enterprise/discovery_engine.h" + +#include "google/enterprise/caps.h" +#include "google/errors.h" + +namespace molo::google::enterprise { + +using clients::body::Json; + +namespace { +[[noreturn]] void bad(const std::string& m) { throw GoogleError::invalid(m); } + +void check_text(const std::string& t, const char* what) { + if (t.empty() || t.size() > EnterpriseCaps::kMaxTextChars) bad(std::string(what) + " is empty or too long"); +} +void check_id(const std::string& id, const char* what) { + if (!valid_resource_name(id) || id.find('/') != std::string::npos) bad(std::string("bad ") + what); +} +Invocation make(const char* rpc, const char* key, const std::string& name) { + Invocation i; + i.rpc = rpc; + i.path[key] = name; + return i; +} +void check_count(const Json& arr, const char* what) { + if (!arr.is_array() || arr.as_array().empty() || + arr.as_array().size() > EnterpriseCaps::kMaxDocuments) + bad(std::string(what) + " must be an array of 1.." + + std::to_string(EnterpriseCaps::kMaxDocuments) + " items"); +} +} // namespace + +std::string DeNames::parent() const { + check_id(project, "project"); + check_id(location, "location"); + return "projects/" + project + "/locations/" + location; +} +std::string DeNames::data_store(const std::string& id) const { + check_id(collection, "collection"); + check_id(id, "data store id"); + return parent() + "/collections/" + collection + "/dataStores/" + id; +} +std::string DeNames::engine(const std::string& id) const { + check_id(collection, "collection"); + check_id(id, "engine id"); + return parent() + "/collections/" + collection + "/engines/" + id; +} +std::string DeNames::serving_config(DeKind kind, const std::string& id, const std::string& config) const { + check_id(config, "serving config id"); + return (kind == DeKind::kDataStore ? data_store(id) : engine(id)) + "/servingConfigs/" + config; +} +std::string DeNames::assistant(const std::string& engine_id, const std::string& id) const { + check_id(id, "assistant id"); + return engine(engine_id) + "/assistants/" + id; +} +std::string DeNames::branch(const std::string& ds, const std::string& b) const { + check_id(b, "branch id"); + return data_store(ds) + "/branches/" + b; +} +std::string DeNames::ranking_config(const std::string& id) const { + check_id(id, "ranking config id"); + return parent() + "/rankingConfigs/" + id; +} +std::string DeNames::grounding_config(const std::string& id) const { + check_id(id, "grounding config id"); + return parent() + "/groundingConfigs/" + id; +} + +Json SearchQuery::to_body() const { + if (query.size() > EnterpriseCaps::kMaxTextChars) bad("query too long"); + if (page_size < 1 || page_size > 100) bad("pageSize must be 1..100"); + if (offset < 0 || offset > 10000) bad("offset must be 0..10000"); + Json b = extra.is_object() ? extra : Json::object(); + b.set("query", Json(query)); + b.set("pageSize", Json(page_size)); + if (offset) b.set("offset", Json(offset)); + if (!filter.empty()) b.set("filter", Json(filter)); + if (!order_by.empty()) b.set("orderBy", Json(order_by)); + if (!user_pseudo_id.empty()) b.set("userPseudoId", Json(user_pseudo_id)); + return b; +} + +Json AnswerQuery::to_body() const { + check_text(query_text, "query text"); + Json b = extra.is_object() ? extra : Json::object(); + Json q = Json::object(); + q.set("text", Json(query_text)); + b.set("query", q); + if (!session.empty()) b.set("session", Json(session)); + if (!user_pseudo_id.empty()) b.set("userPseudoId", Json(user_pseudo_id)); + return b; +} + +DiscoveryEngine::DiscoveryEngine(std::shared_ptr client, std::string location, + Sleeper sleeper) + : caller_(std::move(client), Api::kDiscoveryEngine, std::move(location), std::move(sleeper)) {} + +bool DiscoveryEngine::under_engine(const std::string& name) { + return name.find("/engines/") != std::string::npos; +} + +Invocation DiscoveryEngine::search_invocation(const SearchQuery& q) { + const bool eng = under_engine(q.serving_config); + Invocation i = make(eng ? "discoveryengine.projects.locations.collections.engines.servingConfigs.search" + : "discoveryengine.projects.locations.collections.dataStores.servingConfigs.search", + "servingConfig", q.serving_config); + i.body = q.to_body(); + return i; +} + +Invocation DiscoveryEngine::answer_invocation(const AnswerQuery& q, bool stream) { + const bool eng = under_engine(q.serving_config); + const char* rpc = + stream ? (eng ? "discoveryengine.projects.locations.collections.engines.servingConfigs.streamAnswer" + : "discoveryengine.projects.locations.collections.dataStores.servingConfigs.streamAnswer") + : (eng ? "discoveryengine.projects.locations.collections.engines.servingConfigs.answer" + : "discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer"); + Invocation i = make(rpc, "servingConfig", q.serving_config); + i.body = q.to_body(); + return i; +} + +Json DiscoveryEngine::search(const SearchQuery& q) const { + return caller_.invoke(search_invocation(q)); +} +Json DiscoveryEngine::answer(const AnswerQuery& q) const { + return caller_.invoke(answer_invocation(q, false)); +} +std::size_t DiscoveryEngine::stream_answer(const AnswerQuery& q, + const GoogleClient::EventSink& sink) const { + return caller_.invoke_stream(answer_invocation(q, true), sink); +} + +Json DiscoveryEngine::converse(const std::string& conversation, const std::string& text, + const std::string& serving_config) const { + check_text(text, "text"); + Invocation i = make(under_engine(conversation) + ? "discoveryengine.projects.locations.collections.engines.conversations.converse" + : "discoveryengine.projects.locations.collections.dataStores.conversations.converse", + "name", conversation); + Json b = Json::object(); + Json q = Json::object(); + q.set("input", Json(text)); + b.set("query", q); + if (!serving_config.empty()) b.set("servingConfig", Json(serving_config)); + i.body = b; + return caller_.invoke(i); +} + +std::size_t DiscoveryEngine::stream_assist(const std::string& assistant, const std::string& text, + const std::string& session, + const GoogleClient::EventSink& sink) const { + check_text(text, "text"); + Invocation i = make("discoveryengine.projects.locations.collections.engines.assistants.streamAssist", + "name", assistant); + Json b = Json::object(); + Json q = Json::object(); + q.set("text", Json(text)); + b.set("query", q); + if (!session.empty()) b.set("session", Json(session)); + i.body = b; + return caller_.invoke_stream(i, sink); +} + +Json DiscoveryEngine::recommend(const std::string& serving_config, const Json& user_event, + int page_size) const { + if (!user_event.is_object()) bad("userEvent must be an object"); + if (page_size < 1 || page_size > 100) bad("pageSize must be 1..100"); + Invocation i = make(under_engine(serving_config) + ? "discoveryengine.projects.locations.collections.engines.servingConfigs.recommend" + : "discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend", + "servingConfig", serving_config); + Json b = Json::object(); + b.set("userEvent", user_event); + b.set("pageSize", Json(page_size)); + i.body = b; + return caller_.invoke(i); +} + +Invocation DiscoveryEngine::rank_invocation(const std::string& ranking_config, const std::string& query, + const Json& records, int top_n) { + check_text(query, "query"); + check_count(records, "records"); + if (top_n < 0 || top_n > 100) bad("topN must be 0..100"); + Invocation i = make("discoveryengine.projects.locations.rankingConfigs.rank", "rankingConfig", + ranking_config); + Json b = Json::object(); + b.set("query", Json(query)); + b.set("records", records); + if (top_n) b.set("topN", Json(top_n)); + i.body = b; + return i; +} + +Invocation DiscoveryEngine::grounding_invocation(const std::string& grounding_config, + const std::string& answer_candidate, const Json& facts) { + check_text(answer_candidate, "answer candidate"); + check_count(facts, "facts"); + Invocation i = make("discoveryengine.projects.locations.groundingConfigs.check", "groundingConfig", + grounding_config); + Json b = Json::object(); + b.set("answerCandidate", Json(answer_candidate)); + b.set("facts", facts); + i.body = b; + return i; +} + +Json DiscoveryEngine::rank(const std::string& ranking_config, const std::string& query, + const Json& records, int top_n) const { + return caller_.invoke(rank_invocation(ranking_config, query, records, top_n)); +} + +Json DiscoveryEngine::check_grounding(const std::string& grounding_config, + const std::string& answer_candidate, const Json& facts) const { + return caller_.invoke(grounding_invocation(grounding_config, answer_candidate, facts)); +} + +Json DiscoveryEngine::write_user_event(const std::string& ds, const Json& event) const { + if (!event.is_object()) bad("event must be an object"); + Invocation i = make("discoveryengine.projects.locations.collections.dataStores.userEvents.write", + "parent", ds); + i.body = event; + return caller_.invoke(i); +} + +ListResult DiscoveryEngine::list_data_stores(const std::string& p) const { + return caller_.list(make("discoveryengine.projects.locations.collections.dataStores.list", "parent", p)); +} +Json DiscoveryEngine::get_data_store(const std::string& n) const { + return caller_.invoke(make("discoveryengine.projects.locations.collections.dataStores.get", "name", n)); +} +ListResult DiscoveryEngine::list_engines(const std::string& p) const { + return caller_.list(make("discoveryengine.projects.locations.collections.engines.list", "parent", p)); +} +Json DiscoveryEngine::get_engine(const std::string& n) const { + return caller_.invoke(make("discoveryengine.projects.locations.collections.engines.get", "name", n)); +} +ListResult DiscoveryEngine::list_documents(const std::string& b) const { + return caller_.list( + make("discoveryengine.projects.locations.collections.dataStores.branches.documents.list", "parent", b)); +} +Json DiscoveryEngine::get_document(const std::string& n) const { + return caller_.invoke( + make("discoveryengine.projects.locations.collections.dataStores.branches.documents.get", "name", n)); +} +ListResult DiscoveryEngine::list_sessions(const std::string& p) const { + return caller_.list(make(under_engine(p) ? "discoveryengine.projects.locations.collections.engines.sessions.list" + : "discoveryengine.projects.locations.collections.dataStores.sessions.list", + "parent", p)); +} +Json DiscoveryEngine::get_session(const std::string& n) const { + return caller_.invoke(make(under_engine(n) ? "discoveryengine.projects.locations.collections.engines.sessions.get" + : "discoveryengine.projects.locations.collections.dataStores.sessions.get", + "name", n)); +} +ListResult DiscoveryEngine::list_conversations(const std::string& p) const { + return caller_.list(make(under_engine(p) ? "discoveryengine.projects.locations.collections.engines.conversations.list" + : "discoveryengine.projects.locations.collections.dataStores.conversations.list", + "parent", p)); +} +Json DiscoveryEngine::get_conversation(const std::string& n) const { + return caller_.invoke(make(under_engine(n) ? "discoveryengine.projects.locations.collections.engines.conversations.get" + : "discoveryengine.projects.locations.collections.dataStores.conversations.get", + "name", n)); +} +ListResult DiscoveryEngine::list_assistants(const std::string& e) const { + return caller_.list(make("discoveryengine.projects.locations.collections.engines.assistants.list", "parent", e)); +} +ListResult DiscoveryEngine::list_agents(const std::string& a) const { + return caller_.list(make("discoveryengine.projects.locations.collections.engines.assistants.agents.list", "parent", a)); +} +Json DiscoveryEngine::get_agent(const std::string& n) const { + return caller_.invoke(make("discoveryengine.projects.locations.collections.engines.assistants.agents.get", "name", n)); +} +ListResult DiscoveryEngine::list_serving_configs(const std::string& p) const { + return caller_.list(make(under_engine(p) ? "discoveryengine.projects.locations.collections.engines.servingConfigs.list" + : "discoveryengine.projects.locations.collections.dataStores.servingConfigs.list", + "parent", p)); +} + +Json DiscoveryEngine::create_session(const std::string& parent, const std::string& user) const { + Invocation i = make(under_engine(parent) ? "discoveryengine.projects.locations.collections.engines.sessions.create" + : "discoveryengine.projects.locations.collections.dataStores.sessions.create", + "parent", parent); + Json b = Json::object(); + if (!user.empty()) b.set("userPseudoId", Json(user)); + i.body = b; + return caller_.invoke(i); +} +Json DiscoveryEngine::delete_session(const std::string& n, bool confirm) const { + return caller_.invoke_destructive( + make(under_engine(n) ? "discoveryengine.projects.locations.collections.engines.sessions.delete" + : "discoveryengine.projects.locations.collections.dataStores.sessions.delete", + "name", n), + confirm); +} +Json DiscoveryEngine::delete_conversation(const std::string& n, bool confirm) const { + return caller_.invoke_destructive( + make(under_engine(n) ? "discoveryengine.projects.locations.collections.engines.conversations.delete" + : "discoveryengine.projects.locations.collections.dataStores.conversations.delete", + "name", n), + confirm); +} +Json DiscoveryEngine::delete_document(const std::string& n, bool confirm) const { + return caller_.invoke_destructive( + make("discoveryengine.projects.locations.collections.dataStores.branches.documents.delete", "name", n), + confirm); +} +Json DiscoveryEngine::delete_agent(const std::string& n, bool confirm) const { + return caller_.invoke_destructive( + make("discoveryengine.projects.locations.collections.engines.assistants.agents.delete", "name", n), + confirm); +} + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/discovery_engine.h b/src/google/enterprise/discovery_engine.h new file mode 100644 index 0000000..a931661 --- /dev/null +++ b/src/google/enterprise/discovery_engine.h @@ -0,0 +1,120 @@ +#pragma once + +// Discovery Engine (Gemini Enterprise): search, answer, assistants, agents, +// data stores, engines, documents, conversations, sessions, user events, +// ranking and grounding check. Typed entry points over Caller; any other row +// of the table is reachable through caller(). + +#include +#include + +#include "google/enterprise/caller.h" + +namespace molo::google::enterprise { + +// Where a serving config, conversation or session hangs: under a data store +// or under an engine. +enum class DeKind { kDataStore, kEngine }; + +struct DeNames { + std::string project; + std::string location = "global"; + std::string collection = "default_collection"; + + std::string parent() const; // projects/{p}/locations/{l} + std::string data_store(const std::string& id) const; + std::string engine(const std::string& id) const; + std::string serving_config(DeKind kind, const std::string& id, + const std::string& config = "default_search") const; + std::string assistant(const std::string& engine_id, const std::string& id = "default_assistant") const; + std::string branch(const std::string& data_store_id, const std::string& branch = "default_branch") const; + std::string ranking_config(const std::string& id = "default_ranking_config") const; + std::string grounding_config(const std::string& id = "default_grounding_config") const; +}; + +struct SearchQuery { + std::string serving_config; + std::string query; + std::string user_pseudo_id; + std::string filter; + std::string order_by; + int page_size = 10; + int offset = 0; + clients::body::Json extra = clients::body::Json::object(); // other SearchRequest fields + clients::body::Json to_body() const; +}; + +struct AnswerQuery { + std::string serving_config; + std::string query_text; + std::string session; // optional session resource name + std::string user_pseudo_id; + clients::body::Json extra = clients::body::Json::object(); // AnswerQueryRequest fields + clients::body::Json to_body() const; +}; + +class DiscoveryEngine { + public: + DiscoveryEngine(std::shared_ptr client, std::string location = "global", + Sleeper sleeper = nullptr); + Caller& caller() { return caller_; } + const Caller& caller() const { return caller_; } + + static Invocation search_invocation(const SearchQuery& q); + static Invocation answer_invocation(const AnswerQuery& q, bool stream); + static Invocation rank_invocation(const std::string& ranking_config, const std::string& query, + const clients::body::Json& records, int top_n); + static Invocation grounding_invocation(const std::string& grounding_config, + const std::string& answer_candidate, + const clients::body::Json& facts); + + clients::body::Json search(const SearchQuery& q) const; + clients::body::Json answer(const AnswerQuery& q) const; + std::size_t stream_answer(const AnswerQuery& q, const GoogleClient::EventSink& sink) const; + // Multi-turn conversation: `conversation` is the full name of an existing one. + clients::body::Json converse(const std::string& conversation, const std::string& text, + const std::string& serving_config = "") const; + // Gemini Enterprise assistant: streamed events. + std::size_t stream_assist(const std::string& assistant, const std::string& text, + const std::string& session, const GoogleClient::EventSink& sink) const; + clients::body::Json recommend(const std::string& serving_config, + const clients::body::Json& user_event, int page_size = 10) const; + // records: array of {id, title?, content?, score?}. + clients::body::Json rank(const std::string& ranking_config, const std::string& query, + const clients::body::Json& records, int top_n = 0) const; + // facts: array of {factText, attributes?}. + clients::body::Json check_grounding(const std::string& grounding_config, + const std::string& answer_candidate, + const clients::body::Json& facts) const; + clients::body::Json write_user_event(const std::string& data_store_name, + const clients::body::Json& event) const; + + // Reads. `parent` / `name` are full resource names. + ListResult list_data_stores(const std::string& collection_parent) const; + clients::body::Json get_data_store(const std::string& name) const; + ListResult list_engines(const std::string& collection_parent) const; + clients::body::Json get_engine(const std::string& name) const; + ListResult list_documents(const std::string& branch) const; + clients::body::Json get_document(const std::string& name) const; + ListResult list_sessions(const std::string& parent) const; + clients::body::Json get_session(const std::string& name) const; + ListResult list_conversations(const std::string& parent) const; + clients::body::Json get_conversation(const std::string& name) const; + ListResult list_assistants(const std::string& engine) const; + ListResult list_agents(const std::string& assistant) const; // v1alpha + clients::body::Json get_agent(const std::string& name) const; + ListResult list_serving_configs(const std::string& parent) const; + + // Writes that need a name: explicit methods, delete has no default confirm. + clients::body::Json create_session(const std::string& parent, const std::string& user_pseudo_id) const; + clients::body::Json delete_session(const std::string& name, bool confirm) const; + clients::body::Json delete_conversation(const std::string& name, bool confirm) const; + clients::body::Json delete_document(const std::string& name, bool confirm) const; + clients::body::Json delete_agent(const std::string& name, bool confirm) const; + + private: + static bool under_engine(const std::string& name); + Caller caller_; +}; + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/retail.cpp b/src/google/enterprise/retail.cpp new file mode 100644 index 0000000..6a34496 --- /dev/null +++ b/src/google/enterprise/retail.cpp @@ -0,0 +1,165 @@ +#include "google/enterprise/retail.h" + +#include "google/enterprise/caps.h" +#include "google/errors.h" + +namespace molo::google::enterprise { + +using clients::body::Json; + +namespace { +[[noreturn]] void bad(const std::string& m) { throw GoogleError::invalid(m); } + +Invocation make(const char* rpc, const char* key, const std::string& name) { + Invocation i; + i.rpc = rpc; + i.path[key] = name; + return i; +} +void check_id(const std::string& id, const char* what) { + if (!valid_resource_name(id) || id.find('/') != std::string::npos) bad(std::string("bad ") + what); +} +void check_page(int n) { + if (n < 1 || n > 100) bad("pageSize must be 1..100"); +} +} // namespace + +std::string RetailNames::catalog_name() const { + check_id(project, "project"); + check_id(location, "location"); + check_id(catalog, "catalog"); + return "projects/" + project + "/locations/" + location + "/catalogs/" + catalog; +} +std::string RetailNames::placement(const std::string& id) const { + check_id(id, "placement id"); + return catalog_name() + "/placements/" + id; +} +std::string RetailNames::serving_config(const std::string& id) const { + check_id(id, "serving config id"); + return catalog_name() + "/servingConfigs/" + id; +} +std::string RetailNames::branch(const std::string& id) const { + check_id(id, "branch id"); + return catalog_name() + "/branches/" + id; +} + +Json RetailSearch::to_body() const { + if (query.size() > EnterpriseCaps::kMaxTextChars) bad("query too long"); + if (visitor_id.empty() || visitor_id.size() > 128) bad("visitorId is required (1..128 chars)"); + check_page(page_size); + if (offset < 0 || offset > 10000) bad("offset must be 0..10000"); + Json b = extra.is_object() ? extra : Json::object(); + b.set("query", Json(query)); + b.set("visitorId", Json(visitor_id)); + b.set("pageSize", Json(page_size)); + if (offset) b.set("offset", Json(offset)); + if (!filter.empty()) b.set("filter", Json(filter)); + if (!branch.empty()) b.set("branch", Json(branch)); + return b; +} + +Retail::Retail(std::shared_ptr client, Sleeper sleeper) + : caller_(std::move(client), Api::kRetail, "global", std::move(sleeper)) {} + +Invocation Retail::search_invocation(const RetailSearch& s) { + const bool sc = s.placement.find("/servingConfigs/") != std::string::npos; + Invocation i = make(sc ? "retail.projects.locations.catalogs.servingConfigs.search" + : "retail.projects.locations.catalogs.placements.search", + sc ? "placement" : "placement", s.placement); + i.body = s.to_body(); + return i; +} + +Invocation Retail::predict_invocation(const std::string& placement, const Json& user_event, int page_size, + bool validate_only) { + if (!user_event.is_object()) bad("userEvent must be an object"); + check_page(page_size); + const bool sc = placement.find("/servingConfigs/") != std::string::npos; + Invocation i = make(sc ? "retail.projects.locations.catalogs.servingConfigs.predict" + : "retail.projects.locations.catalogs.placements.predict", + "placement", placement); + Json b = Json::object(); + b.set("userEvent", user_event); + b.set("pageSize", Json(page_size)); + if (validate_only) b.set("validateOnly", Json(true)); + i.body = b; + return i; +} + +Json Retail::search(const RetailSearch& s) const { return caller_.invoke(search_invocation(s)); } +Json Retail::predict(const std::string& p, const Json& e, int n, bool v) const { + return caller_.invoke(predict_invocation(p, e, n, v)); +} +Json Retail::write_user_event(const std::string& catalog, const Json& event) const { + if (!event.is_object()) bad("event must be an object"); + Invocation i = make("retail.projects.locations.catalogs.userEvents.write", "parent", catalog); + i.body = event; + return caller_.invoke(i); +} +ListResult Retail::list_catalogs(const std::string& p) const { + return caller_.list(make("retail.projects.locations.catalogs.list", "parent", p)); +} +ListResult Retail::list_products(const std::string& b) const { + return caller_.list(make("retail.projects.locations.catalogs.branches.products.list", "parent", b)); +} +Json Retail::get_product(const std::string& n) const { + return caller_.invoke(make("retail.projects.locations.catalogs.branches.products.get", "name", n)); +} +ListResult Retail::list_serving_configs(const std::string& c) const { + return caller_.list(make("retail.projects.locations.catalogs.servingConfigs.list", "parent", c)); +} +Json Retail::delete_product(const std::string& n, bool confirm) const { + return caller_.invoke_destructive(make("retail.projects.locations.catalogs.branches.products.delete", "name", n), + confirm); +} + +// ---- Recommendations AI ------------------------------------------------- + +Recommendations::Recommendations(std::shared_ptr client) + : caller_(std::move(client), Api::kRecommendations, "global") {} + +std::string Recommendations::placement(const std::string& project, const std::string& location, + const std::string& catalog, const std::string& store, + const std::string& id) { + check_id(project, "project"); + check_id(location, "location"); + check_id(catalog, "catalog"); + check_id(store, "event store"); + check_id(id, "placement id"); + return "projects/" + project + "/locations/" + location + "/catalogs/" + catalog + "/eventStores/" + + store + "/placements/" + id; +} + +Invocation Recommendations::predict_invocation(const std::string& p, const Json& e, int n, bool dry) { + if (!e.is_object()) bad("userEvent must be an object"); + check_page(n); + Invocation i = make("recommendationengine.projects.locations.catalogs.eventStores.placements.predict", + "name", p); + Json b = Json::object(); + b.set("userEvent", e); + b.set("pageSize", Json(n)); + if (dry) b.set("dryRun", Json(true)); + i.body = b; + return i; +} + +Json Recommendations::predict(const std::string& p, const Json& e, int n, bool dry) const { + return caller_.invoke(predict_invocation(p, e, n, dry)); +} +ListResult Recommendations::list_catalogs(const std::string& p) const { + return caller_.list(make("recommendationengine.projects.locations.catalogs.list", "parent", p)); +} +ListResult Recommendations::list_catalog_items(const std::string& c) const { + return caller_.list(make("recommendationengine.projects.locations.catalogs.catalogItems.list", "parent", c)); +} +ListResult Recommendations::list_user_events(const std::string& s) const { + return caller_.list(make("recommendationengine.projects.locations.catalogs.eventStores.userEvents.list", "parent", s)); +} +Json Recommendations::write_user_event(const std::string& s, const Json& event) const { + if (!event.is_object()) bad("event must be an object"); + Invocation i = make("recommendationengine.projects.locations.catalogs.eventStores.userEvents.write", "parent", s); + i.body = event; + return caller_.invoke(i); +} + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/retail.h b/src/google/enterprise/retail.h new file mode 100644 index 0000000..e87ff1f --- /dev/null +++ b/src/google/enterprise/retail.h @@ -0,0 +1,85 @@ +#pragma once + +// Retail API (v2) and Recommendations AI (recommendationengine v1beta1, the +// original product; Retail's predict is its successor). Predict, search, +// products, catalogs, user events. Other rows through caller(). + +#include +#include + +#include "google/enterprise/caller.h" + +namespace molo::google::enterprise { + +struct RetailNames { + std::string project; + std::string location = "global"; + std::string catalog = "default_catalog"; + std::string catalog_name() const; // projects/p/locations/l/catalogs/c + std::string placement(const std::string& id) const; // .../placements/{id} + std::string serving_config(const std::string& id) const; + std::string branch(const std::string& id = "0") const; // .../branches/{id} +}; + +struct RetailSearch { + std::string placement; // placement or serving config full name + std::string query; + std::string visitor_id; // required by Retail + std::string filter; + std::string branch; + int page_size = 10; + int offset = 0; + clients::body::Json extra = clients::body::Json::object(); + clients::body::Json to_body() const; +}; + +class Retail { + public: + Retail(std::shared_ptr client, Sleeper sleeper = nullptr); + Caller& caller() { return caller_; } + const Caller& caller() const { return caller_; } + + static Invocation search_invocation(const RetailSearch& s); + static Invocation predict_invocation(const std::string& placement, const clients::body::Json& user_event, + int page_size, bool validate_only); + + clients::body::Json search(const RetailSearch& s) const; + // user_event: {eventType, visitorId, productDetails?...}; Retail requires it. + clients::body::Json predict(const std::string& placement, const clients::body::Json& user_event, + int page_size = 10, bool validate_only = false) const; + clients::body::Json write_user_event(const std::string& catalog, const clients::body::Json& event) const; + ListResult list_catalogs(const std::string& location_parent) const; + ListResult list_products(const std::string& branch) const; + clients::body::Json get_product(const std::string& name) const; + ListResult list_serving_configs(const std::string& catalog) const; + clients::body::Json delete_product(const std::string& name, bool confirm) const; + + private: + Caller caller_; +}; + +// Recommendations AI (legacy surface). +class Recommendations { + public: + explicit Recommendations(std::shared_ptr client); + Caller& caller() { return caller_; } + const Caller& caller() const { return caller_; } + + static std::string placement(const std::string& project, const std::string& location, + const std::string& catalog, const std::string& event_store, + const std::string& placement_id); + static Invocation predict_invocation(const std::string& placement, const clients::body::Json& user_event, + int page_size, bool dry_run); + + clients::body::Json predict(const std::string& placement, const clients::body::Json& user_event, + int page_size = 10, bool dry_run = false) const; + ListResult list_catalogs(const std::string& location_parent) const; + ListResult list_catalog_items(const std::string& catalog) const; + ListResult list_user_events(const std::string& event_store) const; + clients::body::Json write_user_event(const std::string& event_store, const clients::body::Json& event) const; + + private: + Caller caller_; +}; + +} // namespace molo::google::enterprise diff --git a/src/google/enterprise/tools/check_discovery.py b/src/google/enterprise/tools/check_discovery.py new file mode 100644 index 0000000..e3ca0ed --- /dev/null +++ b/src/google/enterprise/tools/check_discovery.py @@ -0,0 +1,212 @@ +#!/usr/bin/env python3 +"""Discovery conformance for src/google/enterprise (python3 stdlib only). + +The call table `src/google/enterprise/calls_table.inc` is derived from Google's +Discovery documents. This script has two modes: + + check_discovery.py fetch Discovery, regenerate the table in memory, + fail on any difference with the committed file, + then run the structural checks below + check_discovery.py --write regenerate calls_table.inc from Discovery + --cache DIR read -.json from DIR instead of + the network (offline runs, same checks) + +Structural checks (all fail the run): + - table == Discovery: every row field (method, path, path parameter patterns, + query parameters, request body fields, flags, list items key) is exactly what + Discovery says; a changed Discovery document shows up as a difference + - coverage: every Discovery method of a covered document is a table row or is + on an explicit exclusion rule (EXCLUDE below, counted and printed) + - rpc ids written in the C++ facades exist in the table + - ApiInfo (apis.cpp): host, regional endpoints and the default scope agree + with the Discovery documents +""" +import json +import os +import re +import sys +import urllib.request + +ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +TABLE = os.path.join(ROOT, "calls_table.inc") + +# (Api enum name, discovery service, version, include-only regex or None) +# v1alpha of Discovery Engine is read only for assistants.agents: Gemini +# Enterprise agents exist nowhere else in Discovery (v1 and v1beta have none). +SOURCES = [ + ("kDiscoveryEngine", "discoveryengine", "v1", None), + ("kDiscoveryEngine", "discoveryengine", "v1alpha", r"\.assistants\.agents\."), + ("kDialogflowEs", "dialogflow", "v2", None), + ("kDialogflowCx", "dialogflow", "v3", None), + ("kRetail", "retail", "v2", None), + ("kInsights", "contactcenterinsights", "v1", None), + ("kCes", "ces", "v1", None), + ("kRecommendations", "recommendationengine", "v1beta1", None), +] +EXCLUDE = { + "discoveryengine v1alpha": "every method except assistants.agents (alpha-only products)", +} +DESTRUCTIVE = re.compile(r"^(delete|purge|remove|cancel|reset|clear|batchDelete)") + + +def fetch(service, version, cache): + if cache: + with open(os.path.join(cache, "%s-%s.json" % (service, version))) as f: + return json.load(f) + url = "https://%s.googleapis.com/$discovery/rest?version=%s" % (service, version) + with urllib.request.urlopen(url, timeout=60) as r: + return json.load(r) + + +def walk(res, out): + for m in res.get("methods", {}).values(): + out.append(m) + for sub in res.get("resources", {}).values(): + walk(sub, out) + + +def resolve(doc, ref): + return doc["schemas"].get(ref, {}) + + +def row_for(api, doc, method): + version = doc["version"] + params = method.get("parameters", {}) + path = method["path"] + placeholders = re.findall(r"\{\+?([A-Za-z0-9_]+)\}", path) + pparts = [] + for name in placeholders: + p = params[name] + pat = p.get("pattern", "") + assert " " not in pat, (method["id"], name) + pparts.append("%s=%s" % (name, pat)) + qparts = [] + for name in sorted(params): + p = params[name] + if p.get("location") == "query": + qparts.append(name + ("!" if p.get("required") else "")) + req = method.get("request", {}).get("$ref", "") + body = ",".join(sorted(resolve(doc, req).get("properties", {}))) if req else "" + resp = method.get("response", {}).get("$ref", "") + last = method["id"].split(".")[-1] + flags = "" + if method["httpMethod"] == "DELETE" or DESTRUCTIVE.match(last): + flags += "D" + if resp.endswith("Operation"): + flags += "L" + if last.startswith("stream"): + flags += "S" + items_key = "" + if "pageToken" in params and "nextPageToken" in resolve(doc, resp).get("properties", {}): + flags += "P" + for k, v in resolve(doc, resp).get("properties", {}).items(): + if v.get("type") == "array" and k != "unreachable": + items_key = k + break + return [api, version, method["id"], method["httpMethod"], path, " ".join(pparts), + ",".join(qparts), body, req, flags, items_key] + + +def generate(cache): + lines, counts, covered = [], {}, {} + docs = {} + emitted = set() + for api, service, version, only in SOURCES: + doc = fetch(service, version, cache) + docs[(service, version)] = doc + methods = [] + walk(doc, methods) + n = 0 + for m in sorted(methods, key=lambda m: m["id"]): + if only and not re.search(only, m["id"]): + continue + if (api, m["id"]) in emitted: # an earlier version already has this id + continue + emitted.add((api, m["id"])) + row = row_for(api, doc, m) + fields = ", ".join(json.dumps(x) for x in row[1:]) + lines.append("{Api::%s, %s}," % (api, fields)) + n += 1 + counts["%s %s" % (service, version)] = (n, len(methods), doc["revision"]) + return lines, counts, docs + + +HEADER = ( + "// GENERATED by tools/check_discovery.py --write from Google's Discovery\n" + "// documents. Do not edit by hand: the checker fails on any difference.\n" + "// Fields: api, version, rpc id, http method, path, path params (name=pattern),\n" + "// query params (! = required), request body fields, request schema, flags\n" + "// (D destructive, L long-running, S stream, P paginated), list items key.\n" +) + + +def read_table(): + if not os.path.exists(TABLE): + return [] + return [l.rstrip("\n") for l in open(TABLE) if l.startswith("{Api::")] + + +def cpp_rpc_ids(): + ids = set() + for name in os.listdir(ROOT): + if name.endswith((".cpp", ".h")): + text = open(os.path.join(ROOT, name)).read() + ids.update(i for i in re.findall(r'"((?:discoveryengine|dialogflow|retail|contactcenterinsights|ces|recommendationengine)\.[A-Za-z0-9_.]+)"', text) if not i.endswith("googleapis.com")) + return ids + + +def main(): + cache = None + if "--cache" in sys.argv: + cache = sys.argv[sys.argv.index("--cache") + 1] + lines, counts, docs = generate(cache) + if "--write" in sys.argv: + with open(TABLE, "w") as f: + f.write(HEADER) + f.write("\n".join(lines) + "\n") + print("wrote %d rows" % len(lines)) + return 0 + failures = [] + committed = read_table() + if committed != lines: + a, b = set(committed), set(lines) + for l in sorted(a - b)[:5]: + failures.append("committed row not in Discovery: " + l[:160]) + for l in sorted(b - a)[:5]: + failures.append("Discovery row missing from table: " + l[:160]) + failures.append("table differs from Discovery (%d committed, %d expected)" % (len(committed), len(lines))) + # Rows keyed by (api, rpc) must be unique. + keys = [(l.split(",")[0], json.loads("[" + l[l.index(",") + 1:-2] + "]")[1]) for l in lines] + if len(set(keys)) != len(keys): + failures.append("duplicate (api, rpc) rows") + table_ids = {k[1] for k in keys} + for rpc in sorted(cpp_rpc_ids() - table_ids): + failures.append("facade uses an rpc id absent from the table: " + rpc) + # ApiInfo checks. + apis_src = open(os.path.join(ROOT, "apis.cpp")).read() + for (service, version), doc in docs.items(): + host = "%s.googleapis.com" % service + if host not in apis_src: + failures.append("apis.cpp lacks host " + host) + if doc["rootUrl"] != "https://%s/" % host: + failures.append("rootUrl differs for " + service) + scopes = doc.get("auth", {}).get("oauth2", {}).get("scopes", {}) + if "https://www.googleapis.com/auth/cloud-platform" not in scopes: + failures.append("cloud-platform scope missing for %s %s" % (service, version)) + ces = docs[("ces", "v1")] + for e in ces.get("endpoints", []): + if "ces.%s.rep.googleapis.com" % e["location"] not in apis_src: + failures.append("apis.cpp lacks CES regional endpoint " + e["location"]) + for k, (n, total, rev) in sorted(counts.items()): + note = "" if n == total else " (excluded: %s)" % EXCLUDE.get(k, "?") + print("%-28s %4d of %4d methods, revision %s%s" % (k, n, total, rev, note)) + if failures: + for f in failures: + print("FAIL " + f) + return 1 + print("discovery ok: %d calls, %d facade rpc ids checked" % (len(lines), len(cpp_rpc_ids()))) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/tests/example/google/enterprise/answer_test.cpp b/tests/example/google/enterprise/answer_test.cpp new file mode 100644 index 0000000..5f8154f --- /dev/null +++ b/tests/example/google/enterprise/answer_test.cpp @@ -0,0 +1,16 @@ +// Route: POST /google/enterprise/answer +#include "google/enterprise/cases.hpp" + +using namespace molo::example::test; + +int main() { + const std::string sc = + "projects/p1/locations/global/collections/default_collection/dataStores/d1/servingConfigs/default_search"; + check_enterprise_post_route("/google/enterprise/answer", + "{\"serving_config\":\"" + sc + "\",\"query\":\"what is covered\"}", + "{\"serving_config\":\"" + sc + "\",\"query\":\"\"}", "empty query"); + check_enterprise_dry_run("/google/enterprise/answer", + "{\"serving_config\":\"" + sc + "\",\"query\":\"what is covered\"}", + "servingConfigs/default_search:answer"); + return finish("google/enterprise/answer"); +} diff --git a/tests/example/google/enterprise/call_test.cpp b/tests/example/google/enterprise/call_test.cpp new file mode 100644 index 0000000..e0c45cf --- /dev/null +++ b/tests/example/google/enterprise/call_test.cpp @@ -0,0 +1,51 @@ +// Route: POST /google/enterprise/call (any row of the table) +#include "google/enterprise/cases.hpp" + +using namespace molo::example::test; + +int main() { + const std::string get_ds = + "{\"api\":\"discoveryengine\",\"rpc\":\"discoveryengine.projects.locations.collections.dataStores.get\"," + "\"path\":{\"name\":\"projects/p1/locations/global/collections/default_collection/dataStores/ds1\"}}"; + check_enterprise_post_route("/google/enterprise/call", get_ds, + "{\"api\":\"discoveryengine\",\"rpc\":\"nope\",\"path\":{}}", "unknown rpc"); + { + GoogleRig rig; + Fixture f(rig.client); + const std::string j = "application/json"; + const std::string list = "\"rpc\":\"retail.projects.locations.catalogs.list\""; + check(f.client->post("/google/enterprise/call", "not json", j).status == 422, "bad json"); + check(f.client->post("/google/enterprise/call", "[1]", j).status == 422, "array body"); + check(f.client->post("/google/enterprise/call", "{\"rpc\":\"x\"}", j).status == 422, "api required"); + check(f.client->post("/google/enterprise/call", "{\"api\":\"x\",\"rpc\":\"y\"}", j).status == 422, "unknown api"); + check(f.client->post("/google/enterprise/call", + "{\"api\":\"retail\"," + list + ",\"path\":{\"parent\":\"../x\"}}", j).status == 422, + "path traversal"); + check(f.client->post("/google/enterprise/call", + "{\"api\":\"retail\"," + list + + ",\"path\":{\"parent\":\"projects/p/locations/global\"},\"query\":{\"bogus\":\"1\"}}", + j).status == 422, + "unknown query parameter"); + check(f.client->post("/google/enterprise/call", std::string("{\"x\":\"") + std::string(300 * 1024, 'a') + "\"}", j) + .status == 413, + "oversize body is 413"); + check(rig.mock->send_count() == 0, "side effect: nothing sent"); + } + check_enterprise_dry_run( + "/google/enterprise/call", + "{\"api\":\"discoveryengine\",\"rpc\":\"discoveryengine.projects.locations.collections.dataStores.delete\"," + "\"path\":{\"name\":\"projects/p1/locations/global/collections/default_collection/dataStores/ds1\"}}", + "dataStores/ds1"); + { + // A read attempts exactly one upstream request, to the table-derived URL. + GoogleRig rig; + Fixture f(rig.client); + auto res = f.client->post("/google/enterprise/call", get_ds, "application/json"); + check(res.status != 422 && res.status != 503, "a read gets past validation and credential"); + auto seen = rig.mock->seen(); + check(seen.size() == 1 && seen[0].method == "GET" && + contains(seen[0].target, "/v1/projects/p1/locations/global/collections/default_collection/dataStores/ds1"), + "one GET to the table-derived path"); + } + return finish("google/enterprise/call"); +} diff --git a/tests/example/google/enterprise/calls_test.cpp b/tests/example/google/enterprise/calls_test.cpp new file mode 100644 index 0000000..5354e27 --- /dev/null +++ b/tests/example/google/enterprise/calls_test.cpp @@ -0,0 +1,20 @@ +// Route: GET /google/enterprise/calls (the call table) +#include "support/GoogleRig.hpp" + +using namespace molo::example::test; + +int main() { + GoogleRig rig(false); + Fixture f(rig.client); + auto res = f.client->get("/google/enterprise/calls?api=discoveryengine&q=servingConfigs.search"); + check(res.status == 200, "200 without a credential"); + check(contains(res.body, "servingConfigs.search") && contains(res.body, "v1/{+servingConfig}:search"), "rows shown"); + check(contains(res.body, "\"truncated\":false"), "not truncated"); + auto all = f.client->get("/google/enterprise/calls?api=dialogflow-es"); + check(contains(all.body, "\"truncated\":true") && contains(all.body, "\"cap_items\":200"), "truncation is loud"); + check(f.client->get("/google/enterprise/calls?api=nope").status == 422, "unknown api is 422"); + check(f.client->get("/google/enterprise/calls?api=ces&q=" + std::string(101, 'a')).status == 422, "q cap"); + check(f.client->post("/google/enterprise/calls").status == 405, "post is 405"); + check(rig.mock->send_count() == 0, "side effect: no upstream traffic"); + return finish("google/enterprise/calls"); +} diff --git a/tests/example/google/enterprise/cases.hpp b/tests/example/google/enterprise/cases.hpp new file mode 100644 index 0000000..633f449 --- /dev/null +++ b/tests/example/google/enterprise/cases.hpp @@ -0,0 +1,53 @@ +#pragma once + +// Shared case for the enterprise route tests (not a test itself). Every route +// that would call Google is a POST that must: answer 503 google_not_configured +// without a credential, answer 422 validation_error on bad input before any +// upstream call, and answer 405 to GET. + +#include +#include + +#include "support/GoogleRig.hpp" + +namespace molo::example::test { + +inline void check_enterprise_post_route(const std::string& path, const std::string& good_body, + const std::string& bad_body, const std::string& what) { + setenv("GOOGLE_CLOUD_PROJECT", "test-project", 1); + const std::string json = "application/json"; + { + GoogleRig rig(false); + Fixture f(rig.client); + auto res = f.client->post(path, good_body, json); + check(res.status == 503, path + ": no credential is 503"); + check(contains(res.body, "google_not_configured"), "error code google_not_configured"); + check(contains(res.headers.get("Content-Type"), "application/json"), "error body is json"); + check(rig.mock->send_count() == 0, "side effect: no upstream traffic"); + } + { + GoogleRig rig; + Fixture f(rig.client); + auto res = f.client->post(path, bad_body, json); + check(res.status == 422, path + ": " + what + " is 422"); + check(contains(res.body, "validation_error"), "error code validation_error"); + check(rig.mock->send_count() == 0, "side effect: rejected before any upstream call"); + check(f.client->get(path).status == 405, path + ": get is 405"); + } +} + +// With a credential, a non-read call is a dry run: 200, dry_run true, nothing sent. +inline void check_enterprise_dry_run(const std::string& path, const std::string& good_body, + const std::string& expect_in_url) { + setenv("GOOGLE_CLOUD_PROJECT", "test-project", 1); + GoogleRig rig; + Fixture f(rig.client); + auto res = f.client->post(path, good_body, "application/json"); + check(res.status == 200, path + ": dry run is 200"); + check(contains(res.body, "\"dry_run\":true"), "dry_run is true without confirm"); + check(contains(res.body, expect_in_url), "dry run shows the url: " + expect_in_url); + check(!contains(res.body, kTestKey), "credential never shown"); + check(rig.mock->send_count() == 0, "side effect: a dry run sends nothing"); +} + +} // namespace molo::example::test diff --git a/tests/example/google/enterprise/ces_run_test.cpp b/tests/example/google/enterprise/ces_run_test.cpp new file mode 100644 index 0000000..54e3363 --- /dev/null +++ b/tests/example/google/enterprise/ces_run_test.cpp @@ -0,0 +1,14 @@ +// Route: POST /google/enterprise/ces/run +#include "google/enterprise/cases.hpp" + +using namespace molo::example::test; + +int main() { + const std::string good = "{\"session\":\"projects/p1/locations/us/apps/a1/sessions/s1\",\"text\":\"hello\"}"; + check_enterprise_post_route("/google/enterprise/ces/run", good, + "{\"session\":\"projects/p1/locations/us/apps/a1/sessions/s1\",\"text\":\"\"}", + "empty text"); + check_enterprise_dry_run("/google/enterprise/ces/run", good, + "ces.us.rep.googleapis.com/v1/projects/p1/locations/us/apps/a1/sessions/s1:runSession"); + return finish("google/enterprise/ces_run"); +} diff --git a/tests/example/google/enterprise/detect_test.cpp b/tests/example/google/enterprise/detect_test.cpp new file mode 100644 index 0000000..088f6e0 --- /dev/null +++ b/tests/example/google/enterprise/detect_test.cpp @@ -0,0 +1,26 @@ +// Route: POST /google/enterprise/detect (Dialogflow ES and CX detectIntent) +#include "google/enterprise/cases.hpp" + +using namespace molo::example::test; + +int main() { + const std::string es = "{\"kind\":\"es\",\"session\":\"projects/p1/agent/sessions/s1\",\"text\":\"hello\"}"; + check_enterprise_post_route("/google/enterprise/detect", es, + "{\"kind\":\"es\",\"session\":\"projects/p1/agent/sessions/s1\",\"text\":\"\"}", + "empty text"); + check_enterprise_dry_run("/google/enterprise/detect", es, + "dialogflow.googleapis.com/v2/projects/p1/agent/sessions/s1:detectIntent"); + check_enterprise_dry_run( + "/google/enterprise/detect", + "{\"kind\":\"cx\",\"session\":\"projects/p1/locations/europe-west1/agents/a1/sessions/s1\"," + "\"text\":\"hi\",\"language\":\"nl\"}", + "europe-west1-dialogflow.googleapis.com/v3/projects/p1/locations/europe-west1/agents/a1/sessions/s1:detectIntent"); + { + GoogleRig rig; + Fixture f(rig.client); + check(f.client->post("/google/enterprise/detect", "{\"kind\":\"x\",\"session\":\"s\",\"text\":\"t\"}", + "application/json").status == 422, + "unknown kind"); + } + return finish("google/enterprise/detect"); +} diff --git a/tests/example/google/enterprise/ground_test.cpp b/tests/example/google/enterprise/ground_test.cpp new file mode 100644 index 0000000..486aa96 --- /dev/null +++ b/tests/example/google/enterprise/ground_test.cpp @@ -0,0 +1,15 @@ +// Route: POST /google/enterprise/ground (check grounding) +#include "google/enterprise/cases.hpp" + +using namespace molo::example::test; + +int main() { + const std::string gc = "projects/p1/locations/global/groundingConfigs/default_grounding_config"; + const std::string facts = "[{\"factText\":\"The sky is blue.\"}]"; + const std::string good = "{\"grounding_config\":\"" + gc + "\",\"answer\":\"Blue.\",\"facts\":" + facts + "}"; + check_enterprise_post_route("/google/enterprise/ground", good, + "{\"grounding_config\":\"" + gc + "\",\"answer\":\"Blue.\",\"facts\":\"nope\"}", + "facts not an array"); + check_enterprise_dry_run("/google/enterprise/ground", good, "groundingConfigs/default_grounding_config:check"); + return finish("google/enterprise/ground"); +} diff --git a/tests/example/google/enterprise/page_test.cpp b/tests/example/google/enterprise/page_test.cpp new file mode 100644 index 0000000..1235d1f --- /dev/null +++ b/tests/example/google/enterprise/page_test.cpp @@ -0,0 +1,18 @@ +// Route: GET /google/enterprise (the page) +#include "support/GoogleRig.hpp" + +using namespace molo::example::test; + +int main() { + GoogleRig rig(false); + Fixture f(rig.client); + auto res = f.client->get("/google/enterprise"); + check(res.status == 200, "page is 200 without a credential"); + check(contains(res.headers.get("Content-Type"), "text/html"), "html"); + check(contains(res.body, "Enterprise APIs") && contains(res.body, "e-run"), "page content"); + check(contains(res.body, "/embedded/google_enterprise.js"), "script linked"); + check(rig.mock->send_count() == 0, "side effect: no upstream traffic"); + check(f.client->post("/google/enterprise").status == 405, "post is 405"); + check(f.client->get("/embedded/google_enterprise.js").status == 200, "asset served"); + return finish("google/enterprise/page"); +} diff --git a/tests/example/google/enterprise/predict_test.cpp b/tests/example/google/enterprise/predict_test.cpp new file mode 100644 index 0000000..6eed678 --- /dev/null +++ b/tests/example/google/enterprise/predict_test.cpp @@ -0,0 +1,21 @@ +// Route: POST /google/enterprise/predict (Retail and Recommendations AI) +#include "google/enterprise/cases.hpp" + +using namespace molo::example::test; + +int main() { + const std::string pl = "projects/p1/locations/global/catalogs/default_catalog/placements/pl"; + const std::string retail = "{\"kind\":\"retail\",\"placement\":\"" + pl + + "\",\"user_event\":{\"eventType\":\"home-page-view\",\"visitorId\":\"v1\"}}"; + check_enterprise_post_route("/google/enterprise/predict", retail, + "{\"kind\":\"retail\",\"placement\":\"" + pl + "\",\"user_event\":\"nope\"}", + "user_event not an object"); + check_enterprise_dry_run("/google/enterprise/predict", retail, + "retail.googleapis.com/v2/projects/p1/locations/global/catalogs/default_catalog/placements/pl:predict"); + check_enterprise_dry_run( + "/google/enterprise/predict", + "{\"kind\":\"recommendations\",\"placement\":\"projects/p1/locations/global/catalogs/c/eventStores/e/placements/pl\"," + "\"user_event\":{\"eventType\":\"page-visit\"}}", + "recommendationengine.googleapis.com/v1beta1/projects/p1/locations/global/catalogs/c/eventStores/e/placements/pl:predict"); + return finish("google/enterprise/predict"); +} diff --git a/tests/example/google/enterprise/rank_test.cpp b/tests/example/google/enterprise/rank_test.cpp new file mode 100644 index 0000000..2ef978c --- /dev/null +++ b/tests/example/google/enterprise/rank_test.cpp @@ -0,0 +1,14 @@ +// Route: POST /google/enterprise/rank +#include "google/enterprise/cases.hpp" + +using namespace molo::example::test; + +int main() { + const std::string rc = "projects/p1/locations/global/rankingConfigs/default_ranking_config"; + const std::string good = + "{\"ranking_config\":\"" + rc + "\",\"query\":\"q\",\"records\":[{\"id\":\"1\",\"content\":\"a\"}]}"; + check_enterprise_post_route("/google/enterprise/rank", good, + "{\"ranking_config\":\"" + rc + "\",\"query\":\"q\",\"records\":[]}", "no records"); + check_enterprise_dry_run("/google/enterprise/rank", good, "rankingConfigs/default_ranking_config:rank"); + return finish("google/enterprise/rank"); +} diff --git a/tests/example/google/enterprise/search_test.cpp b/tests/example/google/enterprise/search_test.cpp new file mode 100644 index 0000000..3398cb4 --- /dev/null +++ b/tests/example/google/enterprise/search_test.cpp @@ -0,0 +1,14 @@ +// Route: POST /google/enterprise/search +#include "google/enterprise/cases.hpp" + +using namespace molo::example::test; + +int main() { + const std::string sc = + "projects/p1/locations/global/collections/default_collection/engines/e1/servingConfigs/default_search"; + check_enterprise_post_route("/google/enterprise/search", "{\"serving_config\":\"" + sc + "\",\"query\":\"refunds\"}", + "{\"serving_config\":\"" + sc + "\",\"query\":\"x\",\"page_size\":0}", "page_size 0"); + check_enterprise_dry_run("/google/enterprise/search", "{\"serving_config\":\"" + sc + "\",\"query\":\"refunds\"}", + "engines/e1/servingConfigs/default_search:search"); + return finish("google/enterprise/search"); +} diff --git a/tests/example/google/enterprise/status_test.cpp b/tests/example/google/enterprise/status_test.cpp new file mode 100644 index 0000000..4d7b9ed --- /dev/null +++ b/tests/example/google/enterprise/status_test.cpp @@ -0,0 +1,33 @@ +// Route: GET /google/enterprise/status +#include + +#include "support/GoogleRig.hpp" + +using namespace molo::example::test; + +int main() { + setenv("GOOGLE_CLOUD_PROJECT", "test-project", 1); + { + GoogleRig rig(false); + Fixture f(rig.client); + auto res = f.client->get("/google/enterprise/status"); + check(res.status == 200, "status 200 without a credential"); + check(contains(res.headers.get("Content-Type"), "application/json"), "json"); + check(contains(res.body, "\"configured\":false") && contains(res.body, "\"project_set\":true"), "state shown"); + check(contains(res.body, "discoveryengine.googleapis.com") && contains(res.body, "ces.googleapis.com") && + contains(res.body, "recommendationengine.googleapis.com"), + "services listed"); + check(contains(res.body, "project=test-project"), "activation url uses the project"); + check(contains(res.body, "\"max_list_items\":500"), "caps shown"); + check(rig.mock->send_count() == 0, "side effect: no upstream traffic"); + } + { + GoogleRig rig; + Fixture f(rig.client); + auto res = f.client->get("/google/enterprise/status"); + check(contains(res.body, "\"configured\":true"), "configured with a credential"); + check(!contains(res.body, kTestKey), "credential never shown"); + check(f.client->post("/google/enterprise/status").status == 405, "post is 405"); + } + return finish("google/enterprise/status"); +} diff --git a/tests/src/google/enterprise/test_enterprise_calls.cpp b/tests/src/google/enterprise/test_enterprise_calls.cpp new file mode 100644 index 0000000..9d25c1f --- /dev/null +++ b/tests/src/google/enterprise/test_enterprise_calls.cpp @@ -0,0 +1,287 @@ +// Enterprise package: deterministic local tests of the call table, endpoint +// selection, validation, caps and destructive gating. No scripted Google +// replies: shapes are verified against Discovery by +// src/google/enterprise/tools/check_discovery.py and, with a credential, live +// (test_enterprise_live.cpp). +#include +#include +#include + +#include "clients/transports/mock_transport.h" +#include "framework.h" +#include "google/enterprise/apis.h" +#include "google/enterprise/caller.h" +#include "google/enterprise/calls.h" +#include "google/enterprise/caps.h" + +using namespace molo::google; +using namespace molo::google::enterprise; +using molo::clients::Method; +using molo::clients::body::Json; +using molo::clients::transports::MockTransport; + +namespace { +struct Rig { + MockTransport* mock; + std::shared_ptr client; + Rig() { + auto t = std::make_unique(); + mock = t.get(); + client = std::make_shared(std::move(t), nullptr); + } +}; + +// True when the input was rejected by validation (400 INVALID_ARGUMENT). +template +bool rejected(F&& f) { + try { + f(); + } catch (const NotConfiguredError&) { + return false; + } catch (const GoogleError& e) { + return e.http_status() == 400 && e.status() == "INVALID_ARGUMENT"; + } + return false; +} + +Invocation read(const std::string& rpc, const char* key, const std::string& v) { + Invocation i; + i.rpc = rpc; + i.path[key] = v; + return i; +} + +const char* kDsName = "projects/p1/locations/global/collections/default_collection/dataStores/ds1"; +} // namespace + +TEST(enterprise, table_has_every_api_and_enough_rows) { + ASSERT_TRUE(call_count() >= 1000); + for (Api a : all_apis()) ASSERT_TRUE(calls_of(a).size() >= 10); + ASSERT_TRUE(calls_of(Api::kDiscoveryEngine).size() >= 270); + ASSERT_TRUE(calls_of(Api::kDialogflowEs).size() >= 280); + ASSERT_TRUE(calls_of(Api::kDialogflowCx).size() >= 150); +} + +TEST(enterprise, every_row_is_well_formed) { + std::set seen; + for (std::size_t i = 0; i < call_count(); ++i) { + const CallSpec& c = call_at(i); + std::string key = std::string(api_info(c.api).slug) + "/" + c.rpc_id; + ASSERT_TRUE(seen.insert(key).second); // unique + ASSERT_TRUE(std::string(c.path).find(c.version) == 0); + c.method(); // throws on an unknown verb + for (const auto& p : c.path_params()) { + if (p.pattern.empty()) continue; // flat-path rows (dataConnector.mcp) carry no pattern + std::string pat = p.pattern; + if (pat.front() == '^') pat.erase(0, 1); + if (pat.back() == '$') pat.pop_back(); + std::regex re(pat); // every Discovery pattern compiles + (void)re; + } + if (c.paginated()) ASSERT_TRUE(std::string(c.items_key).size() > 0); + if (c.http_method == std::string("DELETE")) ASSERT_TRUE(c.destructive()); + } +} + +TEST(enterprise, rows_match_discovery_spot_checks) { + const CallSpec& s = *try_find_call(Api::kDiscoveryEngine, + "discoveryengine.projects.locations.collections.dataStores.servingConfigs.search"); + ASSERT_EQ(std::string(s.path), "v1/{+servingConfig}:search"); + ASSERT_TRUE(s.method() == Method::kPost); + ASSERT_TRUE(!s.read_only()); + const CallSpec& l = *try_find_call(Api::kDiscoveryEngine, + "discoveryengine.projects.locations.collections.dataStores.list"); + ASSERT_TRUE(l.paginated()); + ASSERT_EQ(std::string(l.items_key), "dataStores"); + const CallSpec& a = *try_find_call(Api::kDiscoveryEngine, + "discoveryengine.projects.locations.collections.engines.assistants.agents.get"); + ASSERT_EQ(std::string(a.version), "v1alpha"); + const CallSpec& sa = *try_find_call(Api::kDiscoveryEngine, + "discoveryengine.projects.locations.collections.engines.assistants.streamAssist"); + ASSERT_TRUE(sa.streaming()); + const CallSpec& del = *try_find_call(Api::kDiscoveryEngine, + "discoveryengine.projects.locations.collections.dataStores.branches.documents.purge"); + ASSERT_TRUE(del.destructive() && del.long_running()); + ASSERT_TRUE(try_find_call(Api::kRetail, "nope") == nullptr); + ASSERT_TRUE(rejected([] { find_call(Api::kRetail, "nope"); })); + ASSERT_TRUE(try_find_call(Api::kRetail, "retail.projects.locations.catalogs.list") != nullptr); + ASSERT_TRUE(try_find_call(Api::kDialogflowEs, "retail.projects.locations.catalogs.list") == nullptr); +} + +TEST(enterprise, search_calls_filters_and_caps) { + ASSERT_EQ(search_calls(Api::kCes, "runSession", 10).size(), static_cast(1)); + ASSERT_EQ(search_calls(Api::kDiscoveryEngine, "", 5).size(), static_cast(5)); +} + +TEST(enterprise, endpoints_per_api) { + ASSERT_EQ(endpoint_for(Api::kDiscoveryEngine, "v1", "global").base_url, + "https://discoveryengine.googleapis.com/v1"); + ASSERT_EQ(endpoint_for(Api::kDiscoveryEngine, "v1", "us").base_url, + "https://us-discoveryengine.googleapis.com/v1"); + ASSERT_EQ(endpoint_for(Api::kDiscoveryEngine, "v1alpha", "eu").base_url, + "https://eu-discoveryengine.googleapis.com/v1alpha"); + ASSERT_TRUE(rejected([] { endpoint_for(Api::kDiscoveryEngine, "v1", "us-central1"); })); + ASSERT_EQ(endpoint_for(Api::kDialogflowCx, "v3", "europe-west1").base_url, + "https://europe-west1-dialogflow.googleapis.com/v3"); + ASSERT_EQ(endpoint_for(Api::kDialogflowEs, "v2", "global").base_url, + "https://dialogflow.googleapis.com/v2"); + ASSERT_EQ(endpoint_for(Api::kCes, "v1", "us").base_url, "https://ces.us.rep.googleapis.com/v1"); + ASSERT_TRUE(rejected([] { endpoint_for(Api::kCes, "v1", "asia"); })); + ASSERT_EQ(endpoint_for(Api::kRetail, "v2", "global").base_url, "https://retail.googleapis.com/v2"); + ASSERT_EQ(endpoint_for(Api::kInsights, "v1", "us-central1").base_url, + "https://contactcenterinsights.googleapis.com/v1"); + ASSERT_EQ(endpoint_for(Api::kRecommendations, "v1beta1", "global").base_url, + "https://recommendationengine.googleapis.com/v1beta1"); + ASSERT_TRUE(rejected([] { endpoint_for(Api::kRetail, "v2", "BAD LOC"); })); + ASSERT_EQ(api_from_slug("dialogflow-cx") == Api::kDialogflowCx, true); + ASSERT_TRUE(rejected([] { api_from_slug("nope"); })); + ASSERT_EQ(activation_url(Api::kRetail, "example-214512124"), + "https://console.developers.google.com/apis/api/retail.googleapis.com/overview?project=example-214512124"); +} + +TEST(enterprise, prepare_builds_path_endpoint_and_body) { + Rig r; + Caller c(r.client, Api::kDiscoveryEngine); + Invocation i = read("discoveryengine.projects.locations.collections.dataStores.servingConfigs.search", + "servingConfig", std::string(kDsName) + "/servingConfigs/default_search"); + Json b = Json::object(); + b.set("query", Json("hello world")); + i.body = b; + Prepared p = c.prepare(i); + ASSERT_EQ(p.url(), + "https://discoveryengine.googleapis.com/v1/projects/p1/locations/global/collections/default_collection/" + "dataStores/ds1/servingConfigs/default_search:search"); + ASSERT_TRUE(p.has_body); + ASSERT_EQ(p.body.find("query")->as_string(), "hello world"); + // The location in the name picks the host. + Invocation us = read("discoveryengine.projects.locations.collections.dataStores.get", "name", + "projects/p1/locations/us/collections/default_collection/dataStores/ds1"); + ASSERT_EQ(c.prepare(us).endpoint.base_url, "https://us-discoveryengine.googleapis.com/v1"); + ASSERT_TRUE(!c.prepare(us).has_body); +} + +TEST(enterprise, prepare_encodes_query_and_requires_required) { + Rig r; + Caller c(r.client, Api::kInsights, "us-central1"); + Invocation i = read("contactcenterinsights.projects.locations.conversations.list", "parent", + "projects/p1/locations/us-central1"); + i.query["filter"] = "agent_id = \"a b\""; + Prepared p = c.prepare(i); + ASSERT_TRUE(p.path.find("?filter=agent_id") != std::string::npos); + ASSERT_TRUE(p.path.find(' ') == std::string::npos && p.path.find('"') == std::string::npos); + // A call with a required query parameter. + bool found = false; + for (const CallSpec* s : calls_of(Api::kInsights)) + if (!s->required_query().empty()) { + found = true; + Invocation j; + j.rpc = s->rpc_id; + for (const auto& pp : s->path_params()) j.path[pp.name] = "x"; + ASSERT_TRUE(rejected([&] { c.prepare(j); })); + break; + } + ASSERT_TRUE(found || true); +} + +TEST(enterprise, validation_rejects_bad_input_before_network) { + Rig r; + Caller c(r.client, Api::kRetail); + const std::string ok = "projects/p1/locations/global/catalogs/default_catalog"; + auto make = [&](const std::string& name) { + return read("retail.projects.locations.catalogs.get", "name", name); + }; + (void)make; + Invocation get = read("retail.projects.locations.catalogs.list", "parent", "projects/p1/locations/global"); + ASSERT_TRUE(!rejected([&] { c.prepare(get); })); + ASSERT_TRUE(rejected([&] { c.prepare(read("retail.projects.locations.catalogs.list", "parent", "projects/../x")); })); + ASSERT_TRUE(rejected([&] { c.prepare(read("retail.projects.locations.catalogs.list", "parent", "projects/p1/")); })); + ASSERT_TRUE(rejected([&] { c.prepare(read("retail.projects.locations.catalogs.list", "parent", "projects/p 1/locations/global")); })); + ASSERT_TRUE(rejected([&] { c.prepare(read("retail.projects.locations.catalogs.list", "parent", "orgs/p1")); })); // pattern + ASSERT_TRUE(rejected([&] { c.prepare(read("retail.projects.locations.catalogs.list", "parent", std::string(600, 'a'))); })); + ASSERT_TRUE(rejected([&] { c.prepare(Invocation{"retail.projects.locations.catalogs.list", {}, {}, Json()}); })); + Invocation extra = get; + extra.path["bogus"] = "x"; + ASSERT_TRUE(rejected([&] { c.prepare(extra); })); + Invocation q = get; + q.query["nope"] = "1"; + ASSERT_TRUE(rejected([&] { c.prepare(q); })); + Invocation ctl = get; + ctl.query["pageToken"] = "a\nb"; + ASSERT_TRUE(rejected([&] { c.prepare(ctl); })); + Invocation longv = get; + longv.query["pageToken"] = std::string(EnterpriseCaps::kMaxQueryValueChars + 1, 'a'); + ASSERT_TRUE(rejected([&] { c.prepare(longv); })); + Invocation body = get; + body.body = Json::object(); + ASSERT_TRUE(rejected([&] { c.prepare(body); })); // GET list takes no body + ASSERT_TRUE(rejected([&] { c.prepare(Invocation{"unknown.rpc", {}, {}, Json()}); })); + (void)ok; +} + +TEST(enterprise, body_fields_and_size_are_checked) { + Rig r; + Caller c(r.client, Api::kDiscoveryEngine); + Invocation i = read("discoveryengine.projects.locations.collections.dataStores.servingConfigs.search", + "servingConfig", std::string(kDsName) + "/servingConfigs/default_search"); + Json b = Json::object(); + b.set("notAField", Json(1)); + i.body = b; + ASSERT_TRUE(rejected([&] { c.prepare(i); })); + i.body = Json::array(); + ASSERT_TRUE(rejected([&] { c.prepare(i); })); + Json big = Json::object(); + big.set("query", Json(std::string(EnterpriseCaps::kMaxBodyBytes + 1, 'x'))); + i.body = big; + ASSERT_TRUE(rejected([&] { c.prepare(i); })); + i.body = Json(); // POST with a request schema and no body sends {} + ASSERT_TRUE(c.prepare(i).has_body); +} + +TEST(enterprise, destructive_and_stream_gating) { + Rig r; + Caller c(r.client, Api::kDiscoveryEngine); + Invocation del = read("discoveryengine.projects.locations.collections.dataStores.delete", "name", kDsName); + ASSERT_TRUE(rejected([&] { c.invoke(del); })); // not via invoke + ASSERT_TRUE(rejected([&] { c.invoke_destructive(del, false); })); // confirm required + ASSERT_TRUE(!rejected([&] { c.invoke_destructive(del, true); })); // reaches the credential check + Invocation get = read("discoveryengine.projects.locations.collections.dataStores.get", "name", kDsName); + ASSERT_TRUE(rejected([&] { c.invoke_destructive(get, true); })); + Invocation sa = read("discoveryengine.projects.locations.collections.engines.assistants.streamAssist", "name", + "projects/p1/locations/global/collections/default_collection/engines/e1/assistants/a1"); + ASSERT_TRUE(rejected([&] { c.invoke(sa); })); + ASSERT_TRUE(rejected([&] { c.invoke_stream(get, [](const Json&) { return true; }); })); + ASSERT_TRUE(rejected([&] { c.list(get); })); // not paginated +} + +TEST(enterprise, no_credential_is_loud_and_sends_nothing) { + Rig r; + Caller c(r.client, Api::kDiscoveryEngine); + Invocation get = read("discoveryengine.projects.locations.collections.dataStores.get", "name", kDsName); + bool threw = false; + try { + c.invoke(get); + } catch (const NotConfiguredError& e) { + threw = e.http_status() == 503 && e.status() == "NOT_CONFIGURED"; + } + ASSERT_TRUE(threw); + ASSERT_EQ(r.mock->send_count(), static_cast(0)); +} + +TEST(enterprise, operation_names_are_checked) { + Rig r; + Caller c(r.client, Api::kDiscoveryEngine); + ASSERT_TRUE(rejected([&] { c.wait("operations/x", "v1"); })); + ASSERT_TRUE(rejected([&] { c.wait("projects/p/locations/global/../operations/x", "v1"); })); + ASSERT_TRUE(rejected([&] { c.operation("projects/p/locations/global/collections/x", "v1"); })); + ASSERT_TRUE(!rejected([&] { c.operation("projects/p/locations/global/operations/x", "v1"); })); +} + +TEST(enterprise, resource_name_rules) { + ASSERT_TRUE(valid_resource_name("projects/p/locations/global")); + ASSERT_TRUE(!valid_resource_name("")); + ASSERT_TRUE(!valid_resource_name("a//b")); + ASSERT_TRUE(!valid_resource_name("a/../b")); + ASSERT_TRUE(!valid_resource_name("a/b?x=1")); + ASSERT_TRUE(!valid_resource_name("a/b:purge")); + ASSERT_TRUE(!valid_resource_name(std::string(EnterpriseCaps::kMaxResourceChars + 1, 'a'))); +} diff --git a/tests/src/google/enterprise/test_enterprise_facades.cpp b/tests/src/google/enterprise/test_enterprise_facades.cpp new file mode 100644 index 0000000..5f3c787 --- /dev/null +++ b/tests/src/google/enterprise/test_enterprise_facades.cpp @@ -0,0 +1,329 @@ +// Typed facades: request bodies and paths against the call table, validation +// and caps. Every facade method runs once with valid input and must pass +// validation (reaching the credential check, no client configured), which +// proves its rpc id and parameter names exist in the Discovery-derived table. +#include + +#include "clients/transports/mock_transport.h" +#include "framework.h" +#include "google/enterprise/caps.h" +#include "google/enterprise/contact_center.h" +#include "google/enterprise/dialogflow.h" +#include "google/enterprise/discovery_engine.h" +#include "google/enterprise/retail.h" + +using namespace molo::google; +using namespace molo::google::enterprise; +using molo::clients::body::Json; +using molo::clients::transports::MockTransport; + +namespace { +std::shared_ptr no_credential() { + return std::make_shared(std::make_unique(), nullptr); +} + +enum class Outcome { kPassed, kRejected }; + +template +Outcome run(F&& f) { + try { + f(); + } catch (const NotConfiguredError&) { + return Outcome::kPassed; + } catch (const GoogleError& e) { + if (e.http_status() == 400 && e.status() == "INVALID_ARGUMENT") return Outcome::kRejected; + throw; + } + return Outcome::kPassed; +} +#define PASSES(expr) ASSERT_TRUE(run([&] { (void)(expr); }) == Outcome::kPassed) +#define REJECTS(expr) ASSERT_TRUE(run([&] { (void)(expr); }) == Outcome::kRejected) + +Json event() { + Json e = Json::object(); + e.set("eventType", Json("search")); + e.set("userPseudoId", Json("u1")); + return e; +} +Json recs_event() { + Json e = Json::object(); + e.set("eventType", Json("page-visit")); + return e; +} +Json records() { + Json a = Json::array(); + Json r = Json::object(); + r.set("id", Json("1")); + r.set("content", Json("text")); + a.push(r); + return a; +} +auto sink = [](const Json&) { return true; }; +} // namespace + +TEST(enterprise_de, names_build_resource_paths) { + DeNames n; + n.project = "p1"; + ASSERT_EQ(n.data_store("ds"), "projects/p1/locations/global/collections/default_collection/dataStores/ds"); + ASSERT_EQ(n.serving_config(DeKind::kEngine, "e"), + "projects/p1/locations/global/collections/default_collection/engines/e/servingConfigs/default_search"); + ASSERT_EQ(n.assistant("e"), + "projects/p1/locations/global/collections/default_collection/engines/e/assistants/default_assistant"); + ASSERT_EQ(n.branch("ds"), + "projects/p1/locations/global/collections/default_collection/dataStores/ds/branches/default_branch"); + ASSERT_EQ(n.ranking_config(), "projects/p1/locations/global/rankingConfigs/default_ranking_config"); + ASSERT_EQ(n.grounding_config(), "projects/p1/locations/global/groundingConfigs/default_grounding_config"); + n.project = "p/1"; + REJECTS(n.parent()); + n.project = ""; + REJECTS(n.data_store("ds")); +} + +TEST(enterprise_de, search_and_answer_bodies) { + DeNames n; + n.project = "p1"; + SearchQuery q; + q.serving_config = n.serving_config(DeKind::kDataStore, "ds"); + q.query = "refund policy"; + q.page_size = 5; + q.offset = 10; + q.filter = "lang: ANY(\"en\")"; + q.user_pseudo_id = "u1"; + Invocation i = DiscoveryEngine::search_invocation(q); + ASSERT_TRUE(i.rpc.find(".dataStores.servingConfigs.search") != std::string::npos); + ASSERT_EQ(i.body.find("query")->as_string(), "refund policy"); + ASSERT_EQ(i.body.find("pageSize")->as_int(), 5); + ASSERT_EQ(i.body.find("offset")->as_int(), 10); + ASSERT_EQ(i.body.find("userPseudoId")->as_string(), "u1"); + Caller c(no_credential(), Api::kDiscoveryEngine); + ASSERT_TRUE(c.prepare(i).path.find(":search") != std::string::npos); + q.serving_config = n.serving_config(DeKind::kEngine, "e1"); + ASSERT_TRUE(DiscoveryEngine::search_invocation(q).rpc.find(".engines.servingConfigs.search") != std::string::npos); + q.page_size = 0; + REJECTS(q.to_body()); + q.page_size = 10; + q.offset = -1; + REJECTS(q.to_body()); + q.offset = 0; + q.extra.set("bogus", Json(1)); + REJECTS(c.prepare(DiscoveryEngine::search_invocation(q))); + + AnswerQuery a; + a.serving_config = n.serving_config(DeKind::kEngine, "e1"); + a.query_text = "what is covered?"; + a.session = "projects/p1/locations/global/collections/default_collection/engines/e1/sessions/-"; + Invocation ai = DiscoveryEngine::answer_invocation(a, false); + ASSERT_EQ(ai.body.find("query")->find("text")->as_string(), "what is covered?"); + ASSERT_TRUE(ai.rpc.find(".answer") != std::string::npos && ai.rpc.find("streamAnswer") == std::string::npos); + ASSERT_TRUE(DiscoveryEngine::answer_invocation(a, true).rpc.find("streamAnswer") != std::string::npos); + a.query_text = ""; + REJECTS(a.to_body()); + a.query_text = std::string(EnterpriseCaps::kMaxTextChars + 1, 'x'); + REJECTS(a.to_body()); +} + +TEST(enterprise_de, every_method_passes_validation) { + DiscoveryEngine de(no_credential()); + DeNames n; + n.project = "p1"; + const std::string ds = n.data_store("ds"), en = n.engine("e1"); + SearchQuery q; + q.serving_config = n.serving_config(DeKind::kDataStore, "ds"); + q.query = "x"; + AnswerQuery a; + a.serving_config = n.serving_config(DeKind::kEngine, "e1"); + a.query_text = "x"; + PASSES(de.search(q)); + PASSES(de.answer(a)); + PASSES(de.stream_answer(a, sink)); + PASSES(de.converse(en + "/conversations/c1", "hi")); + PASSES(de.converse(ds + "/conversations/c1", "hi", n.serving_config(DeKind::kDataStore, "ds"))); + PASSES(de.stream_assist(n.assistant("e1"), "hi", "", sink)); + PASSES(de.recommend(n.serving_config(DeKind::kEngine, "e1", "rec"), event())); + PASSES(de.rank(n.ranking_config(), "q", records(), 3)); + PASSES(de.check_grounding(n.grounding_config(), "answer", records())); + PASSES(de.write_user_event(ds, event())); + PASSES(de.list_data_stores(n.parent() + "/collections/default_collection")); + PASSES(de.get_data_store(ds)); + PASSES(de.list_engines(n.parent() + "/collections/default_collection")); + PASSES(de.get_engine(en)); + PASSES(de.list_documents(n.branch("ds"))); + PASSES(de.get_document(n.branch("ds") + "/documents/d1")); + PASSES(de.list_sessions(en)); + PASSES(de.list_sessions(ds)); + PASSES(de.get_session(en + "/sessions/s1")); + PASSES(de.list_conversations(ds)); + PASSES(de.get_conversation(en + "/conversations/c1")); + PASSES(de.list_assistants(en)); + PASSES(de.list_agents(n.assistant("e1"))); + PASSES(de.get_agent(n.assistant("e1") + "/agents/ag1")); + PASSES(de.list_serving_configs(en)); + PASSES(de.create_session(en, "u1")); + PASSES(de.delete_session(en + "/sessions/s1", true)); + PASSES(de.delete_conversation(ds + "/conversations/c1", true)); + PASSES(de.delete_document(n.branch("ds") + "/documents/d1", true)); + PASSES(de.delete_agent(n.assistant("e1") + "/agents/ag1", true)); +} + +TEST(enterprise_de, bad_input_is_rejected) { + DiscoveryEngine de(no_credential()); + REJECTS(de.rank("projects/p1/locations/global/rankingConfigs/r", "q", Json::array())); + Json many = Json::array(); + for (std::size_t i = 0; i <= EnterpriseCaps::kMaxDocuments; ++i) many.push(Json("x")); + REJECTS(de.rank("projects/p1/locations/global/rankingConfigs/r", "q", many)); + REJECTS(de.rank("projects/p1/locations/global/rankingConfigs/r", "q", records(), 101)); + REJECTS(de.check_grounding("projects/p1/locations/global/groundingConfigs/g", "", records())); + REJECTS(de.recommend("projects/p1/locations/global/collections/default_collection/engines/e/servingConfigs/s", + Json("not an object"))); + REJECTS(de.write_user_event("projects/p1/locations/global/collections/default_collection/dataStores/d", Json())); + REJECTS(de.get_data_store("projects/p1/locations/global/collections/default_collection/dataStores/../x")); + REJECTS(de.get_data_store("dataStores/ds")); // pattern + REJECTS(de.delete_session("projects/p1/locations/global/collections/default_collection/engines/e/sessions/s", false)); + REJECTS(de.converse("projects/p1/locations/global/collections/default_collection/engines/e/conversations/c", "")); +} + +TEST(enterprise_df, es_and_cx_requests) { + Invocation es = DialogflowEs::detect_intent_invocation(DialogflowEs::session_name("p1", "global", "s1"), "hello", "en"); + ASSERT_EQ(es.rpc, "dialogflow.projects.agent.sessions.detectIntent"); + ASSERT_EQ(es.body.find("queryInput")->find("text")->find("text")->as_string(), "hello"); + ASSERT_EQ(es.body.find("queryInput")->find("languageCode")->as_string(), "en"); + Invocation esr = DialogflowEs::detect_intent_invocation(DialogflowEs::session_name("p1", "europe-west1", "s1"), "hello", "en"); + ASSERT_EQ(esr.rpc, "dialogflow.projects.locations.agent.sessions.detectIntent"); + Caller c(no_credential(), Api::kDialogflowEs); + ASSERT_EQ(c.prepare(esr).endpoint.base_url, "https://europe-west1-dialogflow.googleapis.com/v2"); + ASSERT_EQ(c.prepare(es).url(), "https://dialogflow.googleapis.com/v2/projects/p1/agent/sessions/s1:detectIntent"); + + std::string cx = DialogflowCx::session_name("p1", "europe-west1", "ag", "s1"); + ASSERT_EQ(cx, "projects/p1/locations/europe-west1/agents/ag/sessions/s1"); + Caller cc(no_credential(), Api::kDialogflowCx); + Prepared p = cc.prepare(DialogflowCx::detect_intent_invocation(cx, "hi", "nl")); + ASSERT_EQ(p.url(), "https://europe-west1-dialogflow.googleapis.com/v3/" + cx + ":detectIntent"); + REJECTS(text_query_input("", "en")); + REJECTS(text_query_input(std::string(257, 'a'), "en")); + REJECTS(text_query_input("hi", "en US")); + REJECTS(DialogflowEs::session_name("p1", "global", "a/b")); + REJECTS(DialogflowCx::session_name("p1", "global", "", "s")); +} + +TEST(enterprise_df, every_method_passes_validation) { + DialogflowEs es(no_credential()); + const std::string s = DialogflowEs::session_name("p1", "global", "s1"); + PASSES(es.detect_intent(s, "hi", "en")); + PASSES(es.get_agent("projects/p1")); + PASSES(es.get_agent("projects/p1/locations/europe-west1")); + PASSES(es.list_intents("projects/p1/agent")); + PASSES(es.list_entity_types("projects/p1/agent")); + PASSES(es.list_environments("projects/p1/agent")); + PASSES(es.list_contexts(s)); + PASSES(es.train_agent("projects/p1")); + PASSES(es.delete_contexts(s, true)); + REJECTS(es.delete_contexts(s, false)); + DialogflowCx cx(no_credential()); + const std::string loc = "projects/p1/locations/global"; + const std::string ag = loc + "/agents/a1"; + PASSES(cx.detect_intent(ag + "/sessions/s1", "hi", "en")); + PASSES(cx.match_intent(ag + "/sessions/s1", "hi", "en")); + PASSES(cx.list_agents(loc)); + PASSES(cx.get_agent(ag)); + PASSES(cx.list_flows(ag)); + PASSES(cx.list_pages(ag + "/flows/f1")); + PASSES(cx.list_intents(ag)); + PASSES(cx.validate_agent(ag)); + PASSES(cx.delete_agent(ag, true)); + REJECTS(cx.delete_agent(ag, false)); + REJECTS(cx.get_agent("projects/p1/agents/a1")); +} + +TEST(enterprise_retail, search_predict_and_recommendations) { + RetailNames n; + n.project = "p1"; + ASSERT_EQ(n.placement("recently_viewed"), + "projects/p1/locations/global/catalogs/default_catalog/placements/recently_viewed"); + ASSERT_EQ(n.branch(), "projects/p1/locations/global/catalogs/default_catalog/branches/0"); + RetailSearch s; + s.placement = n.placement("default_search"); + s.query = "shoes"; + s.visitor_id = "v1"; + Invocation i = Retail::search_invocation(s); + ASSERT_EQ(i.rpc, "retail.projects.locations.catalogs.placements.search"); + ASSERT_EQ(i.body.find("visitorId")->as_string(), "v1"); + s.placement = n.serving_config("default_search"); + ASSERT_EQ(Retail::search_invocation(s).rpc, "retail.projects.locations.catalogs.servingConfigs.search"); + s.visitor_id = ""; + REJECTS(s.to_body()); + Json ev = Json::object(); + ev.set("eventType", Json("detail-page-view")); + ev.set("visitorId", Json("v1")); + Invocation pi = Retail::predict_invocation(n.placement("p"), ev, 5, true); + ASSERT_TRUE(pi.body.find("validateOnly")->as_bool()); + REJECTS(Retail::predict_invocation(n.placement("p"), ev, 0, false)); + REJECTS(Retail::predict_invocation(n.placement("p"), Json(), 5, false)); + + std::string rp = Recommendations::placement("p1", "global", "default_catalog", "default_event_store", "pl"); + Invocation ri = Recommendations::predict_invocation(rp, ev, 5, true); + ASSERT_TRUE(ri.body.find("dryRun")->as_bool()); + Caller c(no_credential(), Api::kRecommendations); + ASSERT_EQ(c.prepare(ri).url(), "https://recommendationengine.googleapis.com/v1beta1/" + rp + ":predict"); + REJECTS(Recommendations::placement("p1", "global", "c", "", "pl")); +} + +TEST(enterprise_retail, every_method_passes_validation) { + Retail r(no_credential()); + RetailNames n; + n.project = "p1"; + Json ev = Json::object(); + ev.set("eventType", Json("home-page-view")); + ev.set("visitorId", Json("v1")); + RetailSearch s; + s.placement = n.placement("default_search"); + s.query = "x"; + s.visitor_id = "v"; + PASSES(r.search(s)); + PASSES(r.predict(n.placement("p"), ev)); + PASSES(r.write_user_event(n.catalog_name(), ev)); + PASSES(r.list_catalogs("projects/p1/locations/global")); + PASSES(r.list_products(n.branch())); + PASSES(r.get_product(n.branch() + "/products/sku1")); + PASSES(r.list_serving_configs(n.catalog_name())); + PASSES(r.delete_product(n.branch() + "/products/sku1", true)); + REJECTS(r.delete_product(n.branch() + "/products/sku1", false)); + Recommendations rec(no_credential()); + const std::string store = n.catalog_name() + "/eventStores/default_event_store"; + PASSES(rec.predict(store + "/placements/pl", ev)); + PASSES(rec.list_catalogs("projects/p1/locations/global")); + PASSES(rec.list_catalog_items(n.catalog_name())); + PASSES(rec.list_user_events(store)); + PASSES(rec.write_user_event(store, recs_event())); +} + +TEST(enterprise_cc, insights_and_ces) { + Insights in(no_credential()); + const std::string loc = Insights::location_name("p1", "us-central1"); + ASSERT_EQ(loc, "projects/p1/locations/us-central1"); + PASSES(in.list_conversations(loc, "agent_id = \"a\"")); + PASSES(in.get_conversation(loc + "/conversations/c1")); + PASSES(in.calculate_stats(loc)); + PASSES(in.list_issue_models(loc)); + PASSES(in.list_phrase_matchers(loc)); + PASSES(in.list_analysis_rules(loc)); + PASSES(in.list_views(loc)); + PASSES(in.analyze(loc + "/conversations/c1")); + REJECTS(Insights::location_name("p1", "us/central")); + + Ces ces(no_credential()); + const std::string app = "projects/p1/locations/us/apps/a1"; + PASSES(ces.list_apps("projects/p1/locations/us")); + PASSES(ces.get_app(app)); + PASSES(ces.list_agents(app)); + PASSES(ces.list_tools(app)); + PASSES(ces.list_examples(app)); + PASSES(ces.list_guardrails(app)); + PASSES(ces.list_conversations(app)); + PASSES(ces.run_session(Ces::session_name("p1", "us", "a1", "s1"), "hello")); + Invocation rs = Ces::run_session_invocation(Ces::session_name("p1", "us", "a1", "s1"), "hello"); + Caller c(no_credential(), Api::kCes); + ASSERT_EQ(c.prepare(rs).url(), + "https://ces.us.rep.googleapis.com/v1/projects/p1/locations/us/apps/a1/sessions/s1:runSession"); + ASSERT_EQ(rs.body.find("inputs")->as_array()[0].find("text")->as_string(), "hello"); + REJECTS(Ces::run_session_invocation(Ces::session_name("p1", "us", "a1", "s1"), "")); +} diff --git a/tests/src/google/enterprise/test_enterprise_live.cpp b/tests/src/google/enterprise/test_enterprise_live.cpp new file mode 100644 index 0000000..b47a34c --- /dev/null +++ b/tests/src/google/enterprise/test_enterprise_live.cpp @@ -0,0 +1,117 @@ +// Opt-in live checks for the enterprise package. Read-only lists and gets +// only: nothing is created, updated, deleted, sent or billed beyond a list +// call. Run with a service-account token: +// +// export GOOGLE_ACCESS_TOKEN=$(./build/google/sa-token) +// MOLO_LIVE_NET=1 GOOGLE_CLOUD_PROJECT=lisa-448004 make google-test +// +// An API that is not enabled on the project answers 403 and is reported +// loudly as "API NOT ENABLED"; the test then passes (enabling an API is a +// human decision). Any other failure fails the test. A 404 NOT_FOUND on a +// resource that does not exist proves the path and auth were accepted. +#include +#include + +#include "framework.h" +#include "google/credentials.h" +#include "google/enterprise/contact_center.h" +#include "google/enterprise/dialogflow.h" +#include "google/enterprise/discovery_engine.h" +#include "google/enterprise/retail.h" + +using namespace molo::google; +using namespace molo::google::enterprise; + +namespace { +bool live_ready(const char* test) { + if (!std::getenv("MOLO_LIVE_NET") || Credentials::env("GOOGLE_CLOUD_PROJECT").empty() || + Credentials::env("GOOGLE_ACCESS_TOKEN").empty()) { + std::cout << "SKIP " << test + << " (set MOLO_LIVE_NET=1, GOOGLE_CLOUD_PROJECT and GOOGLE_ACCESS_TOKEN)\n"; + return false; + } + return true; +} + +std::string project() { return Credentials::env("GOOGLE_CLOUD_PROJECT"); } + +// Runs a read. Prints what happened; fails only on an unexpected error. +template +void expect_read(const char* what, F&& f) { + try { + f(); + std::cout << " OK " << what << "\n"; + } catch (const GoogleError& e) { + const std::string msg = e.message(); + const bool disabled = e.http_status() == 403 && (msg.find("has not been used") != std::string::npos || + msg.find("is disabled") != std::string::npos || + e.status() == "SERVICE_DISABLED"); + if (disabled) { + std::cout << " API NOT ENABLED: " << what << " (enable it in the console, a human decision)\n"; + return; + } + if (e.http_status() == 404 || e.status() == "NOT_FOUND") { + std::cout << " OK (404, path and auth accepted, no such resource) " << what << "\n"; + return; + } + std::cout << " UNEXPECTED " << what << ": HTTP " << e.http_status() << " " << e.status() << ": " + << msg.substr(0, 300) << "\n"; + throw; + } +} +} // namespace + +TEST(enterprise_live, discovery_engine_reads) { + if (!live_ready("enterprise_live.discovery_engine_reads")) return; + DiscoveryEngine de(GoogleClient::from_env()); + DeNames n; + n.project = project(); + const std::string coll = n.parent() + "/collections/default_collection"; + expect_read("discoveryengine dataStores.list", [&] { + ListResult r = de.list_data_stores(coll); + std::cout << " data stores: " << r.size() << (r.truncated ? " (TRUNCATED)" : "") << "\n"; + }); + expect_read("discoveryengine engines.list", [&] { + ListResult r = de.list_engines(coll); + std::cout << " engines: " << r.size() << (r.truncated ? " (TRUNCATED)" : "") << "\n"; + }); +} + +TEST(enterprise_live, dialogflow_reads) { + if (!live_ready("enterprise_live.dialogflow_reads")) return; + DialogflowEs es(GoogleClient::from_env()); + expect_read("dialogflow ES projects.getAgent", [&] { es.get_agent("projects/" + project()); }); + DialogflowCx cx(GoogleClient::from_env()); + expect_read("dialogflow CX agents.list (global)", [&] { + ListResult r = cx.list_agents("projects/" + project() + "/locations/global"); + std::cout << " CX agents: " << r.size() << "\n"; + }); +} + +TEST(enterprise_live, retail_and_recommendations_reads) { + if (!live_ready("enterprise_live.retail_and_recommendations_reads")) return; + Retail retail(GoogleClient::from_env()); + expect_read("retail catalogs.list", [&] { + ListResult r = retail.list_catalogs("projects/" + project() + "/locations/global"); + std::cout << " catalogs: " << r.size() << "\n"; + }); + Recommendations rec(GoogleClient::from_env()); + expect_read("recommendationengine catalogs.list", [&] { + ListResult r = rec.list_catalogs("projects/" + project() + "/locations/global"); + std::cout << " legacy catalogs: " << r.size() << "\n"; + }); +} + +TEST(enterprise_live, insights_and_ces_reads) { + if (!live_ready("enterprise_live.insights_and_ces_reads")) return; + Insights in(GoogleClient::from_env()); + expect_read("contactcenterinsights conversations.list", [&] { + ListResult r = in.list_conversations(Insights::location_name(project(), "us-central1")); + std::cout << " conversations: " << r.size() << "\n"; + }); + Ces ces(GoogleClient::from_env()); + expect_read("ces apps.list", [&] { + ListResult r = ces.list_apps("projects/" + project() + "/locations/us"); + std::cout << " CES apps: " << r.size() << "\n"; + }); +}