@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20240814 → 0.0.20240828

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 (3) hide show
  1. package/index.d.ts +1100 -26
  2. package/package.json +1 -1
  3. package/readme.md +45 -0
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://aiplatform.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20240814
12
+ // Revision: 20240828
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -198,6 +198,10 @@ declare namespace gapi.client {
198
198
  /** Output only. Timestamp when AnnotationSpec was last updated. */
199
199
  updateTime?: string;
200
200
  }
201
+ interface GoogleCloudAiplatformV1beta1ApiAuth {
202
+ /** The API secret. */
203
+ apiKeyConfig?: GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig;
204
+ }
201
205
  interface GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig {
202
206
  /** Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version} */
203
207
  apiKeySecretVersion?: string;
@@ -618,6 +622,20 @@ declare namespace gapi.client {
618
622
  ttl?: string;
619
623
  /** Output only. When the cache entry was last updated in UTC time. */
620
624
  updateTime?: string;
625
+ /** Output only. Metadata on the usage of the cached content. */
626
+ usageMetadata?: GoogleCloudAiplatformV1beta1CachedContentUsageMetadata;
627
+ }
628
+ interface GoogleCloudAiplatformV1beta1CachedContentUsageMetadata {
629
+ /** Duration of audio in seconds. */
630
+ audioDurationSeconds?: number;
631
+ /** Number of images. */
632
+ imageCount?: number;
633
+ /** Number of text characters. */
634
+ textCount?: number;
635
+ /** Total number of tokens that the cached content consumes. */
636
+ totalTokenCount?: number;
637
+ /** Duration of video in seconds. */
638
+ videoDurationSeconds?: number;
621
639
  }
622
640
  interface GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest {}
623
641
  interface GoogleCloudAiplatformV1beta1CancelCustomJobRequest {}
@@ -792,6 +810,12 @@ declare namespace gapi.client {
792
810
  /** Output only. The version ID of the model that is copied. */
793
811
  modelVersionId?: string;
794
812
  }
813
+ interface GoogleCloudAiplatformV1beta1CorpusStatus {
814
+ /** Output only. Only when the `state` field is ERROR. */
815
+ errorStatus?: string;
816
+ /** Output only. RagCorpus life state. */
817
+ state?: string;
818
+ }
795
819
  interface GoogleCloudAiplatformV1beta1CountTokensRequest {
796
820
  /** Optional. Input content. */
797
821
  contents?: GoogleCloudAiplatformV1beta1Content[];
@@ -2111,13 +2135,17 @@ declare namespace gapi.client {
2111
2135
  interface GoogleCloudAiplatformV1beta1FeatureGroupBigQuery {
2112
2136
  /** Required. Immutable. The BigQuery source URI that points to either a BigQuery Table or View. */
2113
2137
  bigQuerySource?: GoogleCloudAiplatformV1beta1BigQuerySource;
2138
+ /** Optional. If set, all feature values will be fetched from a single row per unique entityId including nulls. If not set, will collapse all rows for each unique entityId into a singe row with any non-null values if present, if no non-null values are present will sync null. ex: If source has schema (entity_id, feature_timestamp, f0, f1) and values (e1, 2020-01-01T10:00:00.123Z, 10, 15) (e1, 2020-02-01T10:00:00.123Z, 20, null) If dense is set, (e1, 20, null) is synced to online stores. If dense is not set, (e1, 20, 15) is synced to online stores. */
2139
+ dense?: boolean;
2114
2140
  /** Optional. Columns to construct entity_id / row keys. If not provided defaults to `entity_id`. */
2115
2141
  entityIdColumns?: string[];
2116
- /** Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will treat time series sources. If not set, will treat the source as a time-series source with feature_timestamp as timestamp column and no scan boundary. */
2142
+ /** Optional. Set if the data source is not a time-series. */
2143
+ staticDataSource?: boolean;
2144
+ /** Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureView ) will treat time-series sources. If not set, will treat the source as a time-series source with `feature_timestamp` as timestamp column and no scan boundary. */
2117
2145
  timeSeries?: GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries;
2118
2146
  }
2119
2147
  interface GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries {
2120
- /** Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest featureValues for each entity. Optional. If not provided, a feature_timestamp column of type TIMESTAMP will be used. */
2148
+ /** Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest `feature_values` for each entity. Optional. If not provided, column named `feature_timestamp` of type `TIMESTAMP` will be used. */
2121
2149
  timestampColumn?: string;
2122
2150
  }
2123
2151
  interface GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly {
@@ -2346,6 +2374,8 @@ declare namespace gapi.client {
2346
2374
  updateTime?: string;
2347
2375
  /** Optional. Deprecated: please use FeatureView.index_config instead. */
2348
2376
  vectorSearchConfig?: GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig;
2377
+ /** Optional. The Vertex RAG Source that the FeatureView is linked to. */
2378
+ vertexRagSource?: GoogleCloudAiplatformV1beta1FeatureViewVertexRagSource;
2349
2379
  }
2350
2380
  interface GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource {
2351
2381
  /** Required. Columns to construct entity_id / row keys. */
@@ -2419,6 +2449,8 @@ declare namespace gapi.client {
2419
2449
  interface GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary {
2420
2450
  /** Output only. Total number of rows synced. */
2421
2451
  rowSynced?: string;
2452
+ /** Lower bound of the system time watermark for the sync job. This is only set for continuously syncing feature views. */
2453
+ systemWatermarkTime?: string;
2422
2454
  /** Output only. BigQuery slot milliseconds consumed for the sync job. */
2423
2455
  totalSlot?: string;
2424
2456
  }
@@ -2443,6 +2475,12 @@ declare namespace gapi.client {
2443
2475
  /** Optional. Number of embeddings on each leaf node. The default value is 1000 if not set. */
2444
2476
  leafNodeEmbeddingCount?: string;
2445
2477
  }
2478
+ interface GoogleCloudAiplatformV1beta1FeatureViewVertexRagSource {
2479
+ /** Optional. The RAG corpus id corresponding to this FeatureView. */
2480
+ ragCorpusId?: string;
2481
+ /** Required. The BigQuery view/table URI that will be materialized on each manual sync trigger. The table/view is expected to have the following columns at least: Field name Type Mode corpus_id STRING REQUIRED/NULLABLE file_id STRING REQUIRED/NULLABLE chunk_id STRING REQUIRED/NULLABLE chunk_data_type STRING REQUIRED/NULLABLE chunk_data STRING REQUIRED/NULLABLE embeddings FLOAT REPEATED file_original_uri STRING REQUIRED/NULLABLE */
2482
+ uri?: string;
2483
+ }
2446
2484
  interface GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest {
2447
2485
  /** Optional. Response data format. If not set, FeatureViewDataFormat.KEY_VALUE will be used. */
2448
2486
  dataFormat?: string;
@@ -2477,6 +2515,12 @@ declare namespace gapi.client {
2477
2515
  /** Required. The IANA standard MIME type of the source data. */
2478
2516
  mimeType?: string;
2479
2517
  }
2518
+ interface GoogleCloudAiplatformV1beta1FileStatus {
2519
+ /** Output only. Only when the `state` field is ERROR. */
2520
+ errorStatus?: string;
2521
+ /** Output only. RagFile state. */
2522
+ state?: string;
2523
+ }
2480
2524
  interface GoogleCloudAiplatformV1beta1FilterSplit {
2481
2525
  /** Required. A filter on DataItems of the Dataset. DataItems that match this filter are used to test the Model. A filter with same syntax as the one used in DatasetService.ListDataItems may be used. If a single DataItem is matched by more than one of the FilterSplit filters, then it is assigned to the first set that applies to it in the training, validation, test order. */
2482
2526
  testFilter?: string;
@@ -2608,7 +2652,7 @@ declare namespace gapi.client {
2608
2652
  interface GoogleCloudAiplatformV1beta1FunctionResponse {
2609
2653
  /** Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name]. */
2610
2654
  name?: string;
2611
- /** Required. The function response in JSON object format. */
2655
+ /** Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output. */
2612
2656
  response?: {[P in string]: any};
2613
2657
  }
2614
2658
  interface GoogleCloudAiplatformV1beta1GcsDestination {
@@ -2666,10 +2710,13 @@ declare namespace gapi.client {
2666
2710
  safetyRatings?: GoogleCloudAiplatformV1beta1SafetyRating[];
2667
2711
  }
2668
2712
  interface GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata {
2713
+ /** Output only. Number of tokens in the cached part in the input (the cached content). */
2714
+ cachedContentTokenCount?: number;
2669
2715
  /** Number of tokens in the response(s). */
2670
2716
  candidatesTokenCount?: number;
2671
2717
  /** Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. */
2672
2718
  promptTokenCount?: number;
2719
+ /** Total token count for prompt and response candidates. */
2673
2720
  totalTokenCount?: number;
2674
2721
  }
2675
2722
  interface GoogleCloudAiplatformV1beta1GenerateVideoResponse {
@@ -2717,7 +2764,7 @@ declare namespace gapi.client {
2717
2764
  modelRoutingPreference?: string;
2718
2765
  }
2719
2766
  interface GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode {
2720
- /** The model name to use. Only the public LLM models are accepted. e.g. gemini-1.5-pro-001. */
2767
+ /** The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'. */
2721
2768
  modelName?: string;
2722
2769
  }
2723
2770
  interface GoogleCloudAiplatformV1beta1GenericOperationMetadata {
@@ -4580,7 +4627,7 @@ declare namespace gapi.client {
4580
4627
  directNotebookSource?: GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource;
4581
4628
  /** The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
4582
4629
  displayName?: string;
4583
- /** Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec. */
4630
+ /** Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookService.NotebookRuntimeTemplate has an encryption spec. */
4584
4631
  encryptionSpec?: GoogleCloudAiplatformV1beta1EncryptionSpec;
4585
4632
  /** Max running time of the execution job in seconds (default 86400s / 24 hrs). */
4586
4633
  executionTimeout?: string;
@@ -4846,6 +4893,10 @@ declare namespace gapi.client {
4846
4893
  resourceRuntime?: GoogleCloudAiplatformV1beta1ResourceRuntime;
4847
4894
  /** Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration. */
4848
4895
  resourceRuntimeSpec?: GoogleCloudAiplatformV1beta1ResourceRuntimeSpec;
4896
+ /** Output only. Reserved for future use. */
4897
+ satisfiesPzi?: boolean;
4898
+ /** Output only. Reserved for future use. */
4899
+ satisfiesPzs?: boolean;
4849
4900
  /** Output only. Time when the PersistentResource for the first time entered the `RUNNING` state. */
4850
4901
  startTime?: string;
4851
4902
  /** Output only. The detailed state of a Study. */
@@ -5141,6 +5192,8 @@ declare namespace gapi.client {
5141
5192
  deploy?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy;
5142
5193
  /** Optional. Deploy PublisherModel to Google Kubernetes Engine. */
5143
5194
  deployGke?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke;
5195
+ /** Optional. Multiple setups to deploy the PublisherModel to Vertex Endpoint. */
5196
+ multiDeployVertex?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex;
5144
5197
  /** Optional. Open evaluation pipeline of the PublisherModel. */
5145
5198
  openEvaluationPipeline?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences;
5146
5199
  /** Optional. Open fine-tuning pipeline of the PublisherModel. */
@@ -5196,6 +5249,10 @@ declare namespace gapi.client {
5196
5249
  /** Optional. GKE deployment configuration in yaml format. */
5197
5250
  gkeYamlConfigs?: string[];
5198
5251
  }
5252
+ interface GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex {
5253
+ /** Optional. One click deployment configurations. */
5254
+ multiDeployVertex?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy[];
5255
+ }
5199
5256
  interface GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines {
5200
5257
  /** Required. Regional resource references to fine tuning pipelines. */
5201
5258
  fineTuningPipelines?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences[];
@@ -5471,6 +5528,8 @@ declare namespace gapi.client {
5471
5528
  text?: string;
5472
5529
  }
5473
5530
  interface GoogleCloudAiplatformV1beta1RagCorpus {
5531
+ /** Output only. RagCorpus state. */
5532
+ corpusStatus?: GoogleCloudAiplatformV1beta1CorpusStatus;
5474
5533
  /** Output only. Timestamp when this RagCorpus was created. */
5475
5534
  createTime?: string;
5476
5535
  /** Optional. The description of the RagCorpus. */
@@ -5481,6 +5540,8 @@ declare namespace gapi.client {
5481
5540
  name?: string;
5482
5541
  /** Optional. Immutable. The embedding model config of the RagCorpus. */
5483
5542
  ragEmbeddingModelConfig?: GoogleCloudAiplatformV1beta1RagEmbeddingModelConfig;
5543
+ /** Optional. Immutable. The Vector DB config of the RagCorpus. */
5544
+ ragVectorDbConfig?: GoogleCloudAiplatformV1beta1RagVectorDbConfig;
5484
5545
  /** Output only. Timestamp when this RagCorpus was last updated. */
5485
5546
  updateTime?: string;
5486
5547
  }
@@ -5525,6 +5586,8 @@ declare namespace gapi.client {
5525
5586
  directUploadSource?: any;
5526
5587
  /** Required. The display name of the RagFile. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
5527
5588
  displayName?: string;
5589
+ /** Output only. State of the RagFile. */
5590
+ fileStatus?: GoogleCloudAiplatformV1beta1FileStatus;
5528
5591
  /** Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now. */
5529
5592
  gcsSource?: GoogleCloudAiplatformV1beta1GcsSource;
5530
5593
  /** Output only. Google Drive location. Supports importing individual files as well as Google Drive folders. */
@@ -5549,17 +5612,42 @@ declare namespace gapi.client {
5549
5612
  chunkSize?: number;
5550
5613
  }
5551
5614
  interface GoogleCloudAiplatformV1beta1RagFileParsingConfig {
5552
- /** Whether to use OCR for PDFs. */
5553
- parsePdfsUsingOcr?: boolean;
5554
5615
  /** Whether to use advanced PDF parsing. */
5555
5616
  useAdvancedPdfParsing?: boolean;
5556
5617
  }
5557
5618
  interface GoogleCloudAiplatformV1beta1RagQuery {
5619
+ /** Optional. Configurations for hybrid search results ranking. */
5620
+ ranking?: GoogleCloudAiplatformV1beta1RagQueryRanking;
5558
5621
  /** Optional. The number of contexts to retrieve. */
5559
5622
  similarityTopK?: number;
5560
5623
  /** Optional. The query in text format to get relevant contexts. */
5561
5624
  text?: string;
5562
5625
  }
5626
+ interface GoogleCloudAiplatformV1beta1RagQueryRanking {
5627
+ /** Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally. */
5628
+ alpha?: number;
5629
+ }
5630
+ interface GoogleCloudAiplatformV1beta1RagVectorDbConfig {
5631
+ /** Authentication config for the chosen Vector DB. */
5632
+ apiAuth?: GoogleCloudAiplatformV1beta1ApiAuth;
5633
+ /** The config for the RAG-managed Vector DB. */
5634
+ ragManagedDb?: any;
5635
+ /** The config for the Vertex Feature Store. */
5636
+ vertexFeatureStore?: GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore;
5637
+ /** The config for the Weaviate. */
5638
+ weaviate?: GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate;
5639
+ }
5640
+ interface GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb {}
5641
+ interface GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore {
5642
+ /** The resource name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` */
5643
+ featureViewResourceName?: string;
5644
+ }
5645
+ interface GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate {
5646
+ /** The corresponding collection this corpus maps to. This value cannot be changed after it's set. */
5647
+ collectionName?: string;
5648
+ /** Weaviate DB instance HTTP endpoint. e.g. 34.56.78.90:8080 Vertex RAG only supports HTTP connection to Weaviate. This value cannot be changed after it's set. */
5649
+ httpEndpoint?: string;
5650
+ }
5563
5651
  interface GoogleCloudAiplatformV1beta1RawPredictRequest {
5564
5652
  /** The prediction input. Supports HTTP headers and arbitrary data payload. A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model. You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the `Model` as a `DeployedModel` to an Endpoint and use the `RawPredict` method. */
5565
5653
  httpBody?: GoogleApiHttpBody;
@@ -5802,8 +5890,6 @@ declare namespace gapi.client {
5802
5890
  ragCorpora?: string[];
5803
5891
  /** Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support. */
5804
5892
  ragResources?: GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRagResource[];
5805
- /** Optional. Configurations for hybrid search results ranking. */
5806
- ranking?: GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking;
5807
5893
  /** Optional. Only return contexts with vector distance smaller than the threshold. */
5808
5894
  vectorDistanceThreshold?: number;
5809
5895
  }
@@ -5813,10 +5899,6 @@ declare namespace gapi.client {
5813
5899
  /** Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. */
5814
5900
  ragFileIds?: string[];
5815
5901
  }
5816
- interface GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking {
5817
- /** Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally. */
5818
- alpha?: number;
5819
- }
5820
5902
  interface GoogleCloudAiplatformV1beta1RetrieveContextsResponse {
5821
5903
  /** The contexts of the query. */
5822
5904
  contexts?: GoogleCloudAiplatformV1beta1RagContexts;
@@ -6010,6 +6092,8 @@ declare namespace gapi.client {
6010
6092
  interface GoogleCloudAiplatformV1beta1Scheduling {
6011
6093
  /** Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false. */
6012
6094
  disableRetries?: boolean;
6095
+ /** Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours. */
6096
+ maxWaitDuration?: string;
6013
6097
  /** Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job. */
6014
6098
  restartJobOnWorkerRestart?: boolean;
6015
6099
  /** Optional. This determines which type of scheduling strategy to use. */
@@ -7907,8 +7991,12 @@ declare namespace gapi.client {
7907
7991
  totalBillableCharacterCount?: string;
7908
7992
  /** Output only. Number of billable tokens in the tuning dataset. */
7909
7993
  totalBillableTokenCount?: string;
7994
+ /** The number of examples in the dataset that have been truncated by any amount. */
7995
+ totalTruncatedExampleCount?: string;
7910
7996
  /** Output only. Number of tuning characters in the tuning dataset. */
7911
7997
  totalTuningCharacterCount?: string;
7998
+ /** A partial sample of the indices (starting from 1) of the truncated examples. */
7999
+ truncatedExampleIndices?: string[];
7912
8000
  /** Output only. Number of examples in the tuning dataset. */
7913
8001
  tuningDatasetExampleCount?: string;
7914
8002
  /** Output only. Number of tuning steps for this Tuning Job. */
@@ -8530,7 +8618,7 @@ declare namespace gapi.client {
8530
8618
  stringValue?: string;
8531
8619
  }
8532
8620
  interface GoogleCloudAiplatformV1beta1VertexAISearch {
8533
- /** Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */
8621
+ /** Required. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */
8534
8622
  datastore?: string;
8535
8623
  }
8536
8624
  interface GoogleCloudAiplatformV1beta1VertexRagStore {
@@ -8723,6 +8811,698 @@ declare namespace gapi.client {
8723
8811
  /** The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. */
8724
8812
  units?: string;
8725
8813
  }
8814
+ interface DatasetVersionsResource {
8815
+ /** Create a version from a Dataset. */
8816
+ create(request: {
8817
+ /** V1 error format. */
8818
+ '$.xgafv'?: string;
8819
+ /** OAuth access token. */
8820
+ access_token?: string;
8821
+ /** Data format for response. */
8822
+ alt?: string;
8823
+ /** JSONP */
8824
+ callback?: string;
8825
+ /** Selector specifying which fields to include in a partial response. */
8826
+ fields?: string;
8827
+ /** 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. */
8828
+ key?: string;
8829
+ /** OAuth 2.0 token for the current user. */
8830
+ oauth_token?: string;
8831
+ /** Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
8832
+ parent: string;
8833
+ /** Returns response with indentations and line breaks. */
8834
+ prettyPrint?: boolean;
8835
+ /** 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. */
8836
+ quotaUser?: string;
8837
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8838
+ upload_protocol?: string;
8839
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8840
+ uploadType?: string;
8841
+ /** Request body */
8842
+ resource: GoogleCloudAiplatformV1beta1DatasetVersion;
8843
+ }): Request<GoogleLongrunningOperation>;
8844
+ create(
8845
+ request: {
8846
+ /** V1 error format. */
8847
+ '$.xgafv'?: string;
8848
+ /** OAuth access token. */
8849
+ access_token?: string;
8850
+ /** Data format for response. */
8851
+ alt?: string;
8852
+ /** JSONP */
8853
+ callback?: string;
8854
+ /** Selector specifying which fields to include in a partial response. */
8855
+ fields?: string;
8856
+ /** 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. */
8857
+ key?: string;
8858
+ /** OAuth 2.0 token for the current user. */
8859
+ oauth_token?: string;
8860
+ /** Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
8861
+ parent: string;
8862
+ /** Returns response with indentations and line breaks. */
8863
+ prettyPrint?: boolean;
8864
+ /** 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. */
8865
+ quotaUser?: string;
8866
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8867
+ upload_protocol?: string;
8868
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8869
+ uploadType?: string;
8870
+ },
8871
+ body: GoogleCloudAiplatformV1beta1DatasetVersion
8872
+ ): Request<GoogleLongrunningOperation>;
8873
+ /** Deletes a Dataset version. */
8874
+ delete(request?: {
8875
+ /** V1 error format. */
8876
+ '$.xgafv'?: string;
8877
+ /** OAuth access token. */
8878
+ access_token?: string;
8879
+ /** Data format for response. */
8880
+ alt?: string;
8881
+ /** JSONP */
8882
+ callback?: string;
8883
+ /** Selector specifying which fields to include in a partial response. */
8884
+ fields?: string;
8885
+ /** 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. */
8886
+ key?: string;
8887
+ /** Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */
8888
+ name: string;
8889
+ /** OAuth 2.0 token for the current user. */
8890
+ oauth_token?: string;
8891
+ /** Returns response with indentations and line breaks. */
8892
+ prettyPrint?: boolean;
8893
+ /** 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. */
8894
+ quotaUser?: string;
8895
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8896
+ upload_protocol?: string;
8897
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8898
+ uploadType?: string;
8899
+ }): Request<GoogleLongrunningOperation>;
8900
+ /** Gets a Dataset version. */
8901
+ get(request?: {
8902
+ /** V1 error format. */
8903
+ '$.xgafv'?: string;
8904
+ /** OAuth access token. */
8905
+ access_token?: string;
8906
+ /** Data format for response. */
8907
+ alt?: string;
8908
+ /** JSONP */
8909
+ callback?: string;
8910
+ /** Selector specifying which fields to include in a partial response. */
8911
+ fields?: string;
8912
+ /** 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. */
8913
+ key?: string;
8914
+ /** Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */
8915
+ name: string;
8916
+ /** OAuth 2.0 token for the current user. */
8917
+ oauth_token?: string;
8918
+ /** Returns response with indentations and line breaks. */
8919
+ prettyPrint?: boolean;
8920
+ /** 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. */
8921
+ quotaUser?: string;
8922
+ /** Mask specifying which fields to read. */
8923
+ readMask?: string;
8924
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8925
+ upload_protocol?: string;
8926
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8927
+ uploadType?: string;
8928
+ }): Request<GoogleCloudAiplatformV1beta1DatasetVersion>;
8929
+ /** Lists DatasetVersions in a Dataset. */
8930
+ list(request?: {
8931
+ /** V1 error format. */
8932
+ '$.xgafv'?: string;
8933
+ /** OAuth access token. */
8934
+ access_token?: string;
8935
+ /** Data format for response. */
8936
+ alt?: string;
8937
+ /** JSONP */
8938
+ callback?: string;
8939
+ /** Selector specifying which fields to include in a partial response. */
8940
+ fields?: string;
8941
+ /** Optional. The standard list filter. */
8942
+ filter?: string;
8943
+ /** 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. */
8944
+ key?: string;
8945
+ /** OAuth 2.0 token for the current user. */
8946
+ oauth_token?: string;
8947
+ /** Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. */
8948
+ orderBy?: string;
8949
+ /** Optional. The standard list page size. */
8950
+ pageSize?: number;
8951
+ /** Optional. The standard list page token. */
8952
+ pageToken?: string;
8953
+ /** Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
8954
+ parent: string;
8955
+ /** Returns response with indentations and line breaks. */
8956
+ prettyPrint?: boolean;
8957
+ /** 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. */
8958
+ quotaUser?: string;
8959
+ /** Optional. Mask specifying which fields to read. */
8960
+ readMask?: string;
8961
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8962
+ upload_protocol?: string;
8963
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8964
+ uploadType?: string;
8965
+ }): Request<GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse>;
8966
+ /** Updates a DatasetVersion. */
8967
+ patch(request: {
8968
+ /** V1 error format. */
8969
+ '$.xgafv'?: string;
8970
+ /** OAuth access token. */
8971
+ access_token?: string;
8972
+ /** Data format for response. */
8973
+ alt?: string;
8974
+ /** JSONP */
8975
+ callback?: string;
8976
+ /** Selector specifying which fields to include in a partial response. */
8977
+ fields?: string;
8978
+ /** 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. */
8979
+ key?: string;
8980
+ /** Output only. Identifier. The resource name of the DatasetVersion. */
8981
+ name: string;
8982
+ /** OAuth 2.0 token for the current user. */
8983
+ oauth_token?: string;
8984
+ /** Returns response with indentations and line breaks. */
8985
+ prettyPrint?: boolean;
8986
+ /** 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. */
8987
+ quotaUser?: string;
8988
+ /** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` */
8989
+ updateMask?: string;
8990
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8991
+ upload_protocol?: string;
8992
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8993
+ uploadType?: string;
8994
+ /** Request body */
8995
+ resource: GoogleCloudAiplatformV1beta1DatasetVersion;
8996
+ }): Request<GoogleCloudAiplatformV1beta1DatasetVersion>;
8997
+ patch(
8998
+ request: {
8999
+ /** V1 error format. */
9000
+ '$.xgafv'?: string;
9001
+ /** OAuth access token. */
9002
+ access_token?: string;
9003
+ /** Data format for response. */
9004
+ alt?: string;
9005
+ /** JSONP */
9006
+ callback?: string;
9007
+ /** Selector specifying which fields to include in a partial response. */
9008
+ fields?: string;
9009
+ /** 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. */
9010
+ key?: string;
9011
+ /** Output only. Identifier. The resource name of the DatasetVersion. */
9012
+ name: string;
9013
+ /** OAuth 2.0 token for the current user. */
9014
+ oauth_token?: string;
9015
+ /** Returns response with indentations and line breaks. */
9016
+ prettyPrint?: boolean;
9017
+ /** 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. */
9018
+ quotaUser?: string;
9019
+ /** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` */
9020
+ updateMask?: string;
9021
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9022
+ upload_protocol?: string;
9023
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9024
+ uploadType?: string;
9025
+ },
9026
+ body: GoogleCloudAiplatformV1beta1DatasetVersion
9027
+ ): Request<GoogleCloudAiplatformV1beta1DatasetVersion>;
9028
+ /** Restores a dataset version. */
9029
+ restore(request?: {
9030
+ /** V1 error format. */
9031
+ '$.xgafv'?: string;
9032
+ /** OAuth access token. */
9033
+ access_token?: string;
9034
+ /** Data format for response. */
9035
+ alt?: string;
9036
+ /** JSONP */
9037
+ callback?: string;
9038
+ /** Selector specifying which fields to include in a partial response. */
9039
+ fields?: string;
9040
+ /** 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. */
9041
+ key?: string;
9042
+ /** Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */
9043
+ name: string;
9044
+ /** OAuth 2.0 token for the current user. */
9045
+ oauth_token?: string;
9046
+ /** Returns response with indentations and line breaks. */
9047
+ prettyPrint?: boolean;
9048
+ /** 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. */
9049
+ quotaUser?: string;
9050
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9051
+ upload_protocol?: string;
9052
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9053
+ uploadType?: string;
9054
+ }): Request<GoogleLongrunningOperation>;
9055
+ }
9056
+ interface DatasetsResource {
9057
+ /** Creates a Dataset. */
9058
+ create(request: {
9059
+ /** V1 error format. */
9060
+ '$.xgafv'?: string;
9061
+ /** OAuth access token. */
9062
+ access_token?: string;
9063
+ /** Data format for response. */
9064
+ alt?: string;
9065
+ /** JSONP */
9066
+ callback?: string;
9067
+ /** Selector specifying which fields to include in a partial response. */
9068
+ fields?: string;
9069
+ /** 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. */
9070
+ key?: string;
9071
+ /** OAuth 2.0 token for the current user. */
9072
+ oauth_token?: string;
9073
+ /** Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}` */
9074
+ parent?: string;
9075
+ /** Returns response with indentations and line breaks. */
9076
+ prettyPrint?: boolean;
9077
+ /** 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. */
9078
+ quotaUser?: string;
9079
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9080
+ upload_protocol?: string;
9081
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9082
+ uploadType?: string;
9083
+ /** Request body */
9084
+ resource: GoogleCloudAiplatformV1beta1Dataset;
9085
+ }): Request<GoogleLongrunningOperation>;
9086
+ create(
9087
+ request: {
9088
+ /** V1 error format. */
9089
+ '$.xgafv'?: string;
9090
+ /** OAuth access token. */
9091
+ access_token?: string;
9092
+ /** Data format for response. */
9093
+ alt?: string;
9094
+ /** JSONP */
9095
+ callback?: string;
9096
+ /** Selector specifying which fields to include in a partial response. */
9097
+ fields?: string;
9098
+ /** 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. */
9099
+ key?: string;
9100
+ /** OAuth 2.0 token for the current user. */
9101
+ oauth_token?: string;
9102
+ /** Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}` */
9103
+ parent?: string;
9104
+ /** Returns response with indentations and line breaks. */
9105
+ prettyPrint?: boolean;
9106
+ /** 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. */
9107
+ quotaUser?: string;
9108
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9109
+ upload_protocol?: string;
9110
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9111
+ uploadType?: string;
9112
+ },
9113
+ body: GoogleCloudAiplatformV1beta1Dataset
9114
+ ): Request<GoogleLongrunningOperation>;
9115
+ /** Deletes a Dataset. */
9116
+ delete(request?: {
9117
+ /** V1 error format. */
9118
+ '$.xgafv'?: string;
9119
+ /** OAuth access token. */
9120
+ access_token?: string;
9121
+ /** Data format for response. */
9122
+ alt?: string;
9123
+ /** JSONP */
9124
+ callback?: string;
9125
+ /** Selector specifying which fields to include in a partial response. */
9126
+ fields?: string;
9127
+ /** 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. */
9128
+ key?: string;
9129
+ /** Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */
9130
+ name: string;
9131
+ /** OAuth 2.0 token for the current user. */
9132
+ oauth_token?: string;
9133
+ /** Returns response with indentations and line breaks. */
9134
+ prettyPrint?: boolean;
9135
+ /** 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. */
9136
+ quotaUser?: string;
9137
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9138
+ upload_protocol?: string;
9139
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9140
+ uploadType?: string;
9141
+ }): Request<GoogleLongrunningOperation>;
9142
+ /** Gets a Dataset. */
9143
+ get(request?: {
9144
+ /** V1 error format. */
9145
+ '$.xgafv'?: string;
9146
+ /** OAuth access token. */
9147
+ access_token?: string;
9148
+ /** Data format for response. */
9149
+ alt?: string;
9150
+ /** JSONP */
9151
+ callback?: string;
9152
+ /** Selector specifying which fields to include in a partial response. */
9153
+ fields?: string;
9154
+ /** 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. */
9155
+ key?: string;
9156
+ /** Required. The name of the Dataset resource. */
9157
+ name: string;
9158
+ /** OAuth 2.0 token for the current user. */
9159
+ oauth_token?: string;
9160
+ /** Returns response with indentations and line breaks. */
9161
+ prettyPrint?: boolean;
9162
+ /** 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. */
9163
+ quotaUser?: string;
9164
+ /** Mask specifying which fields to read. */
9165
+ readMask?: string;
9166
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9167
+ upload_protocol?: string;
9168
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9169
+ uploadType?: string;
9170
+ }): Request<GoogleCloudAiplatformV1beta1Dataset>;
9171
+ /** Lists Datasets in a Location. */
9172
+ list(request?: {
9173
+ /** V1 error format. */
9174
+ '$.xgafv'?: string;
9175
+ /** OAuth access token. */
9176
+ access_token?: string;
9177
+ /** Data format for response. */
9178
+ alt?: string;
9179
+ /** JSONP */
9180
+ callback?: string;
9181
+ /** Selector specifying which fields to include in a partial response. */
9182
+ fields?: string;
9183
+ /** An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels.myKey="myValue"` */
9184
+ filter?: string;
9185
+ /** 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. */
9186
+ key?: string;
9187
+ /** OAuth 2.0 token for the current user. */
9188
+ oauth_token?: string;
9189
+ /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` */
9190
+ orderBy?: string;
9191
+ /** The standard list page size. */
9192
+ pageSize?: number;
9193
+ /** The standard list page token. */
9194
+ pageToken?: string;
9195
+ /** Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}` */
9196
+ parent?: string;
9197
+ /** Returns response with indentations and line breaks. */
9198
+ prettyPrint?: boolean;
9199
+ /** 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. */
9200
+ quotaUser?: string;
9201
+ /** Mask specifying which fields to read. */
9202
+ readMask?: string;
9203
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9204
+ upload_protocol?: string;
9205
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9206
+ uploadType?: string;
9207
+ }): Request<GoogleCloudAiplatformV1beta1ListDatasetsResponse>;
9208
+ /** Updates a Dataset. */
9209
+ patch(request: {
9210
+ /** V1 error format. */
9211
+ '$.xgafv'?: string;
9212
+ /** OAuth access token. */
9213
+ access_token?: string;
9214
+ /** Data format for response. */
9215
+ alt?: string;
9216
+ /** JSONP */
9217
+ callback?: string;
9218
+ /** Selector specifying which fields to include in a partial response. */
9219
+ fields?: string;
9220
+ /** 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. */
9221
+ key?: string;
9222
+ /** Output only. Identifier. The resource name of the Dataset. */
9223
+ name: string;
9224
+ /** OAuth 2.0 token for the current user. */
9225
+ oauth_token?: string;
9226
+ /** Returns response with indentations and line breaks. */
9227
+ prettyPrint?: boolean;
9228
+ /** 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. */
9229
+ quotaUser?: string;
9230
+ /** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` */
9231
+ updateMask?: string;
9232
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9233
+ upload_protocol?: string;
9234
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9235
+ uploadType?: string;
9236
+ /** Request body */
9237
+ resource: GoogleCloudAiplatformV1beta1Dataset;
9238
+ }): Request<GoogleCloudAiplatformV1beta1Dataset>;
9239
+ patch(
9240
+ request: {
9241
+ /** V1 error format. */
9242
+ '$.xgafv'?: string;
9243
+ /** OAuth access token. */
9244
+ access_token?: string;
9245
+ /** Data format for response. */
9246
+ alt?: string;
9247
+ /** JSONP */
9248
+ callback?: string;
9249
+ /** Selector specifying which fields to include in a partial response. */
9250
+ fields?: string;
9251
+ /** 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. */
9252
+ key?: string;
9253
+ /** Output only. Identifier. The resource name of the Dataset. */
9254
+ name: string;
9255
+ /** OAuth 2.0 token for the current user. */
9256
+ oauth_token?: string;
9257
+ /** Returns response with indentations and line breaks. */
9258
+ prettyPrint?: boolean;
9259
+ /** 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. */
9260
+ quotaUser?: string;
9261
+ /** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` */
9262
+ updateMask?: string;
9263
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9264
+ upload_protocol?: string;
9265
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9266
+ uploadType?: string;
9267
+ },
9268
+ body: GoogleCloudAiplatformV1beta1Dataset
9269
+ ): Request<GoogleCloudAiplatformV1beta1Dataset>;
9270
+ datasetVersions: DatasetVersionsResource;
9271
+ }
9272
+ interface EndpointsResource {
9273
+ /** Return a list of tokens based on the input text. */
9274
+ computeTokens(request: {
9275
+ /** V1 error format. */
9276
+ '$.xgafv'?: string;
9277
+ /** OAuth access token. */
9278
+ access_token?: string;
9279
+ /** Data format for response. */
9280
+ alt?: string;
9281
+ /** JSONP */
9282
+ callback?: string;
9283
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
9284
+ endpoint: string;
9285
+ /** Selector specifying which fields to include in a partial response. */
9286
+ fields?: string;
9287
+ /** 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. */
9288
+ key?: string;
9289
+ /** OAuth 2.0 token for the current user. */
9290
+ oauth_token?: string;
9291
+ /** Returns response with indentations and line breaks. */
9292
+ prettyPrint?: boolean;
9293
+ /** 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. */
9294
+ quotaUser?: string;
9295
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9296
+ upload_protocol?: string;
9297
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9298
+ uploadType?: string;
9299
+ /** Request body */
9300
+ resource: GoogleCloudAiplatformV1beta1ComputeTokensRequest;
9301
+ }): Request<GoogleCloudAiplatformV1beta1ComputeTokensResponse>;
9302
+ computeTokens(
9303
+ request: {
9304
+ /** V1 error format. */
9305
+ '$.xgafv'?: string;
9306
+ /** OAuth access token. */
9307
+ access_token?: string;
9308
+ /** Data format for response. */
9309
+ alt?: string;
9310
+ /** JSONP */
9311
+ callback?: string;
9312
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
9313
+ endpoint: string;
9314
+ /** Selector specifying which fields to include in a partial response. */
9315
+ fields?: string;
9316
+ /** 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. */
9317
+ key?: string;
9318
+ /** OAuth 2.0 token for the current user. */
9319
+ oauth_token?: string;
9320
+ /** Returns response with indentations and line breaks. */
9321
+ prettyPrint?: boolean;
9322
+ /** 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. */
9323
+ quotaUser?: string;
9324
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9325
+ upload_protocol?: string;
9326
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9327
+ uploadType?: string;
9328
+ },
9329
+ body: GoogleCloudAiplatformV1beta1ComputeTokensRequest
9330
+ ): Request<GoogleCloudAiplatformV1beta1ComputeTokensResponse>;
9331
+ /** Perform a token counting. */
9332
+ countTokens(request: {
9333
+ /** V1 error format. */
9334
+ '$.xgafv'?: string;
9335
+ /** OAuth access token. */
9336
+ access_token?: string;
9337
+ /** Data format for response. */
9338
+ alt?: string;
9339
+ /** JSONP */
9340
+ callback?: string;
9341
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9342
+ endpoint: string;
9343
+ /** Selector specifying which fields to include in a partial response. */
9344
+ fields?: string;
9345
+ /** 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. */
9346
+ key?: string;
9347
+ /** OAuth 2.0 token for the current user. */
9348
+ oauth_token?: string;
9349
+ /** Returns response with indentations and line breaks. */
9350
+ prettyPrint?: boolean;
9351
+ /** 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. */
9352
+ quotaUser?: string;
9353
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9354
+ upload_protocol?: string;
9355
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9356
+ uploadType?: string;
9357
+ /** Request body */
9358
+ resource: GoogleCloudAiplatformV1beta1CountTokensRequest;
9359
+ }): Request<GoogleCloudAiplatformV1beta1CountTokensResponse>;
9360
+ countTokens(
9361
+ request: {
9362
+ /** V1 error format. */
9363
+ '$.xgafv'?: string;
9364
+ /** OAuth access token. */
9365
+ access_token?: string;
9366
+ /** Data format for response. */
9367
+ alt?: string;
9368
+ /** JSONP */
9369
+ callback?: string;
9370
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9371
+ endpoint: string;
9372
+ /** Selector specifying which fields to include in a partial response. */
9373
+ fields?: string;
9374
+ /** 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. */
9375
+ key?: string;
9376
+ /** OAuth 2.0 token for the current user. */
9377
+ oauth_token?: string;
9378
+ /** Returns response with indentations and line breaks. */
9379
+ prettyPrint?: boolean;
9380
+ /** 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. */
9381
+ quotaUser?: string;
9382
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9383
+ upload_protocol?: string;
9384
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9385
+ uploadType?: string;
9386
+ },
9387
+ body: GoogleCloudAiplatformV1beta1CountTokensRequest
9388
+ ): Request<GoogleCloudAiplatformV1beta1CountTokensResponse>;
9389
+ /** Generate content with multimodal inputs. */
9390
+ generateContent(request: {
9391
+ /** V1 error format. */
9392
+ '$.xgafv'?: string;
9393
+ /** OAuth access token. */
9394
+ access_token?: string;
9395
+ /** Data format for response. */
9396
+ alt?: string;
9397
+ /** JSONP */
9398
+ callback?: string;
9399
+ /** Selector specifying which fields to include in a partial response. */
9400
+ fields?: string;
9401
+ /** 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. */
9402
+ key?: string;
9403
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9404
+ model: string;
9405
+ /** OAuth 2.0 token for the current user. */
9406
+ oauth_token?: string;
9407
+ /** Returns response with indentations and line breaks. */
9408
+ prettyPrint?: boolean;
9409
+ /** 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. */
9410
+ quotaUser?: string;
9411
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9412
+ upload_protocol?: string;
9413
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9414
+ uploadType?: string;
9415
+ /** Request body */
9416
+ resource: GoogleCloudAiplatformV1beta1GenerateContentRequest;
9417
+ }): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
9418
+ generateContent(
9419
+ request: {
9420
+ /** V1 error format. */
9421
+ '$.xgafv'?: string;
9422
+ /** OAuth access token. */
9423
+ access_token?: string;
9424
+ /** Data format for response. */
9425
+ alt?: string;
9426
+ /** JSONP */
9427
+ callback?: string;
9428
+ /** Selector specifying which fields to include in a partial response. */
9429
+ fields?: string;
9430
+ /** 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. */
9431
+ key?: string;
9432
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9433
+ model: string;
9434
+ /** OAuth 2.0 token for the current user. */
9435
+ oauth_token?: string;
9436
+ /** Returns response with indentations and line breaks. */
9437
+ prettyPrint?: boolean;
9438
+ /** 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. */
9439
+ quotaUser?: string;
9440
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9441
+ upload_protocol?: string;
9442
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9443
+ uploadType?: string;
9444
+ },
9445
+ body: GoogleCloudAiplatformV1beta1GenerateContentRequest
9446
+ ): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
9447
+ /** Generate content with multimodal inputs with streaming support. */
9448
+ streamGenerateContent(request: {
9449
+ /** V1 error format. */
9450
+ '$.xgafv'?: string;
9451
+ /** OAuth access token. */
9452
+ access_token?: string;
9453
+ /** Data format for response. */
9454
+ alt?: string;
9455
+ /** JSONP */
9456
+ callback?: string;
9457
+ /** Selector specifying which fields to include in a partial response. */
9458
+ fields?: string;
9459
+ /** 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. */
9460
+ key?: string;
9461
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9462
+ model: string;
9463
+ /** OAuth 2.0 token for the current user. */
9464
+ oauth_token?: string;
9465
+ /** Returns response with indentations and line breaks. */
9466
+ prettyPrint?: boolean;
9467
+ /** 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. */
9468
+ quotaUser?: string;
9469
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9470
+ upload_protocol?: string;
9471
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9472
+ uploadType?: string;
9473
+ /** Request body */
9474
+ resource: GoogleCloudAiplatformV1beta1GenerateContentRequest;
9475
+ }): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
9476
+ streamGenerateContent(
9477
+ request: {
9478
+ /** V1 error format. */
9479
+ '$.xgafv'?: string;
9480
+ /** OAuth access token. */
9481
+ access_token?: string;
9482
+ /** Data format for response. */
9483
+ alt?: string;
9484
+ /** JSONP */
9485
+ callback?: string;
9486
+ /** Selector specifying which fields to include in a partial response. */
9487
+ fields?: string;
9488
+ /** 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. */
9489
+ key?: string;
9490
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
9491
+ model: string;
9492
+ /** OAuth 2.0 token for the current user. */
9493
+ oauth_token?: string;
9494
+ /** Returns response with indentations and line breaks. */
9495
+ prettyPrint?: boolean;
9496
+ /** 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. */
9497
+ quotaUser?: string;
9498
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9499
+ upload_protocol?: string;
9500
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9501
+ uploadType?: string;
9502
+ },
9503
+ body: GoogleCloudAiplatformV1beta1GenerateContentRequest
9504
+ ): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
9505
+ }
8726
9506
  interface MediaResource {
8727
9507
  /** Upload a file into a RagCorpus. */
8728
9508
  upload(request: {
@@ -10524,7 +11304,7 @@ declare namespace gapi.client {
10524
11304
  }): Request<GoogleLongrunningOperation>;
10525
11305
  }
10526
11306
  interface AnnotationsResource {
10527
- /** Lists Annotations belongs to a dataitem */
11307
+ /** Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights. */
10528
11308
  list(request?: {
10529
11309
  /** V1 error format. */
10530
11310
  '$.xgafv'?: string;
@@ -12280,7 +13060,7 @@ declare namespace gapi.client {
12280
13060
  alt?: string;
12281
13061
  /** JSONP */
12282
13062
  callback?: string;
12283
- /** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/openapi` */
13063
+ /** Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
12284
13064
  endpoint: string;
12285
13065
  /** Selector specifying which fields to include in a partial response. */
12286
13066
  fields?: string;
@@ -12309,7 +13089,7 @@ declare namespace gapi.client {
12309
13089
  alt?: string;
12310
13090
  /** JSONP */
12311
13091
  callback?: string;
12312
- /** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/openapi` */
13092
+ /** Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
12313
13093
  endpoint: string;
12314
13094
  /** Selector specifying which fields to include in a partial response. */
12315
13095
  fields?: string;
@@ -12926,7 +13706,7 @@ declare namespace gapi.client {
12926
13706
  fields?: string;
12927
13707
  /** 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. */
12928
13708
  key?: string;
12929
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
13709
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
12930
13710
  model: string;
12931
13711
  /** OAuth 2.0 token for the current user. */
12932
13712
  oauth_token?: string;
@@ -12955,7 +13735,7 @@ declare namespace gapi.client {
12955
13735
  fields?: string;
12956
13736
  /** 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. */
12957
13737
  key?: string;
12958
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
13738
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
12959
13739
  model: string;
12960
13740
  /** OAuth 2.0 token for the current user. */
12961
13741
  oauth_token?: string;
@@ -13399,7 +14179,7 @@ declare namespace gapi.client {
13399
14179
  fields?: string;
13400
14180
  /** 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. */
13401
14181
  key?: string;
13402
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
14182
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
13403
14183
  model: string;
13404
14184
  /** OAuth 2.0 token for the current user. */
13405
14185
  oauth_token?: string;
@@ -13428,7 +14208,7 @@ declare namespace gapi.client {
13428
14208
  fields?: string;
13429
14209
  /** 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. */
13430
14210
  key?: string;
13431
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
14211
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
13432
14212
  model: string;
13433
14213
  /** OAuth 2.0 token for the current user. */
13434
14214
  oauth_token?: string;
@@ -26960,7 +27740,7 @@ declare namespace gapi.client {
26960
27740
  fields?: string;
26961
27741
  /** 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. */
26962
27742
  key?: string;
26963
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
27743
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
26964
27744
  model: string;
26965
27745
  /** OAuth 2.0 token for the current user. */
26966
27746
  oauth_token?: string;
@@ -26989,7 +27769,7 @@ declare namespace gapi.client {
26989
27769
  fields?: string;
26990
27770
  /** 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. */
26991
27771
  key?: string;
26992
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
27772
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
26993
27773
  model: string;
26994
27774
  /** OAuth 2.0 token for the current user. */
26995
27775
  oauth_token?: string;
@@ -27221,7 +28001,7 @@ declare namespace gapi.client {
27221
28001
  fields?: string;
27222
28002
  /** 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. */
27223
28003
  key?: string;
27224
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
28004
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
27225
28005
  model: string;
27226
28006
  /** OAuth 2.0 token for the current user. */
27227
28007
  oauth_token?: string;
@@ -27250,7 +28030,7 @@ declare namespace gapi.client {
27250
28030
  fields?: string;
27251
28031
  /** 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. */
27252
28032
  key?: string;
27253
- /** Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*‍/models/*` */
28033
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
27254
28034
  model: string;
27255
28035
  /** OAuth 2.0 token for the current user. */
27256
28036
  oauth_token?: string;
@@ -27909,6 +28689,64 @@ declare namespace gapi.client {
27909
28689
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
27910
28690
  uploadType?: string;
27911
28691
  }): Request<GoogleCloudAiplatformV1beta1ListRagCorporaResponse>;
28692
+ /** Updates a RagCorpus. */
28693
+ patch(request: {
28694
+ /** V1 error format. */
28695
+ '$.xgafv'?: string;
28696
+ /** OAuth access token. */
28697
+ access_token?: string;
28698
+ /** Data format for response. */
28699
+ alt?: string;
28700
+ /** JSONP */
28701
+ callback?: string;
28702
+ /** Selector specifying which fields to include in a partial response. */
28703
+ fields?: string;
28704
+ /** 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. */
28705
+ key?: string;
28706
+ /** Output only. The resource name of the RagCorpus. */
28707
+ name: string;
28708
+ /** OAuth 2.0 token for the current user. */
28709
+ oauth_token?: string;
28710
+ /** Returns response with indentations and line breaks. */
28711
+ prettyPrint?: boolean;
28712
+ /** 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. */
28713
+ quotaUser?: string;
28714
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28715
+ upload_protocol?: string;
28716
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28717
+ uploadType?: string;
28718
+ /** Request body */
28719
+ resource: GoogleCloudAiplatformV1beta1RagCorpus;
28720
+ }): Request<GoogleLongrunningOperation>;
28721
+ patch(
28722
+ request: {
28723
+ /** V1 error format. */
28724
+ '$.xgafv'?: string;
28725
+ /** OAuth access token. */
28726
+ access_token?: string;
28727
+ /** Data format for response. */
28728
+ alt?: string;
28729
+ /** JSONP */
28730
+ callback?: string;
28731
+ /** Selector specifying which fields to include in a partial response. */
28732
+ fields?: string;
28733
+ /** 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. */
28734
+ key?: string;
28735
+ /** Output only. The resource name of the RagCorpus. */
28736
+ name: string;
28737
+ /** OAuth 2.0 token for the current user. */
28738
+ oauth_token?: string;
28739
+ /** Returns response with indentations and line breaks. */
28740
+ prettyPrint?: boolean;
28741
+ /** 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. */
28742
+ quotaUser?: string;
28743
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28744
+ upload_protocol?: string;
28745
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28746
+ uploadType?: string;
28747
+ },
28748
+ body: GoogleCloudAiplatformV1beta1RagCorpus
28749
+ ): Request<GoogleLongrunningOperation>;
27912
28750
  operations: OperationsResource;
27913
28751
  ragFiles: RagFilesResource;
27914
28752
  }
@@ -32960,6 +33798,180 @@ declare namespace gapi.client {
32960
33798
  locations: LocationsResource;
32961
33799
  }
32962
33800
  interface ModelsResource {
33801
+ /** Return a list of tokens based on the input text. */
33802
+ computeTokens(request: {
33803
+ /** V1 error format. */
33804
+ '$.xgafv'?: string;
33805
+ /** OAuth access token. */
33806
+ access_token?: string;
33807
+ /** Data format for response. */
33808
+ alt?: string;
33809
+ /** JSONP */
33810
+ callback?: string;
33811
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
33812
+ endpoint: string;
33813
+ /** Selector specifying which fields to include in a partial response. */
33814
+ fields?: string;
33815
+ /** 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. */
33816
+ key?: string;
33817
+ /** OAuth 2.0 token for the current user. */
33818
+ oauth_token?: string;
33819
+ /** Returns response with indentations and line breaks. */
33820
+ prettyPrint?: boolean;
33821
+ /** 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. */
33822
+ quotaUser?: string;
33823
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33824
+ upload_protocol?: string;
33825
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33826
+ uploadType?: string;
33827
+ /** Request body */
33828
+ resource: GoogleCloudAiplatformV1beta1ComputeTokensRequest;
33829
+ }): Request<GoogleCloudAiplatformV1beta1ComputeTokensResponse>;
33830
+ computeTokens(
33831
+ request: {
33832
+ /** V1 error format. */
33833
+ '$.xgafv'?: string;
33834
+ /** OAuth access token. */
33835
+ access_token?: string;
33836
+ /** Data format for response. */
33837
+ alt?: string;
33838
+ /** JSONP */
33839
+ callback?: string;
33840
+ /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */
33841
+ endpoint: string;
33842
+ /** Selector specifying which fields to include in a partial response. */
33843
+ fields?: string;
33844
+ /** 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. */
33845
+ key?: string;
33846
+ /** OAuth 2.0 token for the current user. */
33847
+ oauth_token?: string;
33848
+ /** Returns response with indentations and line breaks. */
33849
+ prettyPrint?: boolean;
33850
+ /** 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. */
33851
+ quotaUser?: string;
33852
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33853
+ upload_protocol?: string;
33854
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33855
+ uploadType?: string;
33856
+ },
33857
+ body: GoogleCloudAiplatformV1beta1ComputeTokensRequest
33858
+ ): Request<GoogleCloudAiplatformV1beta1ComputeTokensResponse>;
33859
+ /** Perform a token counting. */
33860
+ countTokens(request: {
33861
+ /** V1 error format. */
33862
+ '$.xgafv'?: string;
33863
+ /** OAuth access token. */
33864
+ access_token?: string;
33865
+ /** Data format for response. */
33866
+ alt?: string;
33867
+ /** JSONP */
33868
+ callback?: string;
33869
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33870
+ endpoint: string;
33871
+ /** Selector specifying which fields to include in a partial response. */
33872
+ fields?: string;
33873
+ /** 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. */
33874
+ key?: string;
33875
+ /** OAuth 2.0 token for the current user. */
33876
+ oauth_token?: string;
33877
+ /** Returns response with indentations and line breaks. */
33878
+ prettyPrint?: boolean;
33879
+ /** 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. */
33880
+ quotaUser?: string;
33881
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33882
+ upload_protocol?: string;
33883
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33884
+ uploadType?: string;
33885
+ /** Request body */
33886
+ resource: GoogleCloudAiplatformV1beta1CountTokensRequest;
33887
+ }): Request<GoogleCloudAiplatformV1beta1CountTokensResponse>;
33888
+ countTokens(
33889
+ request: {
33890
+ /** V1 error format. */
33891
+ '$.xgafv'?: string;
33892
+ /** OAuth access token. */
33893
+ access_token?: string;
33894
+ /** Data format for response. */
33895
+ alt?: string;
33896
+ /** JSONP */
33897
+ callback?: string;
33898
+ /** Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33899
+ endpoint: string;
33900
+ /** Selector specifying which fields to include in a partial response. */
33901
+ fields?: string;
33902
+ /** 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. */
33903
+ key?: string;
33904
+ /** OAuth 2.0 token for the current user. */
33905
+ oauth_token?: string;
33906
+ /** Returns response with indentations and line breaks. */
33907
+ prettyPrint?: boolean;
33908
+ /** 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. */
33909
+ quotaUser?: string;
33910
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33911
+ upload_protocol?: string;
33912
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33913
+ uploadType?: string;
33914
+ },
33915
+ body: GoogleCloudAiplatformV1beta1CountTokensRequest
33916
+ ): Request<GoogleCloudAiplatformV1beta1CountTokensResponse>;
33917
+ /** Generate content with multimodal inputs. */
33918
+ generateContent(request: {
33919
+ /** V1 error format. */
33920
+ '$.xgafv'?: string;
33921
+ /** OAuth access token. */
33922
+ access_token?: string;
33923
+ /** Data format for response. */
33924
+ alt?: string;
33925
+ /** JSONP */
33926
+ callback?: string;
33927
+ /** Selector specifying which fields to include in a partial response. */
33928
+ fields?: string;
33929
+ /** 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. */
33930
+ key?: string;
33931
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33932
+ model: string;
33933
+ /** OAuth 2.0 token for the current user. */
33934
+ oauth_token?: string;
33935
+ /** Returns response with indentations and line breaks. */
33936
+ prettyPrint?: boolean;
33937
+ /** 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. */
33938
+ quotaUser?: string;
33939
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33940
+ upload_protocol?: string;
33941
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33942
+ uploadType?: string;
33943
+ /** Request body */
33944
+ resource: GoogleCloudAiplatformV1beta1GenerateContentRequest;
33945
+ }): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
33946
+ generateContent(
33947
+ request: {
33948
+ /** V1 error format. */
33949
+ '$.xgafv'?: string;
33950
+ /** OAuth access token. */
33951
+ access_token?: string;
33952
+ /** Data format for response. */
33953
+ alt?: string;
33954
+ /** JSONP */
33955
+ callback?: string;
33956
+ /** Selector specifying which fields to include in a partial response. */
33957
+ fields?: string;
33958
+ /** 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. */
33959
+ key?: string;
33960
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
33961
+ model: string;
33962
+ /** OAuth 2.0 token for the current user. */
33963
+ oauth_token?: string;
33964
+ /** Returns response with indentations and line breaks. */
33965
+ prettyPrint?: boolean;
33966
+ /** 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. */
33967
+ quotaUser?: string;
33968
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
33969
+ upload_protocol?: string;
33970
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
33971
+ uploadType?: string;
33972
+ },
33973
+ body: GoogleCloudAiplatformV1beta1GenerateContentRequest
33974
+ ): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
32963
33975
  /** Gets a Model Garden publisher model. */
32964
33976
  get(request?: {
32965
33977
  /** V1 error format. */
@@ -33034,11 +34046,73 @@ declare namespace gapi.client {
33034
34046
  /** Optional. PublisherModel view specifying which fields to read. */
33035
34047
  view?: string;
33036
34048
  }): Request<GoogleCloudAiplatformV1beta1ListPublisherModelsResponse>;
34049
+ /** Generate content with multimodal inputs with streaming support. */
34050
+ streamGenerateContent(request: {
34051
+ /** V1 error format. */
34052
+ '$.xgafv'?: string;
34053
+ /** OAuth access token. */
34054
+ access_token?: string;
34055
+ /** Data format for response. */
34056
+ alt?: string;
34057
+ /** JSONP */
34058
+ callback?: string;
34059
+ /** Selector specifying which fields to include in a partial response. */
34060
+ fields?: string;
34061
+ /** 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. */
34062
+ key?: string;
34063
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
34064
+ model: string;
34065
+ /** OAuth 2.0 token for the current user. */
34066
+ oauth_token?: string;
34067
+ /** Returns response with indentations and line breaks. */
34068
+ prettyPrint?: boolean;
34069
+ /** 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. */
34070
+ quotaUser?: string;
34071
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
34072
+ upload_protocol?: string;
34073
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
34074
+ uploadType?: string;
34075
+ /** Request body */
34076
+ resource: GoogleCloudAiplatformV1beta1GenerateContentRequest;
34077
+ }): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
34078
+ streamGenerateContent(
34079
+ request: {
34080
+ /** V1 error format. */
34081
+ '$.xgafv'?: string;
34082
+ /** OAuth access token. */
34083
+ access_token?: string;
34084
+ /** Data format for response. */
34085
+ alt?: string;
34086
+ /** JSONP */
34087
+ callback?: string;
34088
+ /** Selector specifying which fields to include in a partial response. */
34089
+ fields?: string;
34090
+ /** 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. */
34091
+ key?: string;
34092
+ /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
34093
+ model: string;
34094
+ /** OAuth 2.0 token for the current user. */
34095
+ oauth_token?: string;
34096
+ /** Returns response with indentations and line breaks. */
34097
+ prettyPrint?: boolean;
34098
+ /** 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. */
34099
+ quotaUser?: string;
34100
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
34101
+ upload_protocol?: string;
34102
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
34103
+ uploadType?: string;
34104
+ },
34105
+ body: GoogleCloudAiplatformV1beta1GenerateContentRequest
34106
+ ): Request<GoogleCloudAiplatformV1beta1GenerateContentResponse>;
33037
34107
  }
33038
34108
  interface PublishersResource {
33039
34109
  models: ModelsResource;
33040
34110
  }
33041
34111
 
34112
+ const datasets: DatasetsResource;
34113
+
34114
+ const endpoints: EndpointsResource;
34115
+
33042
34116
  const media: MediaResource;
33043
34117
 
33044
34118
  const projects: ProjectsResource;