@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240704 → 0.0.20240715

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +1111 -12
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1beta
12
- // Revision: 20240704
12
+ // Revision: 20240715
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -207,7 +207,7 @@ declare namespace gapi.client {
207
207
  document?: string;
208
208
  /** If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets. */
209
209
  snippetInfo?: GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo[];
210
- /** Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL). */
210
+ /** Data representation. The structured JSON data for the document. It's populated from the struct data from the Document , or the Chunk in search result . */
211
211
  structData?: {[P in string]: any};
212
212
  /** Title. */
213
213
  title?: string;
@@ -316,6 +316,7 @@ declare namespace gapi.client {
316
316
  /** Operation last update time. If the operation is done, this is also the finish time. */
317
317
  updateTime?: string;
318
318
  }
319
+ interface GoogleCloudDiscoveryengineV1alphaCreateEvaluationMetadata {}
319
320
  interface GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata {
320
321
  /** Operation create time. */
321
322
  createTime?: string;
@@ -328,6 +329,10 @@ declare namespace gapi.client {
328
329
  /** Operation last update time. If the operation is done, this is also the finish time. */
329
330
  updateTime?: string;
330
331
  }
332
+ interface GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec {
333
+ /** Whether or not to enable and include custom fine tuned search adaptor model. */
334
+ enableSearchAdaptor?: boolean;
335
+ }
331
336
  interface GoogleCloudDiscoveryengineV1alphaCustomTuningModel {
332
337
  /** Timestamp the Model was created at. */
333
338
  createTime?: string;
@@ -543,6 +548,34 @@ declare namespace gapi.client {
543
548
  /** Total number of documents. */
544
549
  documentCount?: string;
545
550
  }
551
+ interface GoogleCloudDiscoveryengineV1alphaEvaluation {
552
+ /** Output only. Timestamp the Evaluation was created at. */
553
+ createTime?: string;
554
+ /** Output only. Timestamp the Evaluation was completed at. */
555
+ endTime?: string;
556
+ /** Output only. The error that occurred during evaluation. Only populated when the evaluation's state is FAILED. */
557
+ error?: GoogleRpcStatus;
558
+ /** Output only. A sample of errors encountered while processing the request. */
559
+ errorSamples?: GoogleRpcStatus[];
560
+ /** Required. The specification of the evaluation. */
561
+ evaluationSpec?: GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpec;
562
+ /** Immutable. The full resource name of the Evaluation, in the format of `projects/{project}/locations/{location}/evaluations/{evaluation}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
563
+ name?: string;
564
+ /** Output only. The metrics produced by the evaluation, averaged across all SampleQuerys in the SampleQuerySet. Only populated when the evaluation's state is SUCCEEDED. */
565
+ qualityMetrics?: GoogleCloudDiscoveryengineV1alphaQualityMetrics;
566
+ /** Output only. The state of the evaluation. */
567
+ state?: string;
568
+ }
569
+ interface GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpec {
570
+ /** Required. The specification of the query set. */
571
+ querySetSpec?: GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec;
572
+ /** Required. The search request that is used to perform the evaluation. Only the following fields within SearchRequest are supported; if any other fields are provided, an UNSUPPORTED error will be returned: * SearchRequest.serving_config * SearchRequest.branch * SearchRequest.canonical_filter * SearchRequest.query_expansion_spec * SearchRequest.spell_correction_spec * SearchRequest.content_search_spec * SearchRequest.user_pseudo_id */
573
+ searchRequest?: GoogleCloudDiscoveryengineV1alphaSearchRequest;
574
+ }
575
+ interface GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec {
576
+ /** Required. The full resource name of the SampleQuerySet used for the evaluation, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. */
577
+ sampleQuerySet?: string;
578
+ }
546
579
  interface GoogleCloudDiscoveryengineV1alphaExportUserEventsMetadata {
547
580
  /** Operation create time. */
548
581
  createTime?: string;
@@ -579,6 +612,10 @@ declare namespace gapi.client {
579
612
  /** If searchable_option is SEARCHABLE_ENABLED, field values are searchable by text queries in SearchService.Search. If SEARCHABLE_ENABLED but field type is numerical, field values will not be searchable by text queries in SearchService.Search, as there are no text values associated to numerical fields. If searchable_option is unset, the server behavior defaults to SEARCHABLE_DISABLED for fields that support setting searchable options. Only `string` fields that have no key property mapping support setting searchable_option. For those fields that do not support setting searchable options, the server will skip searchable option setting, and setting searchable_option for those fields will throw `INVALID_ARGUMENT` error. */
580
613
  searchableOption?: string;
581
614
  }
615
+ interface GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse {
616
+ /** Document data keyed by URI pattern. For example: document_data_map = { "www.url1.com/*": { "Categories": ["category1", "category2"] }, "www.url2.com/*": { "Categories": ["category3"] } } */
617
+ documentDataMap?: {[P in string]: {[P in string]: any}};
618
+ }
582
619
  interface GoogleCloudDiscoveryengineV1alphaIdpConfig {
583
620
  /** External Identity provider config. */
584
621
  externalIdpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig;
@@ -627,6 +664,24 @@ declare namespace gapi.client {
627
664
  /** Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message. */
628
665
  gcsPrefix?: string;
629
666
  }
667
+ interface GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata {
668
+ /** ImportSampleQueries operation create time. */
669
+ createTime?: string;
670
+ /** Count of SampleQuerys that failed to be imported. */
671
+ failureCount?: string;
672
+ /** Count of SampleQuerys successfully imported. */
673
+ successCount?: string;
674
+ /** Total count of SampleQuerys that were processed. */
675
+ totalCount?: string;
676
+ /** ImportSampleQueries operation last update time. If the operation is done, this is also the finish time. */
677
+ updateTime?: string;
678
+ }
679
+ interface GoogleCloudDiscoveryengineV1alphaImportSampleQueriesResponse {
680
+ /** The desired location of errors incurred during the Import. */
681
+ errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
682
+ /** A sample of errors encountered while processing the request. */
683
+ errorSamples?: GoogleRpcStatus[];
684
+ }
630
685
  interface GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata {
631
686
  /** Operation create time. */
632
687
  createTime?: string;
@@ -661,6 +716,16 @@ declare namespace gapi.client {
661
716
  /** Count of user events imported, but with Document information not found in the existing Branch. */
662
717
  unjoinedEventsCount?: string;
663
718
  }
719
+ interface GoogleCloudDiscoveryengineV1alphaInterval {
720
+ /** Exclusive upper bound. */
721
+ exclusiveMaximum?: number;
722
+ /** Exclusive lower bound. */
723
+ exclusiveMinimum?: number;
724
+ /** Inclusive upper bound. */
725
+ maximum?: number;
726
+ /** Inclusive lower bound. */
727
+ minimum?: number;
728
+ }
664
729
  interface GoogleCloudDiscoveryengineV1alphaLanguageInfo {
665
730
  /** Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. */
666
731
  language?: string;
@@ -766,6 +831,28 @@ declare namespace gapi.client {
766
831
  /** The total count of events purged as a result of the operation. */
767
832
  purgeCount?: string;
768
833
  }
834
+ interface GoogleCloudDiscoveryengineV1alphaQualityMetrics {
835
+ /** Normalized discounted cumulative gain (NDCG) per document, at various top-k cutoff levels. NDCG measures the ranking quality, giving higher relevance to top results. Example (top-3): Suppose SampleQuery with three retrieved documents (D1, D2, D3) and binary relevance judgements (1 for relevant, 0 for not relevant): Retrieved: [D3 (0), D1 (1), D2 (1)] Ideal: [D1 (1), D2 (1), D3 (0)] Calculate NDCG@3 for each SampleQuery: * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13 * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63 * NDCG@3: 1.13/1.63 = 0.693 */
836
+ docNdcg?: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics;
837
+ /** Precision per document, at various top-k cutoff levels. Precision is the fraction of retrieved documents that are relevant. Example (top-5): * For a single SampleQuery, If 4 out of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 = 0.8 */
838
+ docPrecision?: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics;
839
+ /** Recall per document, at various top-k cutoff levels. Recall is the fraction of relevant documents retrieved out of all relevant documents. Example (top-5): * For a single SampleQuery, If 3 out of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6 */
840
+ docRecall?: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics;
841
+ /** Normalized discounted cumulative gain (NDCG) per page, at various top-k cutoff levels. NDCG measures the ranking quality, giving higher relevance to top results. Example (top-3): Suppose SampleQuery with three retrieved pages (P1, P2, P3) and binary relevance judgements (1 for relevant, 0 for not relevant): Retrieved: [P3 (0), P1 (1), P2 (1)] Ideal: [P1 (1), P2 (1), P3 (0)] Calculate NDCG@3 for SampleQuery: * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13 * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63 * NDCG@3: 1.13/1.63 = 0.693 */
842
+ pageNdcg?: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics;
843
+ /** Recall per page, at various top-k cutoff levels. Recall is the fraction of relevant pages retrieved out of all relevant pages. Example (top-5): * For a single SampleQuery, if 3 out of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6 */
844
+ pageRecall?: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics;
845
+ }
846
+ interface GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics {
847
+ /** The top-1 value. */
848
+ top1?: number;
849
+ /** The top-10 value. */
850
+ top10?: number;
851
+ /** The top-3 value. */
852
+ top3?: number;
853
+ /** The top-5 value. */
854
+ top5?: number;
855
+ }
769
856
  interface GoogleCloudDiscoveryengineV1alphaQuery {
770
857
  /** Unique Id for the query. */
771
858
  queryId?: string;
@@ -816,6 +903,232 @@ declare namespace gapi.client {
816
903
  /** The structured representation of the schema. */
817
904
  structSchema?: {[P in string]: any};
818
905
  }
906
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequest {
907
+ /** Boost specification to boost certain documents. For more information on boosting, see [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) */
908
+ boostSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec;
909
+ /** The branch resource name, such as `projects/*‍/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`. Use `default_branch` as the branch ID or leave this field empty, to search documents under the default branch. */
910
+ branch?: string;
911
+ /** The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement such as query expansion is needed. In the case a query does not have a sufficient amount of results this filter will be used to determine whether or not to enable the query expansion flow. The original filter will still be used for the query expanded search. This field is strongly recommended to achieve high search quality. For more information about filter syntax, see SearchRequest.filter. */
912
+ canonicalFilter?: string;
913
+ /** A specification for configuring the behavior of content search. */
914
+ contentSearchSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
915
+ /** Custom fine tuning configs. If set, it has higher priority than the configs set in ServingConfig.custom_fine_tuning_spec. */
916
+ customFineTuningSpec?: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec;
917
+ /** Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level. */
918
+ dataStoreSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec[];
919
+ /** Uses the provided embedding to do additional semantic document retrieval. The retrieval is based on the dot product of SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document embedding that is provided in SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it will use ServingConfig.EmbeddingConfig.field_path. */
920
+ embeddingSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec;
921
+ /** Facet specifications for faceted search. If empty, no facets are returned. A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` error is returned. */
922
+ facetSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec[];
923
+ /** The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
924
+ filter?: string;
925
+ /** Raw image query. */
926
+ imageQuery?: GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery;
927
+ /** The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). This field helps to better interpret the query. If a value isn't specified, the query language code is automatically detected, which may not be accurate. */
928
+ languageCode?: string;
929
+ /** If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional natural language query understanding will be done. */
930
+ naturalLanguageQueryUnderstandingSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec;
931
+ /** A 0-indexed integer that specifies the current offset (that is, starting result location, amongst the Documents deemed by the API as relevant) in search results. This field is only considered if page_token is unset. If this field is negative, an `INVALID_ARGUMENT` is returned. */
932
+ offset?: number;
933
+ /** The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering for retail search, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
934
+ orderBy?: string;
935
+ /** Maximum number of Documents to return. The maximum allowed value depends on the data type. Values above the maximum value are coerced to the maximum value. * Websites with basic indexing: Default `10`, Maximum `25`. * Websites with advanced indexing: Default `25`, Maximum `50`. * Other: Default `50`, Maximum `100`. If this field is negative, an `INVALID_ARGUMENT` is returned. */
936
+ pageSize?: number;
937
+ /** A page token received from a previous SearchService.Search call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SearchService.Search must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned. */
938
+ pageToken?: string;
939
+ /** Additional search parameters. For public website search only, supported values are: * `user_country_code`: string. Default empty. If set to non-empty, results are restricted or boosted based on the location provided. For example, `user_country_code: "au"` For available codes see [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) * `search_type`: double. Default empty. Enables non-webpage searching depending on the value. The only valid non-default value is 1, which enables image searching. For example, `search_type: 1` */
940
+ params?: {[P in string]: any};
941
+ /** Raw search query. */
942
+ query?: string;
943
+ /** The query expansion specification that specifies the conditions under which query expansion occurs. */
944
+ queryExpansionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec;
945
+ /** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
946
+ rankingExpression?: string;
947
+ /** The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided. */
948
+ regionCode?: string;
949
+ /** The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. */
950
+ relevanceThreshold?: string;
951
+ /** Whether to turn on safe search. This is only supported for website search. */
952
+ safeSearch?: boolean;
953
+ /** Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical. */
954
+ searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec;
955
+ /** Required. The resource name of the Search serving config, such as `projects/*‍/locations/global/collections/default_collection/engines/*‍/servingConfigs/default_serving_config`, or `projects/*‍/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
956
+ servingConfig?: string;
957
+ /** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Auto-session mode: when `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users can use the create-session API to create a session manually. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
958
+ session?: string;
959
+ /** Session specification. Can be used only when `session` is set. */
960
+ sessionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec;
961
+ /** The spell correction specification that specifies the mode under which spell correction takes effect. */
962
+ spellCorrectionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec;
963
+ /** Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics. */
964
+ userInfo?: GoogleCloudDiscoveryengineV1alphaUserInfo;
965
+ /** The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details. */
966
+ userLabels?: {[P in string]: string};
967
+ /** A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. This should be the same identifier as UserEvent.user_pseudo_id and CompleteQueryRequest.user_pseudo_id The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
968
+ userPseudoId?: string;
969
+ }
970
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec {
971
+ /** Condition boost specifications. If a document matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20. */
972
+ conditionBoostSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec[];
973
+ }
974
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec {
975
+ /** Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored. Only one of the (condition, boost) combination or the boost_control_spec below are set. If both are set then the global boost is ignored and the more fine-grained boost_control_spec is applied. */
976
+ boost?: number;
977
+ /** Complex specification for custom ranking based on customer defined attribute value. */
978
+ boostControlSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec;
979
+ /** An expression which specifies a boost condition. The syntax and supported fields are the same as a filter expression. See SearchRequest.filter for detail syntax and limitations. Examples: * To boost documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue": `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` */
980
+ condition?: string;
981
+ }
982
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec {
983
+ /** The attribute type to be used to determine the boost amount. The attribute value can be derived from the field value of the specified field_name. In the case of numerical it is straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, attribute_value = (time.now() - datetime_field_value). */
984
+ attributeType?: string;
985
+ /** The control points used to define the curve. The monotonic function (defined through the interpolation_type above) passes through the control points listed here. */
986
+ controlPoints?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint[];
987
+ /** The name of the field whose value will be used to determine the boost amount. */
988
+ fieldName?: string;
989
+ /** The interpolation type to be applied to connect the control points listed below. */
990
+ interpolationType?: string;
991
+ }
992
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint {
993
+ /** Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 duration value). The pattern for this is: `nDnM]`. */
994
+ attributeValue?: string;
995
+ /** The value between -1 to 1 by which to boost the score if the attribute_value evaluates to the value specified above. */
996
+ boostAmount?: number;
997
+ }
998
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec {
999
+ /** Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS */
1000
+ chunkSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec;
1001
+ /** If there is no extractive_content_spec provided, there will be no extractive answer in the search response. */
1002
+ extractiveContentSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec;
1003
+ /** Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`. */
1004
+ searchResultMode?: string;
1005
+ /** If `snippetSpec` is not specified, snippets are not included in the search response. */
1006
+ snippetSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec;
1007
+ /** If `summarySpec` is not specified, summaries are not included in the search response. */
1008
+ summarySpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec;
1009
+ }
1010
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec {
1011
+ /** The number of next chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no next chunks will be returned. */
1012
+ numNextChunks?: number;
1013
+ /** The number of previous chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no previous chunks will be returned. */
1014
+ numPreviousChunks?: number;
1015
+ }
1016
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec {
1017
+ /** The maximum number of extractive answers returned in each search result. An extractive answer is a verbatim answer extracted from the original document, which provides a precise and contextually relevant answer to the search query. If the number of matching answers is less than the `max_extractive_answer_count`, return all of the answers. Otherwise, return the `max_extractive_answer_count`. At most five answers are returned for each SearchResult. */
1018
+ maxExtractiveAnswerCount?: number;
1019
+ /** The max number of extractive segments returned in each search result. Only applied if the DataStore is set to DataStore.ContentConfig.CONTENT_REQUIRED or DataStore.solution_types is SOLUTION_TYPE_CHAT. An extractive segment is a text segment extracted from the original document that is relevant to the search query, and, in general, more verbose than an extractive answer. The segment could then be used as input for LLMs to generate summaries and answers. If the number of matching segments is less than `max_extractive_segment_count`, return all of the segments. Otherwise, return the `max_extractive_segment_count`. */
1020
+ maxExtractiveSegmentCount?: number;
1021
+ /** Return at most `num_next_segments` segments after each selected segments. */
1022
+ numNextSegments?: number;
1023
+ /** Specifies whether to also include the adjacent from each selected segments. Return at most `num_previous_segments` segments before each selected segments. */
1024
+ numPreviousSegments?: number;
1025
+ /** Specifies whether to return the confidence score from the extractive segments in each search result. This feature is available only for new or allowlisted data stores. To allowlist your data store, contact your Customer Engineer. The default value is `false`. */
1026
+ returnExtractiveSegmentScore?: boolean;
1027
+ }
1028
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec {
1029
+ /** [DEPRECATED] This field is deprecated. To control snippet return, use `return_snippet` field. For backwards compatibility, we will return snippet if max_snippet_count > 0. */
1030
+ maxSnippetCount?: number;
1031
+ /** [DEPRECATED] This field is deprecated and will have no affect on the snippet. */
1032
+ referenceOnly?: boolean;
1033
+ /** If `true`, then return snippet. If no snippet can be generated, we return "No snippet is available for this page." A `snippet_status` with `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned. */
1034
+ returnSnippet?: boolean;
1035
+ }
1036
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec {
1037
+ /** Specifies whether to filter out adversarial queries. The default value is `false`. Google employs search-query classification to detect adversarial queries. No summary is returned if the search query is classified as an adversarial query. For example, a user might ask a question regarding negative comments about the company or submit a query designed to generate unsafe, policy-violating output. If this field is set to `true`, we skip generating summaries for adversarial queries and return fallback messages instead. */
1038
+ ignoreAdversarialQuery?: boolean;
1039
+ /** Specifies whether to filter out queries that are not summary-seeking. The default value is `false`. Google employs search-query classification to detect summary-seeking queries. No summary is returned if the search query is classified as a non-summary seeking query. For example, `why is the sky blue` and `Who is the best soccer player in the world?` are summary-seeking queries, but `SFO airport` and `world cup 2026` are not. They are most likely navigational queries. If this field is set to `true`, we skip generating summaries for non-summary seeking queries and return fallback messages instead. */
1040
+ ignoreNonSummarySeekingQuery?: boolean;
1041
+ /** Specifies whether to include citations in the summary. The default value is `false`. When this field is set to `true`, summaries include in-line citation numbers. Example summary including citations: BigQuery is Google Cloud's fully managed and completely serverless enterprise data warehouse [1]. BigQuery supports all data types, works across clouds, and has built-in machine learning and business intelligence, all within a unified platform [2, 3]. The citation numbers refer to the returned search results and are 1-indexed. For example, [1] means that the sentence is attributed to the first search result. [2, 3] means that the sentence is attributed to both the second and third search results. */
1042
+ includeCitations?: boolean;
1043
+ /** Language code for Summary. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature. */
1044
+ languageCode?: string;
1045
+ /** If specified, the spec will be used to modify the prompt provided to the LLM. */
1046
+ modelPromptSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec;
1047
+ /** If specified, the spec will be used to modify the model specification provided to the LLM. */
1048
+ modelSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec;
1049
+ /** The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most 10 results for documents mode, or 50 for chunks mode, can be used to generate a summary. The chunks mode is used when SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS. */
1050
+ summaryResultCount?: number;
1051
+ /** If true, answer will be generated from most relevant chunks from top search results. This feature will improve summary quality. Note that with this feature enabled, not all top search results will be referenced and included in the reference list, so the citation source index only points to the search results listed in the reference list. */
1052
+ useSemanticChunks?: boolean;
1053
+ }
1054
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec {
1055
+ /** Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide. */
1056
+ preamble?: string;
1057
+ }
1058
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec {
1059
+ /** The model version used to generate the summary. Supported values are: * `stable`: string. Default value when no value is specified. Uses a generally available, fine-tuned model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). * `preview`: string. (Public preview) Uses a preview model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). */
1060
+ version?: string;
1061
+ }
1062
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec {
1063
+ /** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
1064
+ dataStore?: string;
1065
+ }
1066
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec {
1067
+ /** The embedding vector used for retrieval. Limit to 1. */
1068
+ embeddingVectors?: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector[];
1069
+ }
1070
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector {
1071
+ /** Embedding field path in schema. */
1072
+ fieldPath?: string;
1073
+ /** Query embedding vector. */
1074
+ vector?: number[];
1075
+ }
1076
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec {
1077
+ /** Enables dynamic position for this facet. If set to true, the position of this facet among all facets in the response is determined automatically. If dynamic facets are enabled, it is ordered together. If set to false, the position of this facet in the response is the same as in the request, and it is ranked before the facets with dynamic position enable and all dynamic facets. For example, you may always want to have rating facet returned in the response, but it's not necessarily to always display the rating facet at the top. In that case, you can set enable_dynamic_position to true so that the position of rating facet in response is determined automatically. Another example, assuming you have the following facets in the request: * "rating", enable_dynamic_position = true * "price", enable_dynamic_position = false * "brands", enable_dynamic_position = false And also you have a dynamic facets enabled, which generates a facet `gender`. Then the final order of the facets in the response can be ("price", "brands", "rating", "gender") or ("price", "brands", "gender", "rating") depends on how API orders "gender" and "rating" facets. However, notice that "price" and "brands" are always ranked at first and second position because their enable_dynamic_position is false. */
1078
+ enableDynamicPosition?: boolean;
1079
+ /** List of keys to exclude when faceting. By default, FacetKey.key is not excluded from the filter unless it is listed in this field. Listing a facet key in this field allows its values to appear as facet results, even when they are filtered out of search results. Using this field does not affect what search results are returned. For example, suppose there are 100 documents with the color facet "Red" and 200 documents with the color facet "Blue". A query containing the filter "color:ANY("Red")" and having "color" as FacetKey.key would by default return only "Red" documents in the search results, and also return "Red" with count 100 as the only color facet. Although there are also blue documents available, "Blue" would not be shown as an available facet value. If "color" is listed in "excludedFilterKeys", then the query returns the facet values "Red" with count 100 and "Blue" with count 200, because the "color" key is now excluded from the filter. Because this field doesn't affect search results, the search results are still correctly filtered to return only "Red" documents. A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` error is returned. */
1080
+ excludedFilterKeys?: string[];
1081
+ /** Required. The facet key specification. */
1082
+ facetKey?: GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey;
1083
+ /** Maximum facet values that are returned for this facet. If unspecified, defaults to 20. The maximum allowed value is 300. Values above 300 are coerced to 300. For aggregation in healthcare search, when the [FacetKey.key] is "healthcare_aggregation_key", the limit will be overridden to 10,000 internally, regardless of the value set here. If this field is negative, an `INVALID_ARGUMENT` is returned. */
1084
+ limit?: number;
1085
+ }
1086
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey {
1087
+ /** True to make facet keys case insensitive when getting faceting values with prefixes or contains; false otherwise. */
1088
+ caseInsensitive?: boolean;
1089
+ /** Only get facet values that contain the given strings. For example, suppose "category" has three values "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the "category" facet only contains "Action > 2022" and "Sci-Fi > 2022". Only supported on textual fields. Maximum is 10. */
1090
+ contains?: string[];
1091
+ /** Set only if values should be bucketed into intervals. Must be set for facets with numerical values. Must not be set for facet with text values. Maximum number of intervals is 30. */
1092
+ intervals?: GoogleCloudDiscoveryengineV1alphaInterval[];
1093
+ /** Required. Supported textual and numerical facet keys in Document object, over which the facet values are computed. Facet key is case-sensitive. */
1094
+ key?: string;
1095
+ /** The order in which documents are returned. Allowed values are: * "count desc", which means order by SearchResponse.Facet.values.count descending. * "value desc", which means order by SearchResponse.Facet.values.value descending. Only applies to textual facets. If not set, textual values are sorted in [natural order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical intervals are sorted in the order given by FacetSpec.FacetKey.intervals. */
1096
+ orderBy?: string;
1097
+ /** Only get facet values that start with the given string prefix. For example, suppose "category" has three values "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the "category" facet only contains "Action > 2022" and "Action > 2021". Only supported on textual fields. Maximum is 10. */
1098
+ prefixes?: string[];
1099
+ /** Only get facet for the given restricted values. Only supported on textual fields. For example, suppose "category" has three values "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set "restricted_values" to "Action > 2022", the "category" facet only contains "Action > 2022". Only supported on textual fields. Maximum is 10. */
1100
+ restrictedValues?: string[];
1101
+ }
1102
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery {
1103
+ /** Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP. */
1104
+ imageBytes?: string;
1105
+ }
1106
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec {
1107
+ /** The condition under which filter extraction should occur. Default to Condition.DISABLED. */
1108
+ filterExtractionCondition?: string;
1109
+ /** Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in ServingConfig.geo_search_query_detection_field_names. */
1110
+ geoSearchQueryDetectionFieldNames?: string[];
1111
+ }
1112
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec {
1113
+ /** The condition under which query expansion should occur. Default to Condition.DISABLED. */
1114
+ condition?: string;
1115
+ /** Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results. */
1116
+ pinUnexpandedResults?: boolean;
1117
+ }
1118
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec {
1119
+ /** The condition under which search as you type should occur. Default to Condition.DISABLED. */
1120
+ condition?: string;
1121
+ }
1122
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec {
1123
+ /** If set, the search result gets stored to the "turn" specified by this query ID. Example: Let's say the session looks like this: session { name: ".../sessions/xxx" turns { query { text: "What is foo?" query_id: ".../questions/yyy" } answer: "Foo is ..." } turns { query { text: "How about bar then?" query_id: ".../questions/zzz" } } } The user can call /search API with a request like this: session: ".../sessions/xxx" session_spec { query_id: ".../questions/zzz" } Then, the API stores the search result, associated with the last turn. The stored search result can be used by a subsequent /answer API call (with the session ID and the query ID specified). Also, it is possible to call /search and /answer in parallel with the same session ID & query ID. */
1124
+ queryId?: string;
1125
+ /** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is simliar to the `summary_result_count` field in SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count. At most 10 results for documents mode, or 50 for chunks mode. */
1126
+ searchResultPersistenceCount?: number;
1127
+ }
1128
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec {
1129
+ /** The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO. */
1130
+ mode?: string;
1131
+ }
819
1132
  interface GoogleCloudDiscoveryengineV1alphaSession {
820
1133
  /** Output only. The time the session finished. */
821
1134
  endTime?: string;
@@ -836,6 +1149,13 @@ declare namespace gapi.client {
836
1149
  /** The user query. */
837
1150
  query?: GoogleCloudDiscoveryengineV1alphaQuery;
838
1151
  }
1152
+ interface GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata {
1153
+ /** Operation create time. */
1154
+ createTime?: string;
1155
+ /** Operation last update time. If the operation is done, this is also the finish time. */
1156
+ updateTime?: string;
1157
+ }
1158
+ interface GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataResponse {}
839
1159
  interface GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo {
840
1160
  /** Site verification state indicating the ownership and validity. */
841
1161
  siteVerificationState?: string;
@@ -907,6 +1227,12 @@ declare namespace gapi.client {
907
1227
  /** Operation last update time. If the operation is done, this is also the finish time. */
908
1228
  updateTime?: string;
909
1229
  }
1230
+ interface GoogleCloudDiscoveryengineV1alphaUserInfo {
1231
+ /** User agent as included in the HTTP header. The field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This should not be set when using the client side event reporting with GTM or JavaScript tag in UserEventService.CollectUserEvent or if UserEvent.direct_user_request is set. */
1232
+ userAgent?: string;
1233
+ /** Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users. Always use a hashed value for this ID. Don't set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
1234
+ userId?: string;
1235
+ }
910
1236
  interface GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata {
911
1237
  /** Operation create time. */
912
1238
  createTime?: string;
@@ -1054,7 +1380,7 @@ declare namespace gapi.client {
1054
1380
  maxReturnResults?: number;
1055
1381
  /** The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
1056
1382
  orderBy?: string;
1057
- /** Specifies the search result mode. If unspecified, the search result mode is based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`. See [parse and chunk documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents) */
1383
+ /** Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`. See [parse and chunk documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents) */
1058
1384
  searchResultMode?: string;
1059
1385
  }
1060
1386
  interface GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList {
@@ -1106,7 +1432,7 @@ declare namespace gapi.client {
1106
1432
  pageIdentifier?: string;
1107
1433
  }
1108
1434
  interface GoogleCloudDiscoveryengineV1betaAnswerQueryResponse {
1109
- /** Answer resource object. If AnswerQueryRequest.StepSpec.max_step_count is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API. */
1435
+ /** Answer resource object. If AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API. */
1110
1436
  answer?: GoogleCloudDiscoveryengineV1betaAnswer;
1111
1437
  /** A global unique ID used for logging. */
1112
1438
  answerQueryToken?: string;
@@ -1196,7 +1522,7 @@ declare namespace gapi.client {
1196
1522
  document?: string;
1197
1523
  /** If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets. */
1198
1524
  snippetInfo?: GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo[];
1199
- /** Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL). */
1525
+ /** Data representation. The structured JSON data for the document. It's populated from the struct data from the Document , or the Chunk in search result . */
1200
1526
  structData?: {[P in string]: any};
1201
1527
  /** Title. */
1202
1528
  title?: string;
@@ -1538,6 +1864,7 @@ declare namespace gapi.client {
1538
1864
  /** Operation last update time. If the operation is done, this is also the finish time. */
1539
1865
  updateTime?: string;
1540
1866
  }
1867
+ interface GoogleCloudDiscoveryengineV1betaCreateEvaluationMetadata {}
1541
1868
  interface GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata {
1542
1869
  /** Operation create time. */
1543
1870
  createTime?: string;
@@ -1780,6 +2107,34 @@ declare namespace gapi.client {
1780
2107
  /** The search feature tier of this engine. Different tiers might have different pricing. To learn more, check the pricing documentation. Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified. */
1781
2108
  searchTier?: string;
1782
2109
  }
2110
+ interface GoogleCloudDiscoveryengineV1betaEvaluation {
2111
+ /** Output only. Timestamp the Evaluation was created at. */
2112
+ createTime?: string;
2113
+ /** Output only. Timestamp the Evaluation was completed at. */
2114
+ endTime?: string;
2115
+ /** Output only. The error that occurred during evaluation. Only populated when the evaluation's state is FAILED. */
2116
+ error?: GoogleRpcStatus;
2117
+ /** Output only. A sample of errors encountered while processing the request. */
2118
+ errorSamples?: GoogleRpcStatus[];
2119
+ /** Required. The specification of the evaluation. */
2120
+ evaluationSpec?: GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpec;
2121
+ /** Immutable. The full resource name of the Evaluation, in the format of `projects/{project}/locations/{location}/evaluations/{evaluation}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
2122
+ name?: string;
2123
+ /** Output only. The metrics produced by the evaluation, averaged across all SampleQuerys in the SampleQuerySet. Only populated when the evaluation's state is SUCCEEDED. */
2124
+ qualityMetrics?: GoogleCloudDiscoveryengineV1betaQualityMetrics;
2125
+ /** Output only. The state of the evaluation. */
2126
+ state?: string;
2127
+ }
2128
+ interface GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpec {
2129
+ /** Required. The specification of the query set. */
2130
+ querySetSpec?: GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec;
2131
+ /** Required. The search request that is used to perform the evaluation. Only the following fields within SearchRequest are supported; if any other fields are provided, an UNSUPPORTED error will be returned: * SearchRequest.serving_config * SearchRequest.branch * SearchRequest.canonical_filter * SearchRequest.query_expansion_spec * SearchRequest.spell_correction_spec * SearchRequest.content_search_spec * SearchRequest.user_pseudo_id */
2132
+ searchRequest?: GoogleCloudDiscoveryengineV1betaSearchRequest;
2133
+ }
2134
+ interface GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec {
2135
+ /** Required. The full resource name of the SampleQuerySet used for the evaluation, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. */
2136
+ sampleQuerySet?: string;
2137
+ }
1783
2138
  interface GoogleCloudDiscoveryengineV1betaFactChunk {
1784
2139
  /** Text content of the fact chunk. Can be at most 10K characters long. */
1785
2140
  chunkText?: string;
@@ -1912,6 +2267,38 @@ declare namespace gapi.client {
1912
2267
  /** Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message. */
1913
2268
  gcsPrefix?: string;
1914
2269
  }
2270
+ interface GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata {
2271
+ /** ImportSampleQueries operation create time. */
2272
+ createTime?: string;
2273
+ /** Count of SampleQuerys that failed to be imported. */
2274
+ failureCount?: string;
2275
+ /** Count of SampleQuerys successfully imported. */
2276
+ successCount?: string;
2277
+ /** Total count of SampleQuerys that were processed. */
2278
+ totalCount?: string;
2279
+ /** ImportSampleQueries operation last update time. If the operation is done, this is also the finish time. */
2280
+ updateTime?: string;
2281
+ }
2282
+ interface GoogleCloudDiscoveryengineV1betaImportSampleQueriesRequest {
2283
+ /** BigQuery input source. */
2284
+ bigquerySource?: GoogleCloudDiscoveryengineV1betaBigQuerySource;
2285
+ /** The desired location of errors incurred during the Import. */
2286
+ errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
2287
+ /** Cloud Storage location for the input content. */
2288
+ gcsSource?: GoogleCloudDiscoveryengineV1betaGcsSource;
2289
+ /** The Inline source for sample query entries. */
2290
+ inlineSource?: GoogleCloudDiscoveryengineV1betaImportSampleQueriesRequestInlineSource;
2291
+ }
2292
+ interface GoogleCloudDiscoveryengineV1betaImportSampleQueriesRequestInlineSource {
2293
+ /** Required. A list of SampleQuerys to import. Max of 1000 items. */
2294
+ sampleQueries?: GoogleCloudDiscoveryengineV1betaSampleQuery[];
2295
+ }
2296
+ interface GoogleCloudDiscoveryengineV1betaImportSampleQueriesResponse {
2297
+ /** The desired location of errors incurred during the Import. */
2298
+ errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
2299
+ /** A sample of errors encountered while processing the request. */
2300
+ errorSamples?: GoogleRpcStatus[];
2301
+ }
1915
2302
  interface GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata {
1916
2303
  /** Operation create time. */
1917
2304
  createTime?: string;
@@ -2024,6 +2411,36 @@ declare namespace gapi.client {
2024
2411
  /** Not supported. */
2025
2412
  nextPageToken?: string;
2026
2413
  }
2414
+ interface GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponse {
2415
+ /** The EvaluationResults. */
2416
+ evaluationResults?: GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponseEvaluationResult[];
2417
+ /** A token that can be sent as ListEvaluationResultsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
2418
+ nextPageToken?: string;
2419
+ }
2420
+ interface GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponseEvaluationResult {
2421
+ /** Output only. The metrics produced by the evaluation, for a given SampleQuery. */
2422
+ qualityMetrics?: GoogleCloudDiscoveryengineV1betaQualityMetrics;
2423
+ /** Output only. The SampleQuery that was evaluated. */
2424
+ sampleQuery?: GoogleCloudDiscoveryengineV1betaSampleQuery;
2425
+ }
2426
+ interface GoogleCloudDiscoveryengineV1betaListEvaluationsResponse {
2427
+ /** The Evaluations. */
2428
+ evaluations?: GoogleCloudDiscoveryengineV1betaEvaluation[];
2429
+ /** A token that can be sent as ListEvaluationsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
2430
+ nextPageToken?: string;
2431
+ }
2432
+ interface GoogleCloudDiscoveryengineV1betaListSampleQueriesResponse {
2433
+ /** A token that can be sent as ListSampleQueriesRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
2434
+ nextPageToken?: string;
2435
+ /** The SampleQuerys. */
2436
+ sampleQueries?: GoogleCloudDiscoveryengineV1betaSampleQuery[];
2437
+ }
2438
+ interface GoogleCloudDiscoveryengineV1betaListSampleQuerySetsResponse {
2439
+ /** A token that can be sent as ListSampleQuerySetsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
2440
+ nextPageToken?: string;
2441
+ /** The SampleQuerySets. */
2442
+ sampleQuerySets?: GoogleCloudDiscoveryengineV1betaSampleQuerySet[];
2443
+ }
2027
2444
  interface GoogleCloudDiscoveryengineV1betaListSchemasResponse {
2028
2445
  /** A token that can be sent as ListSchemasRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
2029
2446
  nextPageToken?: string;
@@ -2146,6 +2563,28 @@ declare namespace gapi.client {
2146
2563
  /** Number of suggestion deny list entries purged. */
2147
2564
  purgeCount?: string;
2148
2565
  }
2566
+ interface GoogleCloudDiscoveryengineV1betaQualityMetrics {
2567
+ /** Normalized discounted cumulative gain (NDCG) per document, at various top-k cutoff levels. NDCG measures the ranking quality, giving higher relevance to top results. Example (top-3): Suppose SampleQuery with three retrieved documents (D1, D2, D3) and binary relevance judgements (1 for relevant, 0 for not relevant): Retrieved: [D3 (0), D1 (1), D2 (1)] Ideal: [D1 (1), D2 (1), D3 (0)] Calculate NDCG@3 for each SampleQuery: * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13 * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63 * NDCG@3: 1.13/1.63 = 0.693 */
2568
+ docNdcg?: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics;
2569
+ /** Precision per document, at various top-k cutoff levels. Precision is the fraction of retrieved documents that are relevant. Example (top-5): * For a single SampleQuery, If 4 out of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 = 0.8 */
2570
+ docPrecision?: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics;
2571
+ /** Recall per document, at various top-k cutoff levels. Recall is the fraction of relevant documents retrieved out of all relevant documents. Example (top-5): * For a single SampleQuery, If 3 out of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6 */
2572
+ docRecall?: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics;
2573
+ /** Normalized discounted cumulative gain (NDCG) per page, at various top-k cutoff levels. NDCG measures the ranking quality, giving higher relevance to top results. Example (top-3): Suppose SampleQuery with three retrieved pages (P1, P2, P3) and binary relevance judgements (1 for relevant, 0 for not relevant): Retrieved: [P3 (0), P1 (1), P2 (1)] Ideal: [P1 (1), P2 (1), P3 (0)] Calculate NDCG@3 for SampleQuery: * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13 * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63 * NDCG@3: 1.13/1.63 = 0.693 */
2574
+ pageNdcg?: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics;
2575
+ /** Recall per page, at various top-k cutoff levels. Recall is the fraction of relevant pages retrieved out of all relevant pages. Example (top-5): * For a single SampleQuery, if 3 out of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6 */
2576
+ pageRecall?: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics;
2577
+ }
2578
+ interface GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics {
2579
+ /** The top-1 value. */
2580
+ top1?: number;
2581
+ /** The top-10 value. */
2582
+ top10?: number;
2583
+ /** The top-3 value. */
2584
+ top3?: number;
2585
+ /** The top-5 value. */
2586
+ top5?: number;
2587
+ }
2149
2588
  interface GoogleCloudDiscoveryengineV1betaQuery {
2150
2589
  /** Unique Id for the query. */
2151
2590
  queryId?: string;
@@ -2235,10 +2674,42 @@ declare namespace gapi.client {
2235
2674
  uri?: string;
2236
2675
  }
2237
2676
  interface GoogleCloudDiscoveryengineV1betaResumeEngineRequest {}
2238
- interface GoogleCloudDiscoveryengineV1betaSchema {
2239
- /** The JSON representation of the schema. */
2240
- jsonSchema?: string;
2241
- /** Immutable. The full resource name of the schema, in the format of `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
2677
+ interface GoogleCloudDiscoveryengineV1betaSampleQuery {
2678
+ /** Output only. Timestamp the SampleQuery was created at. */
2679
+ createTime?: string;
2680
+ /** Immutable. The full resource name of the sample query, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}/sampleQueries/{sampleQuery}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
2681
+ name?: string;
2682
+ /** The query entry. */
2683
+ queryEntry?: GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntry;
2684
+ }
2685
+ interface GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntry {
2686
+ /** Required. The query. */
2687
+ query?: string;
2688
+ /** List of targets for the query. */
2689
+ targets?: GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget[];
2690
+ }
2691
+ interface GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget {
2692
+ /** Expected page numbers of the target. Each page number must be non negative. */
2693
+ pageNumbers?: number[];
2694
+ /** Relevance score of the target. */
2695
+ score?: number;
2696
+ /** Expected uri of the target. This field must be a UTF-8 encoded string with a length limit of 2048 characters. Example of valid uris: `https://example.com/abc`, `gcs://example/example.pdf`. */
2697
+ uri?: string;
2698
+ }
2699
+ interface GoogleCloudDiscoveryengineV1betaSampleQuerySet {
2700
+ /** Output only. Timestamp the SampleQuerySet was created at. */
2701
+ createTime?: string;
2702
+ /** The description of the SampleQuerySet. */
2703
+ description?: string;
2704
+ /** Required. The sample query set display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. */
2705
+ displayName?: string;
2706
+ /** Immutable. The full resource name of the SampleQuerySet, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
2707
+ name?: string;
2708
+ }
2709
+ interface GoogleCloudDiscoveryengineV1betaSchema {
2710
+ /** The JSON representation of the schema. */
2711
+ jsonSchema?: string;
2712
+ /** Immutable. The full resource name of the schema, in the format of `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
2242
2713
  name?: string;
2243
2714
  /** The structured representation of the schema. */
2244
2715
  structSchema?: {[P in string]: any};
@@ -2296,6 +2767,8 @@ declare namespace gapi.client {
2296
2767
  safeSearch?: boolean;
2297
2768
  /** Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical. */
2298
2769
  searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec;
2770
+ /** Required. The resource name of the Search serving config, such as `projects/*‍/locations/global/collections/default_collection/engines/*‍/servingConfigs/default_serving_config`, or `projects/*‍/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
2771
+ servingConfig?: string;
2299
2772
  /** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Auto-session mode: when `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users can use the create-session API to create a session manually. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
2300
2773
  session?: string;
2301
2774
  /** Session specification. Can be used only when `session` is set. */
@@ -2342,7 +2815,7 @@ declare namespace gapi.client {
2342
2815
  chunkSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec;
2343
2816
  /** If there is no extractive_content_spec provided, there will be no extractive answer in the search response. */
2344
2817
  extractiveContentSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec;
2345
- /** Specifies the search result mode. If unspecified, the search result mode is based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`. */
2818
+ /** Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`. */
2346
2819
  searchResultMode?: string;
2347
2820
  /** If `snippetSpec` is not specified, snippets are not included in the search response. */
2348
2821
  snippetSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec;
@@ -2448,7 +2921,7 @@ declare namespace gapi.client {
2448
2921
  interface GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec {
2449
2922
  /** The condition under which filter extraction should occur. Default to Condition.DISABLED. */
2450
2923
  filterExtractionCondition?: string;
2451
- /** Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in Servingconfig.geo_search_query_detection_field_names. */
2924
+ /** Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in ServingConfig.geo_search_query_detection_field_names. */
2452
2925
  geoSearchQueryDetectionFieldNames?: string[];
2453
2926
  }
2454
2927
  interface GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec {
@@ -11257,6 +11730,153 @@ declare namespace gapi.client {
11257
11730
  }): Request<GoogleLongrunningOperation>;
11258
11731
  }
11259
11732
  interface EvaluationsResource {
11733
+ /** Creates a Evaluation. Upon creation, the evaluation will be automatically triggered and begin execution. */
11734
+ create(request: {
11735
+ /** V1 error format. */
11736
+ '$.xgafv'?: string;
11737
+ /** OAuth access token. */
11738
+ access_token?: string;
11739
+ /** Data format for response. */
11740
+ alt?: string;
11741
+ /** JSONP */
11742
+ callback?: string;
11743
+ /** Selector specifying which fields to include in a partial response. */
11744
+ fields?: string;
11745
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
11746
+ key?: string;
11747
+ /** OAuth 2.0 token for the current user. */
11748
+ oauth_token?: string;
11749
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}`. */
11750
+ parent: string;
11751
+ /** Returns response with indentations and line breaks. */
11752
+ prettyPrint?: boolean;
11753
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
11754
+ quotaUser?: string;
11755
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11756
+ upload_protocol?: string;
11757
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11758
+ uploadType?: string;
11759
+ /** Request body */
11760
+ resource: GoogleCloudDiscoveryengineV1betaEvaluation;
11761
+ }): Request<GoogleLongrunningOperation>;
11762
+ create(
11763
+ request: {
11764
+ /** V1 error format. */
11765
+ '$.xgafv'?: string;
11766
+ /** OAuth access token. */
11767
+ access_token?: string;
11768
+ /** Data format for response. */
11769
+ alt?: string;
11770
+ /** JSONP */
11771
+ callback?: string;
11772
+ /** Selector specifying which fields to include in a partial response. */
11773
+ fields?: string;
11774
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
11775
+ key?: string;
11776
+ /** OAuth 2.0 token for the current user. */
11777
+ oauth_token?: string;
11778
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}`. */
11779
+ parent: string;
11780
+ /** Returns response with indentations and line breaks. */
11781
+ prettyPrint?: boolean;
11782
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
11783
+ quotaUser?: string;
11784
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11785
+ upload_protocol?: string;
11786
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11787
+ uploadType?: string;
11788
+ },
11789
+ body: GoogleCloudDiscoveryengineV1betaEvaluation
11790
+ ): Request<GoogleLongrunningOperation>;
11791
+ /** Gets a Evaluation. */
11792
+ get(request?: {
11793
+ /** V1 error format. */
11794
+ '$.xgafv'?: string;
11795
+ /** OAuth access token. */
11796
+ access_token?: string;
11797
+ /** Data format for response. */
11798
+ alt?: string;
11799
+ /** JSONP */
11800
+ callback?: string;
11801
+ /** Selector specifying which fields to include in a partial response. */
11802
+ fields?: string;
11803
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
11804
+ key?: string;
11805
+ /** Required. Full resource name of Evaluation, such as `projects/{project}/locations/{location}/evaluations/{evaluation}`. If the caller does not have permission to access the Evaluation, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested Evaluation does not exist, a NOT_FOUND error is returned. */
11806
+ name: string;
11807
+ /** OAuth 2.0 token for the current user. */
11808
+ oauth_token?: string;
11809
+ /** Returns response with indentations and line breaks. */
11810
+ prettyPrint?: boolean;
11811
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
11812
+ quotaUser?: string;
11813
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11814
+ upload_protocol?: string;
11815
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11816
+ uploadType?: string;
11817
+ }): Request<GoogleCloudDiscoveryengineV1betaEvaluation>;
11818
+ /** Gets a list of Evaluations. */
11819
+ list(request?: {
11820
+ /** V1 error format. */
11821
+ '$.xgafv'?: string;
11822
+ /** OAuth access token. */
11823
+ access_token?: string;
11824
+ /** Data format for response. */
11825
+ alt?: string;
11826
+ /** JSONP */
11827
+ callback?: string;
11828
+ /** Selector specifying which fields to include in a partial response. */
11829
+ fields?: string;
11830
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
11831
+ key?: string;
11832
+ /** OAuth 2.0 token for the current user. */
11833
+ oauth_token?: string;
11834
+ /** Maximum number of Evaluations to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned. */
11835
+ pageSize?: number;
11836
+ /** A page token ListEvaluationsResponse.next_page_token, received from a previous EvaluationService.ListEvaluations call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to EvaluationService.ListEvaluations must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned. */
11837
+ pageToken?: string;
11838
+ /** Required. The parent location resource name, such as `projects/{project}/locations/{location}`. If the caller does not have permission to list Evaluations under this location, regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. */
11839
+ parent: string;
11840
+ /** Returns response with indentations and line breaks. */
11841
+ prettyPrint?: boolean;
11842
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
11843
+ quotaUser?: string;
11844
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11845
+ upload_protocol?: string;
11846
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11847
+ uploadType?: string;
11848
+ }): Request<GoogleCloudDiscoveryengineV1betaListEvaluationsResponse>;
11849
+ /** Gets a list of results for a given a Evaluation. */
11850
+ listResults(request?: {
11851
+ /** V1 error format. */
11852
+ '$.xgafv'?: string;
11853
+ /** OAuth access token. */
11854
+ access_token?: string;
11855
+ /** Data format for response. */
11856
+ alt?: string;
11857
+ /** JSONP */
11858
+ callback?: string;
11859
+ /** Required. The evaluation resource name, such as `projects/{project}/locations/{location}/evaluations/{evaluation}`. If the caller does not have permission to list EvaluationResult under this evaluation, regardless of whether or not this evaluation set exists, a `PERMISSION_DENIED` error is returned. */
11860
+ evaluation: string;
11861
+ /** Selector specifying which fields to include in a partial response. */
11862
+ fields?: string;
11863
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
11864
+ key?: string;
11865
+ /** OAuth 2.0 token for the current user. */
11866
+ oauth_token?: string;
11867
+ /** Maximum number of EvaluationResult to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned. */
11868
+ pageSize?: number;
11869
+ /** A page token ListEvaluationResultsResponse.next_page_token, received from a previous EvaluationService.ListEvaluationResults call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to EvaluationService.ListEvaluationResults must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned. */
11870
+ pageToken?: string;
11871
+ /** Returns response with indentations and line breaks. */
11872
+ prettyPrint?: boolean;
11873
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
11874
+ quotaUser?: string;
11875
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11876
+ upload_protocol?: string;
11877
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11878
+ uploadType?: string;
11879
+ }): Request<GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponse>;
11260
11880
  operations: OperationsResource;
11261
11881
  }
11262
11882
  interface GroundingConfigsResource {
@@ -11470,8 +12090,487 @@ declare namespace gapi.client {
11470
12090
  uploadType?: string;
11471
12091
  }): Request<GoogleLongrunningOperation>;
11472
12092
  }
11473
- interface SampleQuerySetsResource {
12093
+ interface SampleQueriesResource {
12094
+ /** Creates a SampleQuery */
12095
+ create(request: {
12096
+ /** V1 error format. */
12097
+ '$.xgafv'?: string;
12098
+ /** OAuth access token. */
12099
+ access_token?: string;
12100
+ /** Data format for response. */
12101
+ alt?: string;
12102
+ /** JSONP */
12103
+ callback?: string;
12104
+ /** Selector specifying which fields to include in a partial response. */
12105
+ fields?: string;
12106
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12107
+ key?: string;
12108
+ /** OAuth 2.0 token for the current user. */
12109
+ oauth_token?: string;
12110
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. */
12111
+ parent: string;
12112
+ /** Returns response with indentations and line breaks. */
12113
+ prettyPrint?: boolean;
12114
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12115
+ quotaUser?: string;
12116
+ /** Required. The ID to use for the SampleQuery, which will become the final component of the SampleQuery.name. If the caller does not have permission to create the SampleQuery, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all SampleQuerys with the same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
12117
+ sampleQueryId?: string;
12118
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12119
+ upload_protocol?: string;
12120
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12121
+ uploadType?: string;
12122
+ /** Request body */
12123
+ resource: GoogleCloudDiscoveryengineV1betaSampleQuery;
12124
+ }): Request<GoogleCloudDiscoveryengineV1betaSampleQuery>;
12125
+ create(
12126
+ request: {
12127
+ /** V1 error format. */
12128
+ '$.xgafv'?: string;
12129
+ /** OAuth access token. */
12130
+ access_token?: string;
12131
+ /** Data format for response. */
12132
+ alt?: string;
12133
+ /** JSONP */
12134
+ callback?: string;
12135
+ /** Selector specifying which fields to include in a partial response. */
12136
+ fields?: string;
12137
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12138
+ key?: string;
12139
+ /** OAuth 2.0 token for the current user. */
12140
+ oauth_token?: string;
12141
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. */
12142
+ parent: string;
12143
+ /** Returns response with indentations and line breaks. */
12144
+ prettyPrint?: boolean;
12145
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12146
+ quotaUser?: string;
12147
+ /** Required. The ID to use for the SampleQuery, which will become the final component of the SampleQuery.name. If the caller does not have permission to create the SampleQuery, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all SampleQuerys with the same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
12148
+ sampleQueryId?: string;
12149
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12150
+ upload_protocol?: string;
12151
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12152
+ uploadType?: string;
12153
+ },
12154
+ body: GoogleCloudDiscoveryengineV1betaSampleQuery
12155
+ ): Request<GoogleCloudDiscoveryengineV1betaSampleQuery>;
12156
+ /** Deletes a SampleQuery. */
12157
+ delete(request?: {
12158
+ /** V1 error format. */
12159
+ '$.xgafv'?: string;
12160
+ /** OAuth access token. */
12161
+ access_token?: string;
12162
+ /** Data format for response. */
12163
+ alt?: string;
12164
+ /** JSONP */
12165
+ callback?: string;
12166
+ /** Selector specifying which fields to include in a partial response. */
12167
+ fields?: string;
12168
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12169
+ key?: string;
12170
+ /** Required. Full resource name of SampleQuery, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}/sampleQueries/{sampleQuery}`. If the caller does not have permission to delete the SampleQuery, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the SampleQuery to delete does not exist, a `NOT_FOUND` error is returned. */
12171
+ name: string;
12172
+ /** OAuth 2.0 token for the current user. */
12173
+ oauth_token?: string;
12174
+ /** Returns response with indentations and line breaks. */
12175
+ prettyPrint?: boolean;
12176
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12177
+ quotaUser?: string;
12178
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12179
+ upload_protocol?: string;
12180
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12181
+ uploadType?: string;
12182
+ }): Request<{}>;
12183
+ /** Gets a SampleQuery. */
12184
+ get(request?: {
12185
+ /** V1 error format. */
12186
+ '$.xgafv'?: string;
12187
+ /** OAuth access token. */
12188
+ access_token?: string;
12189
+ /** Data format for response. */
12190
+ alt?: string;
12191
+ /** JSONP */
12192
+ callback?: string;
12193
+ /** Selector specifying which fields to include in a partial response. */
12194
+ fields?: string;
12195
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12196
+ key?: string;
12197
+ /** Required. Full resource name of SampleQuery, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}/sampleQueries/{sampleQuery}`. If the caller does not have permission to access the SampleQuery, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested SampleQuery does not exist, a NOT_FOUND error is returned. */
12198
+ name: string;
12199
+ /** OAuth 2.0 token for the current user. */
12200
+ oauth_token?: string;
12201
+ /** Returns response with indentations and line breaks. */
12202
+ prettyPrint?: boolean;
12203
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12204
+ quotaUser?: string;
12205
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12206
+ upload_protocol?: string;
12207
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12208
+ uploadType?: string;
12209
+ }): Request<GoogleCloudDiscoveryengineV1betaSampleQuery>;
12210
+ /** Bulk import of multiple SampleQuerys. Sample queries that already exist may be deleted. Note: It is possible for a subset of the SampleQuerys to be successfully imported. */
12211
+ import(request: {
12212
+ /** V1 error format. */
12213
+ '$.xgafv'?: string;
12214
+ /** OAuth access token. */
12215
+ access_token?: string;
12216
+ /** Data format for response. */
12217
+ alt?: string;
12218
+ /** JSONP */
12219
+ callback?: string;
12220
+ /** Selector specifying which fields to include in a partial response. */
12221
+ fields?: string;
12222
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12223
+ key?: string;
12224
+ /** OAuth 2.0 token for the current user. */
12225
+ oauth_token?: string;
12226
+ /** Required. The parent sample query set resource name, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. If the caller does not have permission to list SampleQuerys under this sample query set, regardless of whether or not this sample query set exists, a `PERMISSION_DENIED` error is returned. */
12227
+ parent: string;
12228
+ /** Returns response with indentations and line breaks. */
12229
+ prettyPrint?: boolean;
12230
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12231
+ quotaUser?: string;
12232
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12233
+ upload_protocol?: string;
12234
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12235
+ uploadType?: string;
12236
+ /** Request body */
12237
+ resource: GoogleCloudDiscoveryengineV1betaImportSampleQueriesRequest;
12238
+ }): Request<GoogleLongrunningOperation>;
12239
+ import(
12240
+ request: {
12241
+ /** V1 error format. */
12242
+ '$.xgafv'?: string;
12243
+ /** OAuth access token. */
12244
+ access_token?: string;
12245
+ /** Data format for response. */
12246
+ alt?: string;
12247
+ /** JSONP */
12248
+ callback?: string;
12249
+ /** Selector specifying which fields to include in a partial response. */
12250
+ fields?: string;
12251
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12252
+ key?: string;
12253
+ /** OAuth 2.0 token for the current user. */
12254
+ oauth_token?: string;
12255
+ /** Required. The parent sample query set resource name, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. If the caller does not have permission to list SampleQuerys under this sample query set, regardless of whether or not this sample query set exists, a `PERMISSION_DENIED` error is returned. */
12256
+ parent: string;
12257
+ /** Returns response with indentations and line breaks. */
12258
+ prettyPrint?: boolean;
12259
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12260
+ quotaUser?: string;
12261
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12262
+ upload_protocol?: string;
12263
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12264
+ uploadType?: string;
12265
+ },
12266
+ body: GoogleCloudDiscoveryengineV1betaImportSampleQueriesRequest
12267
+ ): Request<GoogleLongrunningOperation>;
12268
+ /** Gets a list of SampleQuerys. */
12269
+ list(request?: {
12270
+ /** V1 error format. */
12271
+ '$.xgafv'?: string;
12272
+ /** OAuth access token. */
12273
+ access_token?: string;
12274
+ /** Data format for response. */
12275
+ alt?: string;
12276
+ /** JSONP */
12277
+ callback?: string;
12278
+ /** Selector specifying which fields to include in a partial response. */
12279
+ fields?: string;
12280
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12281
+ key?: string;
12282
+ /** OAuth 2.0 token for the current user. */
12283
+ oauth_token?: string;
12284
+ /** Maximum number of SampleQuerys to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned. */
12285
+ pageSize?: number;
12286
+ /** A page token ListSampleQueriesResponse.next_page_token, received from a previous SampleQueryService.ListSampleQueries call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SampleQueryService.ListSampleQueries must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned. */
12287
+ pageToken?: string;
12288
+ /** Required. The parent sample query set resource name, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. If the caller does not have permission to list SampleQuerys under this sample query set, regardless of whether or not this sample query set exists, a `PERMISSION_DENIED` error is returned. */
12289
+ parent: string;
12290
+ /** Returns response with indentations and line breaks. */
12291
+ prettyPrint?: boolean;
12292
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12293
+ quotaUser?: string;
12294
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12295
+ upload_protocol?: string;
12296
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12297
+ uploadType?: string;
12298
+ }): Request<GoogleCloudDiscoveryengineV1betaListSampleQueriesResponse>;
12299
+ /** Updates a SampleQuery. */
12300
+ patch(request: {
12301
+ /** V1 error format. */
12302
+ '$.xgafv'?: string;
12303
+ /** OAuth access token. */
12304
+ access_token?: string;
12305
+ /** Data format for response. */
12306
+ alt?: string;
12307
+ /** JSONP */
12308
+ callback?: string;
12309
+ /** Selector specifying which fields to include in a partial response. */
12310
+ fields?: string;
12311
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12312
+ key?: string;
12313
+ /** Immutable. The full resource name of the sample query, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}/sampleQueries/{sampleQuery}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
12314
+ name: string;
12315
+ /** OAuth 2.0 token for the current user. */
12316
+ oauth_token?: string;
12317
+ /** Returns response with indentations and line breaks. */
12318
+ prettyPrint?: boolean;
12319
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12320
+ quotaUser?: string;
12321
+ /** Indicates which fields in the provided imported 'simple query' to update. If not set, will by default update all fields. */
12322
+ updateMask?: string;
12323
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12324
+ upload_protocol?: string;
12325
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12326
+ uploadType?: string;
12327
+ /** Request body */
12328
+ resource: GoogleCloudDiscoveryengineV1betaSampleQuery;
12329
+ }): Request<GoogleCloudDiscoveryengineV1betaSampleQuery>;
12330
+ patch(
12331
+ request: {
12332
+ /** V1 error format. */
12333
+ '$.xgafv'?: string;
12334
+ /** OAuth access token. */
12335
+ access_token?: string;
12336
+ /** Data format for response. */
12337
+ alt?: string;
12338
+ /** JSONP */
12339
+ callback?: string;
12340
+ /** Selector specifying which fields to include in a partial response. */
12341
+ fields?: string;
12342
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12343
+ key?: string;
12344
+ /** Immutable. The full resource name of the sample query, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}/sampleQueries/{sampleQuery}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
12345
+ name: string;
12346
+ /** OAuth 2.0 token for the current user. */
12347
+ oauth_token?: string;
12348
+ /** Returns response with indentations and line breaks. */
12349
+ prettyPrint?: boolean;
12350
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12351
+ quotaUser?: string;
12352
+ /** Indicates which fields in the provided imported 'simple query' to update. If not set, will by default update all fields. */
12353
+ updateMask?: string;
12354
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12355
+ upload_protocol?: string;
12356
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12357
+ uploadType?: string;
12358
+ },
12359
+ body: GoogleCloudDiscoveryengineV1betaSampleQuery
12360
+ ): Request<GoogleCloudDiscoveryengineV1betaSampleQuery>;
12361
+ }
12362
+ interface SampleQuerySetsResource {
12363
+ /** Creates a SampleQuerySet */
12364
+ create(request: {
12365
+ /** V1 error format. */
12366
+ '$.xgafv'?: string;
12367
+ /** OAuth access token. */
12368
+ access_token?: string;
12369
+ /** Data format for response. */
12370
+ alt?: string;
12371
+ /** JSONP */
12372
+ callback?: string;
12373
+ /** Selector specifying which fields to include in a partial response. */
12374
+ fields?: string;
12375
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12376
+ key?: string;
12377
+ /** OAuth 2.0 token for the current user. */
12378
+ oauth_token?: string;
12379
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}`. */
12380
+ parent: string;
12381
+ /** Returns response with indentations and line breaks. */
12382
+ prettyPrint?: boolean;
12383
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12384
+ quotaUser?: string;
12385
+ /** Required. The ID to use for the SampleQuerySet, which will become the final component of the SampleQuerySet.name. If the caller does not have permission to create the SampleQuerySet, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all SampleQuerySets with the same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
12386
+ sampleQuerySetId?: string;
12387
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12388
+ upload_protocol?: string;
12389
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12390
+ uploadType?: string;
12391
+ /** Request body */
12392
+ resource: GoogleCloudDiscoveryengineV1betaSampleQuerySet;
12393
+ }): Request<GoogleCloudDiscoveryengineV1betaSampleQuerySet>;
12394
+ create(
12395
+ request: {
12396
+ /** V1 error format. */
12397
+ '$.xgafv'?: string;
12398
+ /** OAuth access token. */
12399
+ access_token?: string;
12400
+ /** Data format for response. */
12401
+ alt?: string;
12402
+ /** JSONP */
12403
+ callback?: string;
12404
+ /** Selector specifying which fields to include in a partial response. */
12405
+ fields?: string;
12406
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12407
+ key?: string;
12408
+ /** OAuth 2.0 token for the current user. */
12409
+ oauth_token?: string;
12410
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}`. */
12411
+ parent: string;
12412
+ /** Returns response with indentations and line breaks. */
12413
+ prettyPrint?: boolean;
12414
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12415
+ quotaUser?: string;
12416
+ /** Required. The ID to use for the SampleQuerySet, which will become the final component of the SampleQuerySet.name. If the caller does not have permission to create the SampleQuerySet, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all SampleQuerySets with the same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
12417
+ sampleQuerySetId?: string;
12418
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12419
+ upload_protocol?: string;
12420
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12421
+ uploadType?: string;
12422
+ },
12423
+ body: GoogleCloudDiscoveryengineV1betaSampleQuerySet
12424
+ ): Request<GoogleCloudDiscoveryengineV1betaSampleQuerySet>;
12425
+ /** Deletes a SampleQuerySet. */
12426
+ delete(request?: {
12427
+ /** V1 error format. */
12428
+ '$.xgafv'?: string;
12429
+ /** OAuth access token. */
12430
+ access_token?: string;
12431
+ /** Data format for response. */
12432
+ alt?: string;
12433
+ /** JSONP */
12434
+ callback?: string;
12435
+ /** Selector specifying which fields to include in a partial response. */
12436
+ fields?: string;
12437
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12438
+ key?: string;
12439
+ /** Required. Full resource name of SampleQuerySet, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. If the caller does not have permission to delete the SampleQuerySet, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the SampleQuerySet to delete does not exist, a `NOT_FOUND` error is returned. */
12440
+ name: string;
12441
+ /** OAuth 2.0 token for the current user. */
12442
+ oauth_token?: string;
12443
+ /** Returns response with indentations and line breaks. */
12444
+ prettyPrint?: boolean;
12445
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12446
+ quotaUser?: string;
12447
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12448
+ upload_protocol?: string;
12449
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12450
+ uploadType?: string;
12451
+ }): Request<{}>;
12452
+ /** Gets a SampleQuerySet. */
12453
+ get(request?: {
12454
+ /** V1 error format. */
12455
+ '$.xgafv'?: string;
12456
+ /** OAuth access token. */
12457
+ access_token?: string;
12458
+ /** Data format for response. */
12459
+ alt?: string;
12460
+ /** JSONP */
12461
+ callback?: string;
12462
+ /** Selector specifying which fields to include in a partial response. */
12463
+ fields?: string;
12464
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12465
+ key?: string;
12466
+ /** Required. Full resource name of SampleQuerySet, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. If the caller does not have permission to access the SampleQuerySet, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested SampleQuerySet does not exist, a NOT_FOUND error is returned. */
12467
+ name: string;
12468
+ /** OAuth 2.0 token for the current user. */
12469
+ oauth_token?: string;
12470
+ /** Returns response with indentations and line breaks. */
12471
+ prettyPrint?: boolean;
12472
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12473
+ quotaUser?: string;
12474
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12475
+ upload_protocol?: string;
12476
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12477
+ uploadType?: string;
12478
+ }): Request<GoogleCloudDiscoveryengineV1betaSampleQuerySet>;
12479
+ /** Gets a list of SampleQuerySets. */
12480
+ list(request?: {
12481
+ /** V1 error format. */
12482
+ '$.xgafv'?: string;
12483
+ /** OAuth access token. */
12484
+ access_token?: string;
12485
+ /** Data format for response. */
12486
+ alt?: string;
12487
+ /** JSONP */
12488
+ callback?: string;
12489
+ /** Selector specifying which fields to include in a partial response. */
12490
+ fields?: string;
12491
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12492
+ key?: string;
12493
+ /** OAuth 2.0 token for the current user. */
12494
+ oauth_token?: string;
12495
+ /** Maximum number of SampleQuerySets to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned. */
12496
+ pageSize?: number;
12497
+ /** A page token ListSampleQuerySetsResponse.next_page_token, received from a previous SampleQuerySetService.ListSampleQuerySets call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SampleQuerySetService.ListSampleQuerySets must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned. */
12498
+ pageToken?: string;
12499
+ /** Required. The parent location resource name, such as `projects/{project}/locations/{location}`. If the caller does not have permission to list SampleQuerySets under this location, regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. */
12500
+ parent: string;
12501
+ /** Returns response with indentations and line breaks. */
12502
+ prettyPrint?: boolean;
12503
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12504
+ quotaUser?: string;
12505
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12506
+ upload_protocol?: string;
12507
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12508
+ uploadType?: string;
12509
+ }): Request<GoogleCloudDiscoveryengineV1betaListSampleQuerySetsResponse>;
12510
+ /** Updates a SampleQuerySet. */
12511
+ patch(request: {
12512
+ /** V1 error format. */
12513
+ '$.xgafv'?: string;
12514
+ /** OAuth access token. */
12515
+ access_token?: string;
12516
+ /** Data format for response. */
12517
+ alt?: string;
12518
+ /** JSONP */
12519
+ callback?: string;
12520
+ /** Selector specifying which fields to include in a partial response. */
12521
+ fields?: string;
12522
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12523
+ key?: string;
12524
+ /** Immutable. The full resource name of the SampleQuerySet, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
12525
+ name: string;
12526
+ /** OAuth 2.0 token for the current user. */
12527
+ oauth_token?: string;
12528
+ /** Returns response with indentations and line breaks. */
12529
+ prettyPrint?: boolean;
12530
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12531
+ quotaUser?: string;
12532
+ /** Indicates which fields in the provided imported 'sample query set' to update. If not set, will by default update all fields. */
12533
+ updateMask?: string;
12534
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12535
+ upload_protocol?: string;
12536
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12537
+ uploadType?: string;
12538
+ /** Request body */
12539
+ resource: GoogleCloudDiscoveryengineV1betaSampleQuerySet;
12540
+ }): Request<GoogleCloudDiscoveryengineV1betaSampleQuerySet>;
12541
+ patch(
12542
+ request: {
12543
+ /** V1 error format. */
12544
+ '$.xgafv'?: string;
12545
+ /** OAuth access token. */
12546
+ access_token?: string;
12547
+ /** Data format for response. */
12548
+ alt?: string;
12549
+ /** JSONP */
12550
+ callback?: string;
12551
+ /** Selector specifying which fields to include in a partial response. */
12552
+ fields?: string;
12553
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12554
+ key?: string;
12555
+ /** Immutable. The full resource name of the SampleQuerySet, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
12556
+ name: string;
12557
+ /** OAuth 2.0 token for the current user. */
12558
+ oauth_token?: string;
12559
+ /** Returns response with indentations and line breaks. */
12560
+ prettyPrint?: boolean;
12561
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12562
+ quotaUser?: string;
12563
+ /** Indicates which fields in the provided imported 'sample query set' to update. If not set, will by default update all fields. */
12564
+ updateMask?: string;
12565
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12566
+ upload_protocol?: string;
12567
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12568
+ uploadType?: string;
12569
+ },
12570
+ body: GoogleCloudDiscoveryengineV1betaSampleQuerySet
12571
+ ): Request<GoogleCloudDiscoveryengineV1betaSampleQuerySet>;
11474
12572
  operations: OperationsResource;
12573
+ sampleQueries: SampleQueriesResource;
11475
12574
  }
11476
12575
  interface UserEventsResource {
11477
12576
  /** Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly. */