assassinlike commited on
Commit
8f6f13f
·
verified ·
1 Parent(s): 0df470b

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/_http/__pycache__/__init__.cpython-311.pyc +0 -0
  2. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/__pycache__/__init__.cpython-311.pyc +0 -0
  3. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/__pycache__/gapic_version.cpython-311.pyc +0 -0
  4. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/services/__init__.py +15 -0
  5. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/__init__.py +2278 -0
  6. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/accelerator_type.py +99 -0
  7. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/annotation_spec.py +82 -0
  8. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/api_auth.py +66 -0
  9. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/artifact.py +175 -0
  10. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/batch_prediction_job.py +743 -0
  11. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/cached_content.py +203 -0
  12. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/content.py +2153 -0
  13. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/custom_job.py +644 -0
  14. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/data_foundry_service.py +216 -0
  15. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/data_item.py +117 -0
  16. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/data_labeling_job.py +363 -0
  17. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/dataset_service.py +1134 -0
  18. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/dataset_version.py +117 -0
  19. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/deployed_model_ref.py +52 -0
  20. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/deployment_resource_pool_service.py +330 -0
  21. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/deployment_stage.py +77 -0
  22. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/encryption_spec.py +51 -0
  23. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/endpoint.py +754 -0
  24. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/entity_type.py +150 -0
  25. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/env_var.py +112 -0
  26. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/evaluation_service.py +0 -0
  27. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/explanation.py +1058 -0
  28. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/explanation_metadata.py +614 -0
  29. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature.py +250 -0
  30. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature_group.py +189 -0
  31. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature_monitoring_stats.py +129 -0
  32. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature_online_store.py +341 -0
  33. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature_view.py +540 -0
  34. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/featurestore.py +248 -0
  35. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/featurestore_online_service.py +502 -0
  36. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/featurestore_service.py +1992 -0
  37. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/gen_ai_cache_service.py +185 -0
  38. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/hyperparameter_tuning_job.py +200 -0
  39. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/index.py +477 -0
  40. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/index_endpoint.py +524 -0
  41. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/index_endpoint_service.py +426 -0
  42. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/io.py +554 -0
  43. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/job_service.py +1419 -0
  44. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/job_state.py +81 -0
  45. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/lineage_subgraph.py +66 -0
  46. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/match_service.py +285 -0
  47. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/metadata_service.py +1568 -0
  48. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/model.py +1524 -0
  49. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/model_deployment_monitoring_job.py +580 -0
  50. data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/model_evaluation.py +188 -0
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/_http/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (18.1 kB). View file
 
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (88.1 kB). View file
 
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/__pycache__/gapic_version.cpython-311.pyc ADDED
Binary file (243 Bytes). View file
 
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/services/__init__.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/__init__.py ADDED
@@ -0,0 +1,2278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from .accelerator_type import (
17
+ AcceleratorType,
18
+ )
19
+ from .annotation import (
20
+ Annotation,
21
+ )
22
+ from .annotation_spec import (
23
+ AnnotationSpec,
24
+ )
25
+ from .api_auth import (
26
+ ApiAuth,
27
+ )
28
+ from .artifact import (
29
+ Artifact,
30
+ )
31
+ from .batch_prediction_job import (
32
+ BatchPredictionJob,
33
+ )
34
+ from .cached_content import (
35
+ CachedContent,
36
+ )
37
+ from .completion_stats import (
38
+ CompletionStats,
39
+ )
40
+ from .content import (
41
+ Blob,
42
+ Candidate,
43
+ Citation,
44
+ CitationMetadata,
45
+ Content,
46
+ FileData,
47
+ GenerationConfig,
48
+ GroundingChunk,
49
+ GroundingMetadata,
50
+ GroundingSupport,
51
+ ImageConfig,
52
+ LogprobsResult,
53
+ ModalityTokenCount,
54
+ ModelArmorConfig,
55
+ MultiSpeakerVoiceConfig,
56
+ Part,
57
+ PrebuiltVoiceConfig,
58
+ ReplicatedVoiceConfig,
59
+ RetrievalMetadata,
60
+ SafetyRating,
61
+ SafetySetting,
62
+ SearchEntryPoint,
63
+ Segment,
64
+ SpeakerVoiceConfig,
65
+ SpeechConfig,
66
+ UrlContextMetadata,
67
+ UrlMetadata,
68
+ VideoMetadata,
69
+ VoiceConfig,
70
+ HarmCategory,
71
+ Modality,
72
+ )
73
+ from .context import (
74
+ Context,
75
+ )
76
+ from .custom_job import (
77
+ ContainerSpec,
78
+ CustomJob,
79
+ CustomJobSpec,
80
+ PythonPackageSpec,
81
+ Scheduling,
82
+ WorkerPoolSpec,
83
+ )
84
+ from .data_foundry_service import (
85
+ GenerateSyntheticDataRequest,
86
+ GenerateSyntheticDataResponse,
87
+ OutputFieldSpec,
88
+ SyntheticExample,
89
+ SyntheticField,
90
+ TaskDescriptionStrategy,
91
+ )
92
+ from .data_item import (
93
+ DataItem,
94
+ )
95
+ from .data_labeling_job import (
96
+ ActiveLearningConfig,
97
+ DataLabelingJob,
98
+ SampleConfig,
99
+ TrainingConfig,
100
+ )
101
+ from .dataset import (
102
+ Dataset,
103
+ ExportDataConfig,
104
+ ExportFilterSplit,
105
+ ExportFractionSplit,
106
+ ImportDataConfig,
107
+ )
108
+ from .dataset_service import (
109
+ CreateDatasetOperationMetadata,
110
+ CreateDatasetRequest,
111
+ CreateDatasetVersionOperationMetadata,
112
+ CreateDatasetVersionRequest,
113
+ DataItemView,
114
+ DeleteDatasetRequest,
115
+ DeleteDatasetVersionRequest,
116
+ DeleteSavedQueryRequest,
117
+ ExportDataOperationMetadata,
118
+ ExportDataRequest,
119
+ ExportDataResponse,
120
+ GetAnnotationSpecRequest,
121
+ GetDatasetRequest,
122
+ GetDatasetVersionRequest,
123
+ ImportDataOperationMetadata,
124
+ ImportDataRequest,
125
+ ImportDataResponse,
126
+ ListAnnotationsRequest,
127
+ ListAnnotationsResponse,
128
+ ListDataItemsRequest,
129
+ ListDataItemsResponse,
130
+ ListDatasetsRequest,
131
+ ListDatasetsResponse,
132
+ ListDatasetVersionsRequest,
133
+ ListDatasetVersionsResponse,
134
+ ListSavedQueriesRequest,
135
+ ListSavedQueriesResponse,
136
+ RestoreDatasetVersionOperationMetadata,
137
+ RestoreDatasetVersionRequest,
138
+ SearchDataItemsRequest,
139
+ SearchDataItemsResponse,
140
+ UpdateDatasetRequest,
141
+ UpdateDatasetVersionRequest,
142
+ )
143
+ from .dataset_version import (
144
+ DatasetVersion,
145
+ )
146
+ from .deployed_index_ref import (
147
+ DeployedIndexRef,
148
+ )
149
+ from .deployed_model_ref import (
150
+ DeployedModelRef,
151
+ )
152
+ from .deployment_resource_pool import (
153
+ DeploymentResourcePool,
154
+ )
155
+ from .deployment_resource_pool_service import (
156
+ CreateDeploymentResourcePoolOperationMetadata,
157
+ CreateDeploymentResourcePoolRequest,
158
+ DeleteDeploymentResourcePoolRequest,
159
+ GetDeploymentResourcePoolRequest,
160
+ ListDeploymentResourcePoolsRequest,
161
+ ListDeploymentResourcePoolsResponse,
162
+ QueryDeployedModelsRequest,
163
+ QueryDeployedModelsResponse,
164
+ UpdateDeploymentResourcePoolOperationMetadata,
165
+ UpdateDeploymentResourcePoolRequest,
166
+ )
167
+ from .deployment_stage import (
168
+ DeploymentStage,
169
+ )
170
+ from .encryption_spec import (
171
+ EncryptionSpec,
172
+ )
173
+ from .endpoint import (
174
+ ClientConnectionConfig,
175
+ DeployedModel,
176
+ Endpoint,
177
+ FasterDeploymentConfig,
178
+ GenAiAdvancedFeaturesConfig,
179
+ PredictRequestResponseLoggingConfig,
180
+ PrivateEndpoints,
181
+ SpeculativeDecodingSpec,
182
+ )
183
+ from .endpoint_service import (
184
+ CreateEndpointOperationMetadata,
185
+ CreateEndpointRequest,
186
+ DeleteEndpointRequest,
187
+ DeployModelOperationMetadata,
188
+ DeployModelRequest,
189
+ DeployModelResponse,
190
+ GetEndpointRequest,
191
+ ListEndpointsRequest,
192
+ ListEndpointsResponse,
193
+ MutateDeployedModelOperationMetadata,
194
+ MutateDeployedModelRequest,
195
+ MutateDeployedModelResponse,
196
+ UndeployModelOperationMetadata,
197
+ UndeployModelRequest,
198
+ UndeployModelResponse,
199
+ UpdateEndpointLongRunningRequest,
200
+ UpdateEndpointOperationMetadata,
201
+ UpdateEndpointRequest,
202
+ )
203
+ from .entity_type import (
204
+ EntityType,
205
+ )
206
+ from .env_var import (
207
+ EnvVar,
208
+ SecretEnvVar,
209
+ SecretRef,
210
+ )
211
+ from .evaluated_annotation import (
212
+ ErrorAnalysisAnnotation,
213
+ EvaluatedAnnotation,
214
+ EvaluatedAnnotationExplanation,
215
+ )
216
+ from .evaluation_service import (
217
+ AggregationOutput,
218
+ AggregationResult,
219
+ AutoraterConfig,
220
+ BleuInput,
221
+ BleuInstance,
222
+ BleuMetricValue,
223
+ BleuResults,
224
+ BleuSpec,
225
+ CoherenceInput,
226
+ CoherenceInstance,
227
+ CoherenceResult,
228
+ CoherenceSpec,
229
+ CometInput,
230
+ CometInstance,
231
+ CometResult,
232
+ CometSpec,
233
+ ComputationBasedMetricSpec,
234
+ ContentMap,
235
+ CustomOutput,
236
+ CustomOutputFormatConfig,
237
+ EvaluateDatasetResponse,
238
+ EvaluateInstancesRequest,
239
+ EvaluateInstancesResponse,
240
+ EvaluationDataset,
241
+ ExactMatchInput,
242
+ ExactMatchInstance,
243
+ ExactMatchMetricValue,
244
+ ExactMatchResults,
245
+ ExactMatchSpec,
246
+ FluencyInput,
247
+ FluencyInstance,
248
+ FluencyResult,
249
+ FluencySpec,
250
+ FulfillmentInput,
251
+ FulfillmentInstance,
252
+ FulfillmentResult,
253
+ FulfillmentSpec,
254
+ GroundednessInput,
255
+ GroundednessInstance,
256
+ GroundednessResult,
257
+ GroundednessSpec,
258
+ LLMBasedMetricSpec,
259
+ Metric,
260
+ MetricResult,
261
+ MetricxInput,
262
+ MetricxInstance,
263
+ MetricxResult,
264
+ MetricxSpec,
265
+ OutputConfig,
266
+ OutputInfo,
267
+ PairwiseMetricInput,
268
+ PairwiseMetricInstance,
269
+ PairwiseMetricResult,
270
+ PairwiseMetricSpec,
271
+ PairwiseQuestionAnsweringQualityInput,
272
+ PairwiseQuestionAnsweringQualityInstance,
273
+ PairwiseQuestionAnsweringQualityResult,
274
+ PairwiseQuestionAnsweringQualitySpec,
275
+ PairwiseSummarizationQualityInput,
276
+ PairwiseSummarizationQualityInstance,
277
+ PairwiseSummarizationQualityResult,
278
+ PairwiseSummarizationQualitySpec,
279
+ PointwiseMetricInput,
280
+ PointwiseMetricInstance,
281
+ PointwiseMetricResult,
282
+ PointwiseMetricSpec,
283
+ PredefinedMetricSpec,
284
+ QuestionAnsweringCorrectnessInput,
285
+ QuestionAnsweringCorrectnessInstance,
286
+ QuestionAnsweringCorrectnessResult,
287
+ QuestionAnsweringCorrectnessSpec,
288
+ QuestionAnsweringHelpfulnessInput,
289
+ QuestionAnsweringHelpfulnessInstance,
290
+ QuestionAnsweringHelpfulnessResult,
291
+ QuestionAnsweringHelpfulnessSpec,
292
+ QuestionAnsweringQualityInput,
293
+ QuestionAnsweringQualityInstance,
294
+ QuestionAnsweringQualityResult,
295
+ QuestionAnsweringQualitySpec,
296
+ QuestionAnsweringRelevanceInput,
297
+ QuestionAnsweringRelevanceInstance,
298
+ QuestionAnsweringRelevanceResult,
299
+ QuestionAnsweringRelevanceSpec,
300
+ RawOutput,
301
+ RougeInput,
302
+ RougeInstance,
303
+ RougeMetricValue,
304
+ RougeResults,
305
+ RougeSpec,
306
+ SafetyInput,
307
+ SafetyInstance,
308
+ SafetyResult,
309
+ SafetySpec,
310
+ SummarizationHelpfulnessInput,
311
+ SummarizationHelpfulnessInstance,
312
+ SummarizationHelpfulnessResult,
313
+ SummarizationHelpfulnessSpec,
314
+ SummarizationQualityInput,
315
+ SummarizationQualityInstance,
316
+ SummarizationQualityResult,
317
+ SummarizationQualitySpec,
318
+ SummarizationVerbosityInput,
319
+ SummarizationVerbosityInstance,
320
+ SummarizationVerbosityResult,
321
+ SummarizationVerbositySpec,
322
+ ToolCallValidInput,
323
+ ToolCallValidInstance,
324
+ ToolCallValidMetricValue,
325
+ ToolCallValidResults,
326
+ ToolCallValidSpec,
327
+ ToolNameMatchInput,
328
+ ToolNameMatchInstance,
329
+ ToolNameMatchMetricValue,
330
+ ToolNameMatchResults,
331
+ ToolNameMatchSpec,
332
+ ToolParameterKeyMatchInput,
333
+ ToolParameterKeyMatchInstance,
334
+ ToolParameterKeyMatchMetricValue,
335
+ ToolParameterKeyMatchResults,
336
+ ToolParameterKeyMatchSpec,
337
+ ToolParameterKVMatchInput,
338
+ ToolParameterKVMatchInstance,
339
+ ToolParameterKVMatchMetricValue,
340
+ ToolParameterKVMatchResults,
341
+ ToolParameterKVMatchSpec,
342
+ PairwiseChoice,
343
+ )
344
+ from .event import (
345
+ Event,
346
+ )
347
+ from .execution import (
348
+ Execution,
349
+ )
350
+ from .explanation import (
351
+ Attribution,
352
+ BlurBaselineConfig,
353
+ Examples,
354
+ ExamplesOverride,
355
+ ExamplesRestrictionsNamespace,
356
+ Explanation,
357
+ ExplanationMetadataOverride,
358
+ ExplanationParameters,
359
+ ExplanationSpec,
360
+ ExplanationSpecOverride,
361
+ FeatureNoiseSigma,
362
+ IntegratedGradientsAttribution,
363
+ ModelExplanation,
364
+ Neighbor,
365
+ Presets,
366
+ SampledShapleyAttribution,
367
+ SmoothGradConfig,
368
+ XraiAttribution,
369
+ )
370
+ from .explanation_metadata import (
371
+ ExplanationMetadata,
372
+ )
373
+ from .feature import (
374
+ Feature,
375
+ )
376
+ from .feature_group import (
377
+ FeatureGroup,
378
+ )
379
+ from .feature_monitoring_stats import (
380
+ FeatureStatsAnomaly,
381
+ )
382
+ from .feature_online_store import (
383
+ FeatureOnlineStore,
384
+ )
385
+ from .feature_online_store_admin_service import (
386
+ CreateFeatureOnlineStoreOperationMetadata,
387
+ CreateFeatureOnlineStoreRequest,
388
+ CreateFeatureViewOperationMetadata,
389
+ CreateFeatureViewRequest,
390
+ DeleteFeatureOnlineStoreRequest,
391
+ DeleteFeatureViewRequest,
392
+ GetFeatureOnlineStoreRequest,
393
+ GetFeatureViewRequest,
394
+ GetFeatureViewSyncRequest,
395
+ ListFeatureOnlineStoresRequest,
396
+ ListFeatureOnlineStoresResponse,
397
+ ListFeatureViewsRequest,
398
+ ListFeatureViewsResponse,
399
+ ListFeatureViewSyncsRequest,
400
+ ListFeatureViewSyncsResponse,
401
+ SyncFeatureViewRequest,
402
+ SyncFeatureViewResponse,
403
+ UpdateFeatureOnlineStoreOperationMetadata,
404
+ UpdateFeatureOnlineStoreRequest,
405
+ UpdateFeatureViewOperationMetadata,
406
+ UpdateFeatureViewRequest,
407
+ )
408
+ from .feature_online_store_service import (
409
+ FeatureViewDataKey,
410
+ FeatureViewDirectWriteRequest,
411
+ FeatureViewDirectWriteResponse,
412
+ FetchFeatureValuesRequest,
413
+ FetchFeatureValuesResponse,
414
+ GenerateFetchAccessTokenRequest,
415
+ GenerateFetchAccessTokenResponse,
416
+ NearestNeighborQuery,
417
+ NearestNeighbors,
418
+ SearchNearestEntitiesRequest,
419
+ SearchNearestEntitiesResponse,
420
+ FeatureViewDataFormat,
421
+ )
422
+ from .feature_registry_service import (
423
+ CreateFeatureGroupOperationMetadata,
424
+ CreateFeatureGroupRequest,
425
+ CreateRegistryFeatureOperationMetadata,
426
+ DeleteFeatureGroupRequest,
427
+ GetFeatureGroupRequest,
428
+ ListFeatureGroupsRequest,
429
+ ListFeatureGroupsResponse,
430
+ UpdateFeatureGroupOperationMetadata,
431
+ UpdateFeatureGroupRequest,
432
+ UpdateFeatureOperationMetadata,
433
+ )
434
+ from .feature_selector import (
435
+ FeatureSelector,
436
+ IdMatcher,
437
+ )
438
+ from .feature_view import (
439
+ FeatureView,
440
+ )
441
+ from .feature_view_sync import (
442
+ FeatureViewSync,
443
+ )
444
+ from .featurestore import (
445
+ Featurestore,
446
+ )
447
+ from .featurestore_monitoring import (
448
+ FeaturestoreMonitoringConfig,
449
+ )
450
+ from .featurestore_online_service import (
451
+ FeatureValue,
452
+ FeatureValueList,
453
+ ReadFeatureValuesRequest,
454
+ ReadFeatureValuesResponse,
455
+ StreamingReadFeatureValuesRequest,
456
+ StructFieldValue,
457
+ StructValue,
458
+ WriteFeatureValuesPayload,
459
+ WriteFeatureValuesRequest,
460
+ WriteFeatureValuesResponse,
461
+ )
462
+ from .featurestore_service import (
463
+ BatchCreateFeaturesOperationMetadata,
464
+ BatchCreateFeaturesRequest,
465
+ BatchCreateFeaturesResponse,
466
+ BatchReadFeatureValuesOperationMetadata,
467
+ BatchReadFeatureValuesRequest,
468
+ BatchReadFeatureValuesResponse,
469
+ CreateEntityTypeOperationMetadata,
470
+ CreateEntityTypeRequest,
471
+ CreateFeatureOperationMetadata,
472
+ CreateFeatureRequest,
473
+ CreateFeaturestoreOperationMetadata,
474
+ CreateFeaturestoreRequest,
475
+ DeleteEntityTypeRequest,
476
+ DeleteFeatureRequest,
477
+ DeleteFeaturestoreRequest,
478
+ DeleteFeatureValuesOperationMetadata,
479
+ DeleteFeatureValuesRequest,
480
+ DeleteFeatureValuesResponse,
481
+ DestinationFeatureSetting,
482
+ EntityIdSelector,
483
+ ExportFeatureValuesOperationMetadata,
484
+ ExportFeatureValuesRequest,
485
+ ExportFeatureValuesResponse,
486
+ FeatureValueDestination,
487
+ GetEntityTypeRequest,
488
+ GetFeatureRequest,
489
+ GetFeaturestoreRequest,
490
+ ImportFeatureValuesOperationMetadata,
491
+ ImportFeatureValuesRequest,
492
+ ImportFeatureValuesResponse,
493
+ ListEntityTypesRequest,
494
+ ListEntityTypesResponse,
495
+ ListFeaturesRequest,
496
+ ListFeaturesResponse,
497
+ ListFeaturestoresRequest,
498
+ ListFeaturestoresResponse,
499
+ SearchFeaturesRequest,
500
+ SearchFeaturesResponse,
501
+ UpdateEntityTypeRequest,
502
+ UpdateFeatureRequest,
503
+ UpdateFeaturestoreOperationMetadata,
504
+ UpdateFeaturestoreRequest,
505
+ )
506
+ from .gen_ai_cache_service import (
507
+ CreateCachedContentRequest,
508
+ DeleteCachedContentRequest,
509
+ GetCachedContentRequest,
510
+ ListCachedContentsRequest,
511
+ ListCachedContentsResponse,
512
+ UpdateCachedContentRequest,
513
+ )
514
+ from .genai_tuning_service import (
515
+ CancelTuningJobRequest,
516
+ CreateTuningJobRequest,
517
+ GetTuningJobRequest,
518
+ ListTuningJobsRequest,
519
+ ListTuningJobsResponse,
520
+ RebaseTunedModelOperationMetadata,
521
+ RebaseTunedModelRequest,
522
+ )
523
+ from .hyperparameter_tuning_job import (
524
+ HyperparameterTuningJob,
525
+ )
526
+ from .index import (
527
+ Index,
528
+ IndexDatapoint,
529
+ IndexStats,
530
+ )
531
+ from .index_endpoint import (
532
+ DeployedIndex,
533
+ DeployedIndexAuthConfig,
534
+ IndexEndpoint,
535
+ IndexPrivateEndpoints,
536
+ )
537
+ from .index_endpoint_service import (
538
+ CreateIndexEndpointOperationMetadata,
539
+ CreateIndexEndpointRequest,
540
+ DeleteIndexEndpointRequest,
541
+ DeployIndexOperationMetadata,
542
+ DeployIndexRequest,
543
+ DeployIndexResponse,
544
+ GetIndexEndpointRequest,
545
+ ListIndexEndpointsRequest,
546
+ ListIndexEndpointsResponse,
547
+ MutateDeployedIndexOperationMetadata,
548
+ MutateDeployedIndexRequest,
549
+ MutateDeployedIndexResponse,
550
+ UndeployIndexOperationMetadata,
551
+ UndeployIndexRequest,
552
+ UndeployIndexResponse,
553
+ UpdateIndexEndpointRequest,
554
+ )
555
+ from .index_service import (
556
+ CreateIndexOperationMetadata,
557
+ CreateIndexRequest,
558
+ DeleteIndexRequest,
559
+ GetIndexRequest,
560
+ ListIndexesRequest,
561
+ ListIndexesResponse,
562
+ NearestNeighborSearchOperationMetadata,
563
+ RemoveDatapointsRequest,
564
+ RemoveDatapointsResponse,
565
+ UpdateIndexOperationMetadata,
566
+ UpdateIndexRequest,
567
+ UpsertDatapointsRequest,
568
+ UpsertDatapointsResponse,
569
+ )
570
+ from .io import (
571
+ AvroSource,
572
+ BigQueryDestination,
573
+ BigQuerySource,
574
+ ContainerRegistryDestination,
575
+ CsvDestination,
576
+ CsvSource,
577
+ DirectUploadSource,
578
+ GcsDestination,
579
+ GcsSource,
580
+ GoogleDriveSource,
581
+ JiraSource,
582
+ SharePointSources,
583
+ SlackSource,
584
+ TFRecordDestination,
585
+ VertexMultimodalDatasetDestination,
586
+ VertexMultimodalDatasetSource,
587
+ )
588
+ from .job_service import (
589
+ CancelBatchPredictionJobRequest,
590
+ CancelCustomJobRequest,
591
+ CancelDataLabelingJobRequest,
592
+ CancelHyperparameterTuningJobRequest,
593
+ CancelNasJobRequest,
594
+ CreateBatchPredictionJobRequest,
595
+ CreateCustomJobRequest,
596
+ CreateDataLabelingJobRequest,
597
+ CreateHyperparameterTuningJobRequest,
598
+ CreateModelDeploymentMonitoringJobRequest,
599
+ CreateNasJobRequest,
600
+ DeleteBatchPredictionJobRequest,
601
+ DeleteCustomJobRequest,
602
+ DeleteDataLabelingJobRequest,
603
+ DeleteHyperparameterTuningJobRequest,
604
+ DeleteModelDeploymentMonitoringJobRequest,
605
+ DeleteNasJobRequest,
606
+ GetBatchPredictionJobRequest,
607
+ GetCustomJobRequest,
608
+ GetDataLabelingJobRequest,
609
+ GetHyperparameterTuningJobRequest,
610
+ GetModelDeploymentMonitoringJobRequest,
611
+ GetNasJobRequest,
612
+ GetNasTrialDetailRequest,
613
+ ListBatchPredictionJobsRequest,
614
+ ListBatchPredictionJobsResponse,
615
+ ListCustomJobsRequest,
616
+ ListCustomJobsResponse,
617
+ ListDataLabelingJobsRequest,
618
+ ListDataLabelingJobsResponse,
619
+ ListHyperparameterTuningJobsRequest,
620
+ ListHyperparameterTuningJobsResponse,
621
+ ListModelDeploymentMonitoringJobsRequest,
622
+ ListModelDeploymentMonitoringJobsResponse,
623
+ ListNasJobsRequest,
624
+ ListNasJobsResponse,
625
+ ListNasTrialDetailsRequest,
626
+ ListNasTrialDetailsResponse,
627
+ PauseModelDeploymentMonitoringJobRequest,
628
+ ResumeModelDeploymentMonitoringJobRequest,
629
+ SearchModelDeploymentMonitoringStatsAnomaliesRequest,
630
+ SearchModelDeploymentMonitoringStatsAnomaliesResponse,
631
+ UpdateModelDeploymentMonitoringJobOperationMetadata,
632
+ UpdateModelDeploymentMonitoringJobRequest,
633
+ )
634
+ from .job_state import (
635
+ JobState,
636
+ )
637
+ from .lineage_subgraph import (
638
+ LineageSubgraph,
639
+ )
640
+ from .llm_utility_service import (
641
+ ComputeTokensRequest,
642
+ ComputeTokensResponse,
643
+ TokensInfo,
644
+ )
645
+ from .machine_resources import (
646
+ AutomaticResources,
647
+ AutoscalingMetricSpec,
648
+ BatchDedicatedResources,
649
+ DedicatedResources,
650
+ DiskSpec,
651
+ LustreMount,
652
+ MachineSpec,
653
+ NfsMount,
654
+ PersistentDiskSpec,
655
+ ResourcesConsumed,
656
+ ShieldedVmConfig,
657
+ )
658
+ from .manual_batch_tuning_parameters import (
659
+ ManualBatchTuningParameters,
660
+ )
661
+ from .match_service import (
662
+ FindNeighborsRequest,
663
+ FindNeighborsResponse,
664
+ ReadIndexDatapointsRequest,
665
+ ReadIndexDatapointsResponse,
666
+ )
667
+ from .metadata_schema import (
668
+ MetadataSchema,
669
+ )
670
+ from .metadata_service import (
671
+ AddContextArtifactsAndExecutionsRequest,
672
+ AddContextArtifactsAndExecutionsResponse,
673
+ AddContextChildrenRequest,
674
+ AddContextChildrenResponse,
675
+ AddExecutionEventsRequest,
676
+ AddExecutionEventsResponse,
677
+ CreateArtifactRequest,
678
+ CreateContextRequest,
679
+ CreateExecutionRequest,
680
+ CreateMetadataSchemaRequest,
681
+ CreateMetadataStoreOperationMetadata,
682
+ CreateMetadataStoreRequest,
683
+ DeleteArtifactRequest,
684
+ DeleteContextRequest,
685
+ DeleteExecutionRequest,
686
+ DeleteMetadataStoreOperationMetadata,
687
+ DeleteMetadataStoreRequest,
688
+ GetArtifactRequest,
689
+ GetContextRequest,
690
+ GetExecutionRequest,
691
+ GetMetadataSchemaRequest,
692
+ GetMetadataStoreRequest,
693
+ ListArtifactsRequest,
694
+ ListArtifactsResponse,
695
+ ListContextsRequest,
696
+ ListContextsResponse,
697
+ ListExecutionsRequest,
698
+ ListExecutionsResponse,
699
+ ListMetadataSchemasRequest,
700
+ ListMetadataSchemasResponse,
701
+ ListMetadataStoresRequest,
702
+ ListMetadataStoresResponse,
703
+ PurgeArtifactsMetadata,
704
+ PurgeArtifactsRequest,
705
+ PurgeArtifactsResponse,
706
+ PurgeContextsMetadata,
707
+ PurgeContextsRequest,
708
+ PurgeContextsResponse,
709
+ PurgeExecutionsMetadata,
710
+ PurgeExecutionsRequest,
711
+ PurgeExecutionsResponse,
712
+ QueryArtifactLineageSubgraphRequest,
713
+ QueryContextLineageSubgraphRequest,
714
+ QueryExecutionInputsAndOutputsRequest,
715
+ RemoveContextChildrenRequest,
716
+ RemoveContextChildrenResponse,
717
+ UpdateArtifactRequest,
718
+ UpdateContextRequest,
719
+ UpdateExecutionRequest,
720
+ )
721
+ from .metadata_store import (
722
+ MetadataStore,
723
+ )
724
+ from .migratable_resource import (
725
+ MigratableResource,
726
+ )
727
+ from .migration_service import (
728
+ BatchMigrateResourcesOperationMetadata,
729
+ BatchMigrateResourcesRequest,
730
+ BatchMigrateResourcesResponse,
731
+ MigrateResourceRequest,
732
+ MigrateResourceResponse,
733
+ SearchMigratableResourcesRequest,
734
+ SearchMigratableResourcesResponse,
735
+ )
736
+ from .model import (
737
+ Checkpoint,
738
+ GenieSource,
739
+ LargeModelReference,
740
+ Model,
741
+ ModelContainerSpec,
742
+ ModelGardenSource,
743
+ ModelSourceInfo,
744
+ Port,
745
+ PredictSchemata,
746
+ Probe,
747
+ )
748
+ from .model_deployment_monitoring_job import (
749
+ ModelDeploymentMonitoringBigQueryTable,
750
+ ModelDeploymentMonitoringJob,
751
+ ModelDeploymentMonitoringObjectiveConfig,
752
+ ModelDeploymentMonitoringScheduleConfig,
753
+ ModelMonitoringStatsAnomalies,
754
+ ModelDeploymentMonitoringObjectiveType,
755
+ )
756
+ from .model_evaluation import (
757
+ ModelEvaluation,
758
+ )
759
+ from .model_evaluation_slice import (
760
+ ModelEvaluationSlice,
761
+ )
762
+ from .model_garden_service import (
763
+ DeployOperationMetadata,
764
+ DeployRequest,
765
+ DeployResponse,
766
+ GetPublisherModelRequest,
767
+ PublisherModelView,
768
+ )
769
+ from .model_monitoring import (
770
+ ModelMonitoringAlertConfig,
771
+ ModelMonitoringObjectiveConfig,
772
+ SamplingStrategy,
773
+ ThresholdConfig,
774
+ )
775
+ from .model_service import (
776
+ BatchImportEvaluatedAnnotationsRequest,
777
+ BatchImportEvaluatedAnnotationsResponse,
778
+ BatchImportModelEvaluationSlicesRequest,
779
+ BatchImportModelEvaluationSlicesResponse,
780
+ CopyModelOperationMetadata,
781
+ CopyModelRequest,
782
+ CopyModelResponse,
783
+ DeleteModelRequest,
784
+ DeleteModelVersionRequest,
785
+ ExportModelOperationMetadata,
786
+ ExportModelRequest,
787
+ ExportModelResponse,
788
+ GetModelEvaluationRequest,
789
+ GetModelEvaluationSliceRequest,
790
+ GetModelRequest,
791
+ ImportModelEvaluationRequest,
792
+ ListModelEvaluationSlicesRequest,
793
+ ListModelEvaluationSlicesResponse,
794
+ ListModelEvaluationsRequest,
795
+ ListModelEvaluationsResponse,
796
+ ListModelsRequest,
797
+ ListModelsResponse,
798
+ ListModelVersionCheckpointsRequest,
799
+ ListModelVersionCheckpointsResponse,
800
+ ListModelVersionsRequest,
801
+ ListModelVersionsResponse,
802
+ MergeVersionAliasesRequest,
803
+ ModelVersionCheckpoint,
804
+ UpdateExplanationDatasetOperationMetadata,
805
+ UpdateExplanationDatasetRequest,
806
+ UpdateExplanationDatasetResponse,
807
+ UpdateModelRequest,
808
+ UploadModelOperationMetadata,
809
+ UploadModelRequest,
810
+ UploadModelResponse,
811
+ )
812
+ from .nas_job import (
813
+ NasJob,
814
+ NasJobOutput,
815
+ NasJobSpec,
816
+ NasTrial,
817
+ NasTrialDetail,
818
+ )
819
+ from .network_spec import (
820
+ NetworkSpec,
821
+ )
822
+ from .notebook_euc_config import (
823
+ NotebookEucConfig,
824
+ )
825
+ from .notebook_execution_job import (
826
+ NotebookExecutionJob,
827
+ )
828
+ from .notebook_idle_shutdown_config import (
829
+ NotebookIdleShutdownConfig,
830
+ )
831
+ from .notebook_runtime import (
832
+ NotebookRuntime,
833
+ NotebookRuntimeTemplate,
834
+ NotebookRuntimeType,
835
+ )
836
+ from .notebook_runtime_template_ref import (
837
+ NotebookRuntimeTemplateRef,
838
+ )
839
+ from .notebook_service import (
840
+ AssignNotebookRuntimeOperationMetadata,
841
+ AssignNotebookRuntimeRequest,
842
+ CreateNotebookExecutionJobOperationMetadata,
843
+ CreateNotebookExecutionJobRequest,
844
+ CreateNotebookRuntimeTemplateOperationMetadata,
845
+ CreateNotebookRuntimeTemplateRequest,
846
+ DeleteNotebookExecutionJobRequest,
847
+ DeleteNotebookRuntimeRequest,
848
+ DeleteNotebookRuntimeTemplateRequest,
849
+ GetNotebookExecutionJobRequest,
850
+ GetNotebookRuntimeRequest,
851
+ GetNotebookRuntimeTemplateRequest,
852
+ ListNotebookExecutionJobsRequest,
853
+ ListNotebookExecutionJobsResponse,
854
+ ListNotebookRuntimesRequest,
855
+ ListNotebookRuntimesResponse,
856
+ ListNotebookRuntimeTemplatesRequest,
857
+ ListNotebookRuntimeTemplatesResponse,
858
+ StartNotebookRuntimeOperationMetadata,
859
+ StartNotebookRuntimeRequest,
860
+ StartNotebookRuntimeResponse,
861
+ StopNotebookRuntimeOperationMetadata,
862
+ StopNotebookRuntimeRequest,
863
+ StopNotebookRuntimeResponse,
864
+ UpdateNotebookRuntimeTemplateRequest,
865
+ UpgradeNotebookRuntimeOperationMetadata,
866
+ UpgradeNotebookRuntimeRequest,
867
+ UpgradeNotebookRuntimeResponse,
868
+ NotebookExecutionJobView,
869
+ )
870
+ from .notebook_software_config import (
871
+ ColabImage,
872
+ NotebookSoftwareConfig,
873
+ PostStartupScriptConfig,
874
+ )
875
+ from .openapi import (
876
+ Schema,
877
+ Type,
878
+ )
879
+ from .operation import (
880
+ DeleteOperationMetadata,
881
+ GenericOperationMetadata,
882
+ )
883
+ from .persistent_resource import (
884
+ PersistentResource,
885
+ RayLogsSpec,
886
+ RayMetricSpec,
887
+ RaySpec,
888
+ ResourcePool,
889
+ ResourceRuntime,
890
+ ResourceRuntimeSpec,
891
+ ServiceAccountSpec,
892
+ )
893
+ from .persistent_resource_service import (
894
+ CreatePersistentResourceOperationMetadata,
895
+ CreatePersistentResourceRequest,
896
+ DeletePersistentResourceRequest,
897
+ GetPersistentResourceRequest,
898
+ ListPersistentResourcesRequest,
899
+ ListPersistentResourcesResponse,
900
+ RebootPersistentResourceOperationMetadata,
901
+ RebootPersistentResourceRequest,
902
+ UpdatePersistentResourceOperationMetadata,
903
+ UpdatePersistentResourceRequest,
904
+ )
905
+ from .pipeline_failure_policy import (
906
+ PipelineFailurePolicy,
907
+ )
908
+ from .pipeline_job import (
909
+ PipelineJob,
910
+ PipelineJobDetail,
911
+ PipelineTaskDetail,
912
+ PipelineTaskExecutorDetail,
913
+ PipelineTemplateMetadata,
914
+ )
915
+ from .pipeline_service import (
916
+ BatchCancelPipelineJobsOperationMetadata,
917
+ BatchCancelPipelineJobsRequest,
918
+ BatchCancelPipelineJobsResponse,
919
+ BatchDeletePipelineJobsRequest,
920
+ BatchDeletePipelineJobsResponse,
921
+ CancelPipelineJobRequest,
922
+ CancelTrainingPipelineRequest,
923
+ CreatePipelineJobRequest,
924
+ CreateTrainingPipelineRequest,
925
+ DeletePipelineJobRequest,
926
+ DeleteTrainingPipelineRequest,
927
+ GetPipelineJobRequest,
928
+ GetTrainingPipelineRequest,
929
+ ListPipelineJobsRequest,
930
+ ListPipelineJobsResponse,
931
+ ListTrainingPipelinesRequest,
932
+ ListTrainingPipelinesResponse,
933
+ )
934
+ from .pipeline_state import (
935
+ PipelineState,
936
+ )
937
+ from .prediction_service import (
938
+ CountTokensRequest,
939
+ CountTokensResponse,
940
+ DirectPredictRequest,
941
+ DirectPredictResponse,
942
+ DirectRawPredictRequest,
943
+ DirectRawPredictResponse,
944
+ EmbedContentRequest,
945
+ EmbedContentResponse,
946
+ ExplainRequest,
947
+ ExplainResponse,
948
+ GenerateContentRequest,
949
+ GenerateContentResponse,
950
+ PredictRequest,
951
+ PredictResponse,
952
+ RawPredictRequest,
953
+ StreamDirectPredictRequest,
954
+ StreamDirectPredictResponse,
955
+ StreamDirectRawPredictRequest,
956
+ StreamDirectRawPredictResponse,
957
+ StreamingPredictRequest,
958
+ StreamingPredictResponse,
959
+ StreamingRawPredictRequest,
960
+ StreamingRawPredictResponse,
961
+ StreamRawPredictRequest,
962
+ )
963
+ from .publisher_model import (
964
+ PublisherModel,
965
+ )
966
+ from .reasoning_engine import (
967
+ ReasoningEngine,
968
+ ReasoningEngineSpec,
969
+ )
970
+ from .reasoning_engine_execution_service import (
971
+ AsyncQueryReasoningEngineOperationMetadata,
972
+ AsyncQueryReasoningEngineRequest,
973
+ AsyncQueryReasoningEngineResponse,
974
+ QueryReasoningEngineRequest,
975
+ QueryReasoningEngineResponse,
976
+ StreamQueryReasoningEngineRequest,
977
+ )
978
+ from .reasoning_engine_service import (
979
+ CreateReasoningEngineOperationMetadata,
980
+ CreateReasoningEngineRequest,
981
+ DeleteReasoningEngineRequest,
982
+ GetReasoningEngineRequest,
983
+ ListReasoningEnginesRequest,
984
+ ListReasoningEnginesResponse,
985
+ UpdateReasoningEngineOperationMetadata,
986
+ UpdateReasoningEngineRequest,
987
+ )
988
+ from .reservation_affinity import (
989
+ ReservationAffinity,
990
+ )
991
+ from .saved_query import (
992
+ SavedQuery,
993
+ )
994
+ from .schedule import (
995
+ Schedule,
996
+ )
997
+ from .schedule_service import (
998
+ CreateScheduleRequest,
999
+ DeleteScheduleRequest,
1000
+ GetScheduleRequest,
1001
+ ListSchedulesRequest,
1002
+ ListSchedulesResponse,
1003
+ PauseScheduleRequest,
1004
+ ResumeScheduleRequest,
1005
+ UpdateScheduleRequest,
1006
+ )
1007
+ from .service_networking import (
1008
+ DnsPeeringConfig,
1009
+ PrivateServiceConnectConfig,
1010
+ PscAutomatedEndpoints,
1011
+ PSCAutomationConfig,
1012
+ PscInterfaceConfig,
1013
+ PSCAutomationState,
1014
+ )
1015
+ from .session import (
1016
+ EventActions,
1017
+ EventMetadata,
1018
+ Session,
1019
+ SessionEvent,
1020
+ Transcription,
1021
+ )
1022
+ from .session_service import (
1023
+ AppendEventRequest,
1024
+ AppendEventResponse,
1025
+ CreateSessionOperationMetadata,
1026
+ CreateSessionRequest,
1027
+ DeleteSessionRequest,
1028
+ GetSessionRequest,
1029
+ ListEventsRequest,
1030
+ ListEventsResponse,
1031
+ ListSessionsRequest,
1032
+ ListSessionsResponse,
1033
+ UpdateSessionRequest,
1034
+ )
1035
+ from .specialist_pool import (
1036
+ SpecialistPool,
1037
+ )
1038
+ from .specialist_pool_service import (
1039
+ CreateSpecialistPoolOperationMetadata,
1040
+ CreateSpecialistPoolRequest,
1041
+ DeleteSpecialistPoolRequest,
1042
+ GetSpecialistPoolRequest,
1043
+ ListSpecialistPoolsRequest,
1044
+ ListSpecialistPoolsResponse,
1045
+ UpdateSpecialistPoolOperationMetadata,
1046
+ UpdateSpecialistPoolRequest,
1047
+ )
1048
+ from .study import (
1049
+ Measurement,
1050
+ Study,
1051
+ StudySpec,
1052
+ StudyTimeConstraint,
1053
+ Trial,
1054
+ TrialContext,
1055
+ )
1056
+ from .tensorboard import (
1057
+ Tensorboard,
1058
+ )
1059
+ from .tensorboard_data import (
1060
+ Scalar,
1061
+ TensorboardBlob,
1062
+ TensorboardBlobSequence,
1063
+ TensorboardTensor,
1064
+ TimeSeriesData,
1065
+ TimeSeriesDataPoint,
1066
+ )
1067
+ from .tensorboard_experiment import (
1068
+ TensorboardExperiment,
1069
+ )
1070
+ from .tensorboard_run import (
1071
+ TensorboardRun,
1072
+ )
1073
+ from .tensorboard_service import (
1074
+ BatchCreateTensorboardRunsRequest,
1075
+ BatchCreateTensorboardRunsResponse,
1076
+ BatchCreateTensorboardTimeSeriesRequest,
1077
+ BatchCreateTensorboardTimeSeriesResponse,
1078
+ BatchReadTensorboardTimeSeriesDataRequest,
1079
+ BatchReadTensorboardTimeSeriesDataResponse,
1080
+ CreateTensorboardExperimentRequest,
1081
+ CreateTensorboardOperationMetadata,
1082
+ CreateTensorboardRequest,
1083
+ CreateTensorboardRunRequest,
1084
+ CreateTensorboardTimeSeriesRequest,
1085
+ DeleteTensorboardExperimentRequest,
1086
+ DeleteTensorboardRequest,
1087
+ DeleteTensorboardRunRequest,
1088
+ DeleteTensorboardTimeSeriesRequest,
1089
+ ExportTensorboardTimeSeriesDataRequest,
1090
+ ExportTensorboardTimeSeriesDataResponse,
1091
+ GetTensorboardExperimentRequest,
1092
+ GetTensorboardRequest,
1093
+ GetTensorboardRunRequest,
1094
+ GetTensorboardTimeSeriesRequest,
1095
+ ListTensorboardExperimentsRequest,
1096
+ ListTensorboardExperimentsResponse,
1097
+ ListTensorboardRunsRequest,
1098
+ ListTensorboardRunsResponse,
1099
+ ListTensorboardsRequest,
1100
+ ListTensorboardsResponse,
1101
+ ListTensorboardTimeSeriesRequest,
1102
+ ListTensorboardTimeSeriesResponse,
1103
+ ReadTensorboardBlobDataRequest,
1104
+ ReadTensorboardBlobDataResponse,
1105
+ ReadTensorboardSizeRequest,
1106
+ ReadTensorboardSizeResponse,
1107
+ ReadTensorboardTimeSeriesDataRequest,
1108
+ ReadTensorboardTimeSeriesDataResponse,
1109
+ ReadTensorboardUsageRequest,
1110
+ ReadTensorboardUsageResponse,
1111
+ UpdateTensorboardExperimentRequest,
1112
+ UpdateTensorboardOperationMetadata,
1113
+ UpdateTensorboardRequest,
1114
+ UpdateTensorboardRunRequest,
1115
+ UpdateTensorboardTimeSeriesRequest,
1116
+ WriteTensorboardExperimentDataRequest,
1117
+ WriteTensorboardExperimentDataResponse,
1118
+ WriteTensorboardRunDataRequest,
1119
+ WriteTensorboardRunDataResponse,
1120
+ )
1121
+ from .tensorboard_time_series import (
1122
+ TensorboardTimeSeries,
1123
+ )
1124
+ from .tool import (
1125
+ CodeExecutionResult,
1126
+ DynamicRetrievalConfig,
1127
+ EnterpriseWebSearch,
1128
+ ExecutableCode,
1129
+ FunctionCall,
1130
+ FunctionCallingConfig,
1131
+ FunctionDeclaration,
1132
+ FunctionResponse,
1133
+ FunctionResponseBlob,
1134
+ FunctionResponseFileData,
1135
+ FunctionResponsePart,
1136
+ GoogleMaps,
1137
+ GoogleSearchRetrieval,
1138
+ PartialArg,
1139
+ RagRetrievalConfig,
1140
+ Retrieval,
1141
+ RetrievalConfig,
1142
+ Tool,
1143
+ ToolConfig,
1144
+ UrlContext,
1145
+ VertexAISearch,
1146
+ VertexRagStore,
1147
+ )
1148
+ from .training_pipeline import (
1149
+ FilterSplit,
1150
+ FractionSplit,
1151
+ InputDataConfig,
1152
+ PredefinedSplit,
1153
+ StratifiedSplit,
1154
+ TimestampSplit,
1155
+ TrainingPipeline,
1156
+ )
1157
+ from .tuning_job import (
1158
+ EvaluateDatasetRun,
1159
+ EvaluationConfig,
1160
+ PreTunedModel,
1161
+ SupervisedHyperParameters,
1162
+ SupervisedTuningDatasetDistribution,
1163
+ SupervisedTuningDataStats,
1164
+ SupervisedTuningSpec,
1165
+ TunedModel,
1166
+ TunedModelCheckpoint,
1167
+ TunedModelRef,
1168
+ TuningDataStats,
1169
+ TuningJob,
1170
+ )
1171
+ from .types import (
1172
+ BoolArray,
1173
+ DoubleArray,
1174
+ Int64Array,
1175
+ StringArray,
1176
+ Tensor,
1177
+ )
1178
+ from .unmanaged_container_model import (
1179
+ UnmanagedContainerModel,
1180
+ )
1181
+ from .usage_metadata import (
1182
+ UsageMetadata,
1183
+ )
1184
+ from .user_action_reference import (
1185
+ UserActionReference,
1186
+ )
1187
+ from .value import (
1188
+ Value,
1189
+ )
1190
+ from .vertex_rag_data import (
1191
+ CorpusStatus,
1192
+ FileStatus,
1193
+ ImportRagFilesConfig,
1194
+ RagChunk,
1195
+ RagCorpus,
1196
+ RagEmbeddingModelConfig,
1197
+ RagEngineConfig,
1198
+ RagFile,
1199
+ RagFileChunkingConfig,
1200
+ RagFileParsingConfig,
1201
+ RagFileTransformationConfig,
1202
+ RagManagedDbConfig,
1203
+ RagVectorDbConfig,
1204
+ UploadRagFileConfig,
1205
+ VertexAiSearchConfig,
1206
+ )
1207
+ from .vertex_rag_data_service import (
1208
+ CreateRagCorpusOperationMetadata,
1209
+ CreateRagCorpusRequest,
1210
+ DeleteRagCorpusRequest,
1211
+ DeleteRagFileRequest,
1212
+ GetRagCorpusRequest,
1213
+ GetRagEngineConfigRequest,
1214
+ GetRagFileRequest,
1215
+ ImportRagFilesOperationMetadata,
1216
+ ImportRagFilesRequest,
1217
+ ImportRagFilesResponse,
1218
+ ListRagCorporaRequest,
1219
+ ListRagCorporaResponse,
1220
+ ListRagFilesRequest,
1221
+ ListRagFilesResponse,
1222
+ UpdateRagCorpusOperationMetadata,
1223
+ UpdateRagCorpusRequest,
1224
+ UpdateRagEngineConfigOperationMetadata,
1225
+ UpdateRagEngineConfigRequest,
1226
+ UploadRagFileRequest,
1227
+ UploadRagFileResponse,
1228
+ )
1229
+ from .vertex_rag_service import (
1230
+ AskContextsRequest,
1231
+ AskContextsResponse,
1232
+ AsyncRetrieveContextsOperationMetadata,
1233
+ AsyncRetrieveContextsRequest,
1234
+ AsyncRetrieveContextsResponse,
1235
+ AugmentPromptRequest,
1236
+ AugmentPromptResponse,
1237
+ Claim,
1238
+ CorroborateContentRequest,
1239
+ CorroborateContentResponse,
1240
+ Fact,
1241
+ RagContexts,
1242
+ RagQuery,
1243
+ RetrieveContextsRequest,
1244
+ RetrieveContextsResponse,
1245
+ )
1246
+ from .vizier_service import (
1247
+ AddTrialMeasurementRequest,
1248
+ CheckTrialEarlyStoppingStateMetatdata,
1249
+ CheckTrialEarlyStoppingStateRequest,
1250
+ CheckTrialEarlyStoppingStateResponse,
1251
+ CompleteTrialRequest,
1252
+ CreateStudyRequest,
1253
+ CreateTrialRequest,
1254
+ DeleteStudyRequest,
1255
+ DeleteTrialRequest,
1256
+ GetStudyRequest,
1257
+ GetTrialRequest,
1258
+ ListOptimalTrialsRequest,
1259
+ ListOptimalTrialsResponse,
1260
+ ListStudiesRequest,
1261
+ ListStudiesResponse,
1262
+ ListTrialsRequest,
1263
+ ListTrialsResponse,
1264
+ LookupStudyRequest,
1265
+ StopTrialRequest,
1266
+ SuggestTrialsMetadata,
1267
+ SuggestTrialsRequest,
1268
+ SuggestTrialsResponse,
1269
+ )
1270
+
1271
+ __all__ = (
1272
+ "AcceleratorType",
1273
+ "Annotation",
1274
+ "AnnotationSpec",
1275
+ "ApiAuth",
1276
+ "Artifact",
1277
+ "BatchPredictionJob",
1278
+ "CachedContent",
1279
+ "CompletionStats",
1280
+ "Blob",
1281
+ "Candidate",
1282
+ "Citation",
1283
+ "CitationMetadata",
1284
+ "Content",
1285
+ "FileData",
1286
+ "GenerationConfig",
1287
+ "GroundingChunk",
1288
+ "GroundingMetadata",
1289
+ "GroundingSupport",
1290
+ "ImageConfig",
1291
+ "LogprobsResult",
1292
+ "ModalityTokenCount",
1293
+ "ModelArmorConfig",
1294
+ "MultiSpeakerVoiceConfig",
1295
+ "Part",
1296
+ "PrebuiltVoiceConfig",
1297
+ "ReplicatedVoiceConfig",
1298
+ "RetrievalMetadata",
1299
+ "SafetyRating",
1300
+ "SafetySetting",
1301
+ "SearchEntryPoint",
1302
+ "Segment",
1303
+ "SpeakerVoiceConfig",
1304
+ "SpeechConfig",
1305
+ "UrlContextMetadata",
1306
+ "UrlMetadata",
1307
+ "VideoMetadata",
1308
+ "VoiceConfig",
1309
+ "HarmCategory",
1310
+ "Modality",
1311
+ "Context",
1312
+ "ContainerSpec",
1313
+ "CustomJob",
1314
+ "CustomJobSpec",
1315
+ "PythonPackageSpec",
1316
+ "Scheduling",
1317
+ "WorkerPoolSpec",
1318
+ "GenerateSyntheticDataRequest",
1319
+ "GenerateSyntheticDataResponse",
1320
+ "OutputFieldSpec",
1321
+ "SyntheticExample",
1322
+ "SyntheticField",
1323
+ "TaskDescriptionStrategy",
1324
+ "DataItem",
1325
+ "ActiveLearningConfig",
1326
+ "DataLabelingJob",
1327
+ "SampleConfig",
1328
+ "TrainingConfig",
1329
+ "Dataset",
1330
+ "ExportDataConfig",
1331
+ "ExportFilterSplit",
1332
+ "ExportFractionSplit",
1333
+ "ImportDataConfig",
1334
+ "CreateDatasetOperationMetadata",
1335
+ "CreateDatasetRequest",
1336
+ "CreateDatasetVersionOperationMetadata",
1337
+ "CreateDatasetVersionRequest",
1338
+ "DataItemView",
1339
+ "DeleteDatasetRequest",
1340
+ "DeleteDatasetVersionRequest",
1341
+ "DeleteSavedQueryRequest",
1342
+ "ExportDataOperationMetadata",
1343
+ "ExportDataRequest",
1344
+ "ExportDataResponse",
1345
+ "GetAnnotationSpecRequest",
1346
+ "GetDatasetRequest",
1347
+ "GetDatasetVersionRequest",
1348
+ "ImportDataOperationMetadata",
1349
+ "ImportDataRequest",
1350
+ "ImportDataResponse",
1351
+ "ListAnnotationsRequest",
1352
+ "ListAnnotationsResponse",
1353
+ "ListDataItemsRequest",
1354
+ "ListDataItemsResponse",
1355
+ "ListDatasetsRequest",
1356
+ "ListDatasetsResponse",
1357
+ "ListDatasetVersionsRequest",
1358
+ "ListDatasetVersionsResponse",
1359
+ "ListSavedQueriesRequest",
1360
+ "ListSavedQueriesResponse",
1361
+ "RestoreDatasetVersionOperationMetadata",
1362
+ "RestoreDatasetVersionRequest",
1363
+ "SearchDataItemsRequest",
1364
+ "SearchDataItemsResponse",
1365
+ "UpdateDatasetRequest",
1366
+ "UpdateDatasetVersionRequest",
1367
+ "DatasetVersion",
1368
+ "DeployedIndexRef",
1369
+ "DeployedModelRef",
1370
+ "DeploymentResourcePool",
1371
+ "CreateDeploymentResourcePoolOperationMetadata",
1372
+ "CreateDeploymentResourcePoolRequest",
1373
+ "DeleteDeploymentResourcePoolRequest",
1374
+ "GetDeploymentResourcePoolRequest",
1375
+ "ListDeploymentResourcePoolsRequest",
1376
+ "ListDeploymentResourcePoolsResponse",
1377
+ "QueryDeployedModelsRequest",
1378
+ "QueryDeployedModelsResponse",
1379
+ "UpdateDeploymentResourcePoolOperationMetadata",
1380
+ "UpdateDeploymentResourcePoolRequest",
1381
+ "DeploymentStage",
1382
+ "EncryptionSpec",
1383
+ "ClientConnectionConfig",
1384
+ "DeployedModel",
1385
+ "Endpoint",
1386
+ "FasterDeploymentConfig",
1387
+ "GenAiAdvancedFeaturesConfig",
1388
+ "PredictRequestResponseLoggingConfig",
1389
+ "PrivateEndpoints",
1390
+ "SpeculativeDecodingSpec",
1391
+ "CreateEndpointOperationMetadata",
1392
+ "CreateEndpointRequest",
1393
+ "DeleteEndpointRequest",
1394
+ "DeployModelOperationMetadata",
1395
+ "DeployModelRequest",
1396
+ "DeployModelResponse",
1397
+ "GetEndpointRequest",
1398
+ "ListEndpointsRequest",
1399
+ "ListEndpointsResponse",
1400
+ "MutateDeployedModelOperationMetadata",
1401
+ "MutateDeployedModelRequest",
1402
+ "MutateDeployedModelResponse",
1403
+ "UndeployModelOperationMetadata",
1404
+ "UndeployModelRequest",
1405
+ "UndeployModelResponse",
1406
+ "UpdateEndpointLongRunningRequest",
1407
+ "UpdateEndpointOperationMetadata",
1408
+ "UpdateEndpointRequest",
1409
+ "EntityType",
1410
+ "EnvVar",
1411
+ "SecretEnvVar",
1412
+ "SecretRef",
1413
+ "ErrorAnalysisAnnotation",
1414
+ "EvaluatedAnnotation",
1415
+ "EvaluatedAnnotationExplanation",
1416
+ "AggregationOutput",
1417
+ "AggregationResult",
1418
+ "AutoraterConfig",
1419
+ "BleuInput",
1420
+ "BleuInstance",
1421
+ "BleuMetricValue",
1422
+ "BleuResults",
1423
+ "BleuSpec",
1424
+ "CoherenceInput",
1425
+ "CoherenceInstance",
1426
+ "CoherenceResult",
1427
+ "CoherenceSpec",
1428
+ "CometInput",
1429
+ "CometInstance",
1430
+ "CometResult",
1431
+ "CometSpec",
1432
+ "ComputationBasedMetricSpec",
1433
+ "ContentMap",
1434
+ "CustomOutput",
1435
+ "CustomOutputFormatConfig",
1436
+ "EvaluateDatasetResponse",
1437
+ "EvaluateInstancesRequest",
1438
+ "EvaluateInstancesResponse",
1439
+ "EvaluationDataset",
1440
+ "ExactMatchInput",
1441
+ "ExactMatchInstance",
1442
+ "ExactMatchMetricValue",
1443
+ "ExactMatchResults",
1444
+ "ExactMatchSpec",
1445
+ "FluencyInput",
1446
+ "FluencyInstance",
1447
+ "FluencyResult",
1448
+ "FluencySpec",
1449
+ "FulfillmentInput",
1450
+ "FulfillmentInstance",
1451
+ "FulfillmentResult",
1452
+ "FulfillmentSpec",
1453
+ "GroundednessInput",
1454
+ "GroundednessInstance",
1455
+ "GroundednessResult",
1456
+ "GroundednessSpec",
1457
+ "LLMBasedMetricSpec",
1458
+ "Metric",
1459
+ "MetricResult",
1460
+ "MetricxInput",
1461
+ "MetricxInstance",
1462
+ "MetricxResult",
1463
+ "MetricxSpec",
1464
+ "OutputConfig",
1465
+ "OutputInfo",
1466
+ "PairwiseMetricInput",
1467
+ "PairwiseMetricInstance",
1468
+ "PairwiseMetricResult",
1469
+ "PairwiseMetricSpec",
1470
+ "PairwiseQuestionAnsweringQualityInput",
1471
+ "PairwiseQuestionAnsweringQualityInstance",
1472
+ "PairwiseQuestionAnsweringQualityResult",
1473
+ "PairwiseQuestionAnsweringQualitySpec",
1474
+ "PairwiseSummarizationQualityInput",
1475
+ "PairwiseSummarizationQualityInstance",
1476
+ "PairwiseSummarizationQualityResult",
1477
+ "PairwiseSummarizationQualitySpec",
1478
+ "PointwiseMetricInput",
1479
+ "PointwiseMetricInstance",
1480
+ "PointwiseMetricResult",
1481
+ "PointwiseMetricSpec",
1482
+ "PredefinedMetricSpec",
1483
+ "QuestionAnsweringCorrectnessInput",
1484
+ "QuestionAnsweringCorrectnessInstance",
1485
+ "QuestionAnsweringCorrectnessResult",
1486
+ "QuestionAnsweringCorrectnessSpec",
1487
+ "QuestionAnsweringHelpfulnessInput",
1488
+ "QuestionAnsweringHelpfulnessInstance",
1489
+ "QuestionAnsweringHelpfulnessResult",
1490
+ "QuestionAnsweringHelpfulnessSpec",
1491
+ "QuestionAnsweringQualityInput",
1492
+ "QuestionAnsweringQualityInstance",
1493
+ "QuestionAnsweringQualityResult",
1494
+ "QuestionAnsweringQualitySpec",
1495
+ "QuestionAnsweringRelevanceInput",
1496
+ "QuestionAnsweringRelevanceInstance",
1497
+ "QuestionAnsweringRelevanceResult",
1498
+ "QuestionAnsweringRelevanceSpec",
1499
+ "RawOutput",
1500
+ "RougeInput",
1501
+ "RougeInstance",
1502
+ "RougeMetricValue",
1503
+ "RougeResults",
1504
+ "RougeSpec",
1505
+ "SafetyInput",
1506
+ "SafetyInstance",
1507
+ "SafetyResult",
1508
+ "SafetySpec",
1509
+ "SummarizationHelpfulnessInput",
1510
+ "SummarizationHelpfulnessInstance",
1511
+ "SummarizationHelpfulnessResult",
1512
+ "SummarizationHelpfulnessSpec",
1513
+ "SummarizationQualityInput",
1514
+ "SummarizationQualityInstance",
1515
+ "SummarizationQualityResult",
1516
+ "SummarizationQualitySpec",
1517
+ "SummarizationVerbosityInput",
1518
+ "SummarizationVerbosityInstance",
1519
+ "SummarizationVerbosityResult",
1520
+ "SummarizationVerbositySpec",
1521
+ "ToolCallValidInput",
1522
+ "ToolCallValidInstance",
1523
+ "ToolCallValidMetricValue",
1524
+ "ToolCallValidResults",
1525
+ "ToolCallValidSpec",
1526
+ "ToolNameMatchInput",
1527
+ "ToolNameMatchInstance",
1528
+ "ToolNameMatchMetricValue",
1529
+ "ToolNameMatchResults",
1530
+ "ToolNameMatchSpec",
1531
+ "ToolParameterKeyMatchInput",
1532
+ "ToolParameterKeyMatchInstance",
1533
+ "ToolParameterKeyMatchMetricValue",
1534
+ "ToolParameterKeyMatchResults",
1535
+ "ToolParameterKeyMatchSpec",
1536
+ "ToolParameterKVMatchInput",
1537
+ "ToolParameterKVMatchInstance",
1538
+ "ToolParameterKVMatchMetricValue",
1539
+ "ToolParameterKVMatchResults",
1540
+ "ToolParameterKVMatchSpec",
1541
+ "PairwiseChoice",
1542
+ "Event",
1543
+ "Execution",
1544
+ "Attribution",
1545
+ "BlurBaselineConfig",
1546
+ "Examples",
1547
+ "ExamplesOverride",
1548
+ "ExamplesRestrictionsNamespace",
1549
+ "Explanation",
1550
+ "ExplanationMetadataOverride",
1551
+ "ExplanationParameters",
1552
+ "ExplanationSpec",
1553
+ "ExplanationSpecOverride",
1554
+ "FeatureNoiseSigma",
1555
+ "IntegratedGradientsAttribution",
1556
+ "ModelExplanation",
1557
+ "Neighbor",
1558
+ "Presets",
1559
+ "SampledShapleyAttribution",
1560
+ "SmoothGradConfig",
1561
+ "XraiAttribution",
1562
+ "ExplanationMetadata",
1563
+ "Feature",
1564
+ "FeatureGroup",
1565
+ "FeatureStatsAnomaly",
1566
+ "FeatureOnlineStore",
1567
+ "CreateFeatureOnlineStoreOperationMetadata",
1568
+ "CreateFeatureOnlineStoreRequest",
1569
+ "CreateFeatureViewOperationMetadata",
1570
+ "CreateFeatureViewRequest",
1571
+ "DeleteFeatureOnlineStoreRequest",
1572
+ "DeleteFeatureViewRequest",
1573
+ "GetFeatureOnlineStoreRequest",
1574
+ "GetFeatureViewRequest",
1575
+ "GetFeatureViewSyncRequest",
1576
+ "ListFeatureOnlineStoresRequest",
1577
+ "ListFeatureOnlineStoresResponse",
1578
+ "ListFeatureViewsRequest",
1579
+ "ListFeatureViewsResponse",
1580
+ "ListFeatureViewSyncsRequest",
1581
+ "ListFeatureViewSyncsResponse",
1582
+ "SyncFeatureViewRequest",
1583
+ "SyncFeatureViewResponse",
1584
+ "UpdateFeatureOnlineStoreOperationMetadata",
1585
+ "UpdateFeatureOnlineStoreRequest",
1586
+ "UpdateFeatureViewOperationMetadata",
1587
+ "UpdateFeatureViewRequest",
1588
+ "FeatureViewDataKey",
1589
+ "FeatureViewDirectWriteRequest",
1590
+ "FeatureViewDirectWriteResponse",
1591
+ "FetchFeatureValuesRequest",
1592
+ "FetchFeatureValuesResponse",
1593
+ "GenerateFetchAccessTokenRequest",
1594
+ "GenerateFetchAccessTokenResponse",
1595
+ "NearestNeighborQuery",
1596
+ "NearestNeighbors",
1597
+ "SearchNearestEntitiesRequest",
1598
+ "SearchNearestEntitiesResponse",
1599
+ "FeatureViewDataFormat",
1600
+ "CreateFeatureGroupOperationMetadata",
1601
+ "CreateFeatureGroupRequest",
1602
+ "CreateRegistryFeatureOperationMetadata",
1603
+ "DeleteFeatureGroupRequest",
1604
+ "GetFeatureGroupRequest",
1605
+ "ListFeatureGroupsRequest",
1606
+ "ListFeatureGroupsResponse",
1607
+ "UpdateFeatureGroupOperationMetadata",
1608
+ "UpdateFeatureGroupRequest",
1609
+ "UpdateFeatureOperationMetadata",
1610
+ "FeatureSelector",
1611
+ "IdMatcher",
1612
+ "FeatureView",
1613
+ "FeatureViewSync",
1614
+ "Featurestore",
1615
+ "FeaturestoreMonitoringConfig",
1616
+ "FeatureValue",
1617
+ "FeatureValueList",
1618
+ "ReadFeatureValuesRequest",
1619
+ "ReadFeatureValuesResponse",
1620
+ "StreamingReadFeatureValuesRequest",
1621
+ "StructFieldValue",
1622
+ "StructValue",
1623
+ "WriteFeatureValuesPayload",
1624
+ "WriteFeatureValuesRequest",
1625
+ "WriteFeatureValuesResponse",
1626
+ "BatchCreateFeaturesOperationMetadata",
1627
+ "BatchCreateFeaturesRequest",
1628
+ "BatchCreateFeaturesResponse",
1629
+ "BatchReadFeatureValuesOperationMetadata",
1630
+ "BatchReadFeatureValuesRequest",
1631
+ "BatchReadFeatureValuesResponse",
1632
+ "CreateEntityTypeOperationMetadata",
1633
+ "CreateEntityTypeRequest",
1634
+ "CreateFeatureOperationMetadata",
1635
+ "CreateFeatureRequest",
1636
+ "CreateFeaturestoreOperationMetadata",
1637
+ "CreateFeaturestoreRequest",
1638
+ "DeleteEntityTypeRequest",
1639
+ "DeleteFeatureRequest",
1640
+ "DeleteFeaturestoreRequest",
1641
+ "DeleteFeatureValuesOperationMetadata",
1642
+ "DeleteFeatureValuesRequest",
1643
+ "DeleteFeatureValuesResponse",
1644
+ "DestinationFeatureSetting",
1645
+ "EntityIdSelector",
1646
+ "ExportFeatureValuesOperationMetadata",
1647
+ "ExportFeatureValuesRequest",
1648
+ "ExportFeatureValuesResponse",
1649
+ "FeatureValueDestination",
1650
+ "GetEntityTypeRequest",
1651
+ "GetFeatureRequest",
1652
+ "GetFeaturestoreRequest",
1653
+ "ImportFeatureValuesOperationMetadata",
1654
+ "ImportFeatureValuesRequest",
1655
+ "ImportFeatureValuesResponse",
1656
+ "ListEntityTypesRequest",
1657
+ "ListEntityTypesResponse",
1658
+ "ListFeaturesRequest",
1659
+ "ListFeaturesResponse",
1660
+ "ListFeaturestoresRequest",
1661
+ "ListFeaturestoresResponse",
1662
+ "SearchFeaturesRequest",
1663
+ "SearchFeaturesResponse",
1664
+ "UpdateEntityTypeRequest",
1665
+ "UpdateFeatureRequest",
1666
+ "UpdateFeaturestoreOperationMetadata",
1667
+ "UpdateFeaturestoreRequest",
1668
+ "CreateCachedContentRequest",
1669
+ "DeleteCachedContentRequest",
1670
+ "GetCachedContentRequest",
1671
+ "ListCachedContentsRequest",
1672
+ "ListCachedContentsResponse",
1673
+ "UpdateCachedContentRequest",
1674
+ "CancelTuningJobRequest",
1675
+ "CreateTuningJobRequest",
1676
+ "GetTuningJobRequest",
1677
+ "ListTuningJobsRequest",
1678
+ "ListTuningJobsResponse",
1679
+ "RebaseTunedModelOperationMetadata",
1680
+ "RebaseTunedModelRequest",
1681
+ "HyperparameterTuningJob",
1682
+ "Index",
1683
+ "IndexDatapoint",
1684
+ "IndexStats",
1685
+ "DeployedIndex",
1686
+ "DeployedIndexAuthConfig",
1687
+ "IndexEndpoint",
1688
+ "IndexPrivateEndpoints",
1689
+ "CreateIndexEndpointOperationMetadata",
1690
+ "CreateIndexEndpointRequest",
1691
+ "DeleteIndexEndpointRequest",
1692
+ "DeployIndexOperationMetadata",
1693
+ "DeployIndexRequest",
1694
+ "DeployIndexResponse",
1695
+ "GetIndexEndpointRequest",
1696
+ "ListIndexEndpointsRequest",
1697
+ "ListIndexEndpointsResponse",
1698
+ "MutateDeployedIndexOperationMetadata",
1699
+ "MutateDeployedIndexRequest",
1700
+ "MutateDeployedIndexResponse",
1701
+ "UndeployIndexOperationMetadata",
1702
+ "UndeployIndexRequest",
1703
+ "UndeployIndexResponse",
1704
+ "UpdateIndexEndpointRequest",
1705
+ "CreateIndexOperationMetadata",
1706
+ "CreateIndexRequest",
1707
+ "DeleteIndexRequest",
1708
+ "GetIndexRequest",
1709
+ "ListIndexesRequest",
1710
+ "ListIndexesResponse",
1711
+ "NearestNeighborSearchOperationMetadata",
1712
+ "RemoveDatapointsRequest",
1713
+ "RemoveDatapointsResponse",
1714
+ "UpdateIndexOperationMetadata",
1715
+ "UpdateIndexRequest",
1716
+ "UpsertDatapointsRequest",
1717
+ "UpsertDatapointsResponse",
1718
+ "AvroSource",
1719
+ "BigQueryDestination",
1720
+ "BigQuerySource",
1721
+ "ContainerRegistryDestination",
1722
+ "CsvDestination",
1723
+ "CsvSource",
1724
+ "DirectUploadSource",
1725
+ "GcsDestination",
1726
+ "GcsSource",
1727
+ "GoogleDriveSource",
1728
+ "JiraSource",
1729
+ "SharePointSources",
1730
+ "SlackSource",
1731
+ "TFRecordDestination",
1732
+ "VertexMultimodalDatasetDestination",
1733
+ "VertexMultimodalDatasetSource",
1734
+ "CancelBatchPredictionJobRequest",
1735
+ "CancelCustomJobRequest",
1736
+ "CancelDataLabelingJobRequest",
1737
+ "CancelHyperparameterTuningJobRequest",
1738
+ "CancelNasJobRequest",
1739
+ "CreateBatchPredictionJobRequest",
1740
+ "CreateCustomJobRequest",
1741
+ "CreateDataLabelingJobRequest",
1742
+ "CreateHyperparameterTuningJobRequest",
1743
+ "CreateModelDeploymentMonitoringJobRequest",
1744
+ "CreateNasJobRequest",
1745
+ "DeleteBatchPredictionJobRequest",
1746
+ "DeleteCustomJobRequest",
1747
+ "DeleteDataLabelingJobRequest",
1748
+ "DeleteHyperparameterTuningJobRequest",
1749
+ "DeleteModelDeploymentMonitoringJobRequest",
1750
+ "DeleteNasJobRequest",
1751
+ "GetBatchPredictionJobRequest",
1752
+ "GetCustomJobRequest",
1753
+ "GetDataLabelingJobRequest",
1754
+ "GetHyperparameterTuningJobRequest",
1755
+ "GetModelDeploymentMonitoringJobRequest",
1756
+ "GetNasJobRequest",
1757
+ "GetNasTrialDetailRequest",
1758
+ "ListBatchPredictionJobsRequest",
1759
+ "ListBatchPredictionJobsResponse",
1760
+ "ListCustomJobsRequest",
1761
+ "ListCustomJobsResponse",
1762
+ "ListDataLabelingJobsRequest",
1763
+ "ListDataLabelingJobsResponse",
1764
+ "ListHyperparameterTuningJobsRequest",
1765
+ "ListHyperparameterTuningJobsResponse",
1766
+ "ListModelDeploymentMonitoringJobsRequest",
1767
+ "ListModelDeploymentMonitoringJobsResponse",
1768
+ "ListNasJobsRequest",
1769
+ "ListNasJobsResponse",
1770
+ "ListNasTrialDetailsRequest",
1771
+ "ListNasTrialDetailsResponse",
1772
+ "PauseModelDeploymentMonitoringJobRequest",
1773
+ "ResumeModelDeploymentMonitoringJobRequest",
1774
+ "SearchModelDeploymentMonitoringStatsAnomaliesRequest",
1775
+ "SearchModelDeploymentMonitoringStatsAnomaliesResponse",
1776
+ "UpdateModelDeploymentMonitoringJobOperationMetadata",
1777
+ "UpdateModelDeploymentMonitoringJobRequest",
1778
+ "JobState",
1779
+ "LineageSubgraph",
1780
+ "ComputeTokensRequest",
1781
+ "ComputeTokensResponse",
1782
+ "TokensInfo",
1783
+ "AutomaticResources",
1784
+ "AutoscalingMetricSpec",
1785
+ "BatchDedicatedResources",
1786
+ "DedicatedResources",
1787
+ "DiskSpec",
1788
+ "LustreMount",
1789
+ "MachineSpec",
1790
+ "NfsMount",
1791
+ "PersistentDiskSpec",
1792
+ "ResourcesConsumed",
1793
+ "ShieldedVmConfig",
1794
+ "ManualBatchTuningParameters",
1795
+ "FindNeighborsRequest",
1796
+ "FindNeighborsResponse",
1797
+ "ReadIndexDatapointsRequest",
1798
+ "ReadIndexDatapointsResponse",
1799
+ "MetadataSchema",
1800
+ "AddContextArtifactsAndExecutionsRequest",
1801
+ "AddContextArtifactsAndExecutionsResponse",
1802
+ "AddContextChildrenRequest",
1803
+ "AddContextChildrenResponse",
1804
+ "AddExecutionEventsRequest",
1805
+ "AddExecutionEventsResponse",
1806
+ "CreateArtifactRequest",
1807
+ "CreateContextRequest",
1808
+ "CreateExecutionRequest",
1809
+ "CreateMetadataSchemaRequest",
1810
+ "CreateMetadataStoreOperationMetadata",
1811
+ "CreateMetadataStoreRequest",
1812
+ "DeleteArtifactRequest",
1813
+ "DeleteContextRequest",
1814
+ "DeleteExecutionRequest",
1815
+ "DeleteMetadataStoreOperationMetadata",
1816
+ "DeleteMetadataStoreRequest",
1817
+ "GetArtifactRequest",
1818
+ "GetContextRequest",
1819
+ "GetExecutionRequest",
1820
+ "GetMetadataSchemaRequest",
1821
+ "GetMetadataStoreRequest",
1822
+ "ListArtifactsRequest",
1823
+ "ListArtifactsResponse",
1824
+ "ListContextsRequest",
1825
+ "ListContextsResponse",
1826
+ "ListExecutionsRequest",
1827
+ "ListExecutionsResponse",
1828
+ "ListMetadataSchemasRequest",
1829
+ "ListMetadataSchemasResponse",
1830
+ "ListMetadataStoresRequest",
1831
+ "ListMetadataStoresResponse",
1832
+ "PurgeArtifactsMetadata",
1833
+ "PurgeArtifactsRequest",
1834
+ "PurgeArtifactsResponse",
1835
+ "PurgeContextsMetadata",
1836
+ "PurgeContextsRequest",
1837
+ "PurgeContextsResponse",
1838
+ "PurgeExecutionsMetadata",
1839
+ "PurgeExecutionsRequest",
1840
+ "PurgeExecutionsResponse",
1841
+ "QueryArtifactLineageSubgraphRequest",
1842
+ "QueryContextLineageSubgraphRequest",
1843
+ "QueryExecutionInputsAndOutputsRequest",
1844
+ "RemoveContextChildrenRequest",
1845
+ "RemoveContextChildrenResponse",
1846
+ "UpdateArtifactRequest",
1847
+ "UpdateContextRequest",
1848
+ "UpdateExecutionRequest",
1849
+ "MetadataStore",
1850
+ "MigratableResource",
1851
+ "BatchMigrateResourcesOperationMetadata",
1852
+ "BatchMigrateResourcesRequest",
1853
+ "BatchMigrateResourcesResponse",
1854
+ "MigrateResourceRequest",
1855
+ "MigrateResourceResponse",
1856
+ "SearchMigratableResourcesRequest",
1857
+ "SearchMigratableResourcesResponse",
1858
+ "Checkpoint",
1859
+ "GenieSource",
1860
+ "LargeModelReference",
1861
+ "Model",
1862
+ "ModelContainerSpec",
1863
+ "ModelGardenSource",
1864
+ "ModelSourceInfo",
1865
+ "Port",
1866
+ "PredictSchemata",
1867
+ "Probe",
1868
+ "ModelDeploymentMonitoringBigQueryTable",
1869
+ "ModelDeploymentMonitoringJob",
1870
+ "ModelDeploymentMonitoringObjectiveConfig",
1871
+ "ModelDeploymentMonitoringScheduleConfig",
1872
+ "ModelMonitoringStatsAnomalies",
1873
+ "ModelDeploymentMonitoringObjectiveType",
1874
+ "ModelEvaluation",
1875
+ "ModelEvaluationSlice",
1876
+ "DeployOperationMetadata",
1877
+ "DeployRequest",
1878
+ "DeployResponse",
1879
+ "GetPublisherModelRequest",
1880
+ "PublisherModelView",
1881
+ "ModelMonitoringAlertConfig",
1882
+ "ModelMonitoringObjectiveConfig",
1883
+ "SamplingStrategy",
1884
+ "ThresholdConfig",
1885
+ "BatchImportEvaluatedAnnotationsRequest",
1886
+ "BatchImportEvaluatedAnnotationsResponse",
1887
+ "BatchImportModelEvaluationSlicesRequest",
1888
+ "BatchImportModelEvaluationSlicesResponse",
1889
+ "CopyModelOperationMetadata",
1890
+ "CopyModelRequest",
1891
+ "CopyModelResponse",
1892
+ "DeleteModelRequest",
1893
+ "DeleteModelVersionRequest",
1894
+ "ExportModelOperationMetadata",
1895
+ "ExportModelRequest",
1896
+ "ExportModelResponse",
1897
+ "GetModelEvaluationRequest",
1898
+ "GetModelEvaluationSliceRequest",
1899
+ "GetModelRequest",
1900
+ "ImportModelEvaluationRequest",
1901
+ "ListModelEvaluationSlicesRequest",
1902
+ "ListModelEvaluationSlicesResponse",
1903
+ "ListModelEvaluationsRequest",
1904
+ "ListModelEvaluationsResponse",
1905
+ "ListModelsRequest",
1906
+ "ListModelsResponse",
1907
+ "ListModelVersionCheckpointsRequest",
1908
+ "ListModelVersionCheckpointsResponse",
1909
+ "ListModelVersionsRequest",
1910
+ "ListModelVersionsResponse",
1911
+ "MergeVersionAliasesRequest",
1912
+ "ModelVersionCheckpoint",
1913
+ "UpdateExplanationDatasetOperationMetadata",
1914
+ "UpdateExplanationDatasetRequest",
1915
+ "UpdateExplanationDatasetResponse",
1916
+ "UpdateModelRequest",
1917
+ "UploadModelOperationMetadata",
1918
+ "UploadModelRequest",
1919
+ "UploadModelResponse",
1920
+ "NasJob",
1921
+ "NasJobOutput",
1922
+ "NasJobSpec",
1923
+ "NasTrial",
1924
+ "NasTrialDetail",
1925
+ "NetworkSpec",
1926
+ "NotebookEucConfig",
1927
+ "NotebookExecutionJob",
1928
+ "NotebookIdleShutdownConfig",
1929
+ "NotebookRuntime",
1930
+ "NotebookRuntimeTemplate",
1931
+ "NotebookRuntimeType",
1932
+ "NotebookRuntimeTemplateRef",
1933
+ "AssignNotebookRuntimeOperationMetadata",
1934
+ "AssignNotebookRuntimeRequest",
1935
+ "CreateNotebookExecutionJobOperationMetadata",
1936
+ "CreateNotebookExecutionJobRequest",
1937
+ "CreateNotebookRuntimeTemplateOperationMetadata",
1938
+ "CreateNotebookRuntimeTemplateRequest",
1939
+ "DeleteNotebookExecutionJobRequest",
1940
+ "DeleteNotebookRuntimeRequest",
1941
+ "DeleteNotebookRuntimeTemplateRequest",
1942
+ "GetNotebookExecutionJobRequest",
1943
+ "GetNotebookRuntimeRequest",
1944
+ "GetNotebookRuntimeTemplateRequest",
1945
+ "ListNotebookExecutionJobsRequest",
1946
+ "ListNotebookExecutionJobsResponse",
1947
+ "ListNotebookRuntimesRequest",
1948
+ "ListNotebookRuntimesResponse",
1949
+ "ListNotebookRuntimeTemplatesRequest",
1950
+ "ListNotebookRuntimeTemplatesResponse",
1951
+ "StartNotebookRuntimeOperationMetadata",
1952
+ "StartNotebookRuntimeRequest",
1953
+ "StartNotebookRuntimeResponse",
1954
+ "StopNotebookRuntimeOperationMetadata",
1955
+ "StopNotebookRuntimeRequest",
1956
+ "StopNotebookRuntimeResponse",
1957
+ "UpdateNotebookRuntimeTemplateRequest",
1958
+ "UpgradeNotebookRuntimeOperationMetadata",
1959
+ "UpgradeNotebookRuntimeRequest",
1960
+ "UpgradeNotebookRuntimeResponse",
1961
+ "NotebookExecutionJobView",
1962
+ "ColabImage",
1963
+ "NotebookSoftwareConfig",
1964
+ "PostStartupScriptConfig",
1965
+ "Schema",
1966
+ "Type",
1967
+ "DeleteOperationMetadata",
1968
+ "GenericOperationMetadata",
1969
+ "PersistentResource",
1970
+ "RayLogsSpec",
1971
+ "RayMetricSpec",
1972
+ "RaySpec",
1973
+ "ResourcePool",
1974
+ "ResourceRuntime",
1975
+ "ResourceRuntimeSpec",
1976
+ "ServiceAccountSpec",
1977
+ "CreatePersistentResourceOperationMetadata",
1978
+ "CreatePersistentResourceRequest",
1979
+ "DeletePersistentResourceRequest",
1980
+ "GetPersistentResourceRequest",
1981
+ "ListPersistentResourcesRequest",
1982
+ "ListPersistentResourcesResponse",
1983
+ "RebootPersistentResourceOperationMetadata",
1984
+ "RebootPersistentResourceRequest",
1985
+ "UpdatePersistentResourceOperationMetadata",
1986
+ "UpdatePersistentResourceRequest",
1987
+ "PipelineFailurePolicy",
1988
+ "PipelineJob",
1989
+ "PipelineJobDetail",
1990
+ "PipelineTaskDetail",
1991
+ "PipelineTaskExecutorDetail",
1992
+ "PipelineTemplateMetadata",
1993
+ "BatchCancelPipelineJobsOperationMetadata",
1994
+ "BatchCancelPipelineJobsRequest",
1995
+ "BatchCancelPipelineJobsResponse",
1996
+ "BatchDeletePipelineJobsRequest",
1997
+ "BatchDeletePipelineJobsResponse",
1998
+ "CancelPipelineJobRequest",
1999
+ "CancelTrainingPipelineRequest",
2000
+ "CreatePipelineJobRequest",
2001
+ "CreateTrainingPipelineRequest",
2002
+ "DeletePipelineJobRequest",
2003
+ "DeleteTrainingPipelineRequest",
2004
+ "GetPipelineJobRequest",
2005
+ "GetTrainingPipelineRequest",
2006
+ "ListPipelineJobsRequest",
2007
+ "ListPipelineJobsResponse",
2008
+ "ListTrainingPipelinesRequest",
2009
+ "ListTrainingPipelinesResponse",
2010
+ "PipelineState",
2011
+ "CountTokensRequest",
2012
+ "CountTokensResponse",
2013
+ "DirectPredictRequest",
2014
+ "DirectPredictResponse",
2015
+ "DirectRawPredictRequest",
2016
+ "DirectRawPredictResponse",
2017
+ "EmbedContentRequest",
2018
+ "EmbedContentResponse",
2019
+ "ExplainRequest",
2020
+ "ExplainResponse",
2021
+ "GenerateContentRequest",
2022
+ "GenerateContentResponse",
2023
+ "PredictRequest",
2024
+ "PredictResponse",
2025
+ "RawPredictRequest",
2026
+ "StreamDirectPredictRequest",
2027
+ "StreamDirectPredictResponse",
2028
+ "StreamDirectRawPredictRequest",
2029
+ "StreamDirectRawPredictResponse",
2030
+ "StreamingPredictRequest",
2031
+ "StreamingPredictResponse",
2032
+ "StreamingRawPredictRequest",
2033
+ "StreamingRawPredictResponse",
2034
+ "StreamRawPredictRequest",
2035
+ "PublisherModel",
2036
+ "ReasoningEngine",
2037
+ "ReasoningEngineSpec",
2038
+ "AsyncQueryReasoningEngineOperationMetadata",
2039
+ "AsyncQueryReasoningEngineRequest",
2040
+ "AsyncQueryReasoningEngineResponse",
2041
+ "QueryReasoningEngineRequest",
2042
+ "QueryReasoningEngineResponse",
2043
+ "StreamQueryReasoningEngineRequest",
2044
+ "CreateReasoningEngineOperationMetadata",
2045
+ "CreateReasoningEngineRequest",
2046
+ "DeleteReasoningEngineRequest",
2047
+ "GetReasoningEngineRequest",
2048
+ "ListReasoningEnginesRequest",
2049
+ "ListReasoningEnginesResponse",
2050
+ "UpdateReasoningEngineOperationMetadata",
2051
+ "UpdateReasoningEngineRequest",
2052
+ "ReservationAffinity",
2053
+ "SavedQuery",
2054
+ "Schedule",
2055
+ "CreateScheduleRequest",
2056
+ "DeleteScheduleRequest",
2057
+ "GetScheduleRequest",
2058
+ "ListSchedulesRequest",
2059
+ "ListSchedulesResponse",
2060
+ "PauseScheduleRequest",
2061
+ "ResumeScheduleRequest",
2062
+ "UpdateScheduleRequest",
2063
+ "DnsPeeringConfig",
2064
+ "PrivateServiceConnectConfig",
2065
+ "PscAutomatedEndpoints",
2066
+ "PSCAutomationConfig",
2067
+ "PscInterfaceConfig",
2068
+ "PSCAutomationState",
2069
+ "EventActions",
2070
+ "EventMetadata",
2071
+ "Session",
2072
+ "SessionEvent",
2073
+ "Transcription",
2074
+ "AppendEventRequest",
2075
+ "AppendEventResponse",
2076
+ "CreateSessionOperationMetadata",
2077
+ "CreateSessionRequest",
2078
+ "DeleteSessionRequest",
2079
+ "GetSessionRequest",
2080
+ "ListEventsRequest",
2081
+ "ListEventsResponse",
2082
+ "ListSessionsRequest",
2083
+ "ListSessionsResponse",
2084
+ "UpdateSessionRequest",
2085
+ "SpecialistPool",
2086
+ "CreateSpecialistPoolOperationMetadata",
2087
+ "CreateSpecialistPoolRequest",
2088
+ "DeleteSpecialistPoolRequest",
2089
+ "GetSpecialistPoolRequest",
2090
+ "ListSpecialistPoolsRequest",
2091
+ "ListSpecialistPoolsResponse",
2092
+ "UpdateSpecialistPoolOperationMetadata",
2093
+ "UpdateSpecialistPoolRequest",
2094
+ "Measurement",
2095
+ "Study",
2096
+ "StudySpec",
2097
+ "StudyTimeConstraint",
2098
+ "Trial",
2099
+ "TrialContext",
2100
+ "Tensorboard",
2101
+ "Scalar",
2102
+ "TensorboardBlob",
2103
+ "TensorboardBlobSequence",
2104
+ "TensorboardTensor",
2105
+ "TimeSeriesData",
2106
+ "TimeSeriesDataPoint",
2107
+ "TensorboardExperiment",
2108
+ "TensorboardRun",
2109
+ "BatchCreateTensorboardRunsRequest",
2110
+ "BatchCreateTensorboardRunsResponse",
2111
+ "BatchCreateTensorboardTimeSeriesRequest",
2112
+ "BatchCreateTensorboardTimeSeriesResponse",
2113
+ "BatchReadTensorboardTimeSeriesDataRequest",
2114
+ "BatchReadTensorboardTimeSeriesDataResponse",
2115
+ "CreateTensorboardExperimentRequest",
2116
+ "CreateTensorboardOperationMetadata",
2117
+ "CreateTensorboardRequest",
2118
+ "CreateTensorboardRunRequest",
2119
+ "CreateTensorboardTimeSeriesRequest",
2120
+ "DeleteTensorboardExperimentRequest",
2121
+ "DeleteTensorboardRequest",
2122
+ "DeleteTensorboardRunRequest",
2123
+ "DeleteTensorboardTimeSeriesRequest",
2124
+ "ExportTensorboardTimeSeriesDataRequest",
2125
+ "ExportTensorboardTimeSeriesDataResponse",
2126
+ "GetTensorboardExperimentRequest",
2127
+ "GetTensorboardRequest",
2128
+ "GetTensorboardRunRequest",
2129
+ "GetTensorboardTimeSeriesRequest",
2130
+ "ListTensorboardExperimentsRequest",
2131
+ "ListTensorboardExperimentsResponse",
2132
+ "ListTensorboardRunsRequest",
2133
+ "ListTensorboardRunsResponse",
2134
+ "ListTensorboardsRequest",
2135
+ "ListTensorboardsResponse",
2136
+ "ListTensorboardTimeSeriesRequest",
2137
+ "ListTensorboardTimeSeriesResponse",
2138
+ "ReadTensorboardBlobDataRequest",
2139
+ "ReadTensorboardBlobDataResponse",
2140
+ "ReadTensorboardSizeRequest",
2141
+ "ReadTensorboardSizeResponse",
2142
+ "ReadTensorboardTimeSeriesDataRequest",
2143
+ "ReadTensorboardTimeSeriesDataResponse",
2144
+ "ReadTensorboardUsageRequest",
2145
+ "ReadTensorboardUsageResponse",
2146
+ "UpdateTensorboardExperimentRequest",
2147
+ "UpdateTensorboardOperationMetadata",
2148
+ "UpdateTensorboardRequest",
2149
+ "UpdateTensorboardRunRequest",
2150
+ "UpdateTensorboardTimeSeriesRequest",
2151
+ "WriteTensorboardExperimentDataRequest",
2152
+ "WriteTensorboardExperimentDataResponse",
2153
+ "WriteTensorboardRunDataRequest",
2154
+ "WriteTensorboardRunDataResponse",
2155
+ "TensorboardTimeSeries",
2156
+ "CodeExecutionResult",
2157
+ "DynamicRetrievalConfig",
2158
+ "EnterpriseWebSearch",
2159
+ "ExecutableCode",
2160
+ "FunctionCall",
2161
+ "FunctionCallingConfig",
2162
+ "FunctionDeclaration",
2163
+ "FunctionResponse",
2164
+ "FunctionResponseBlob",
2165
+ "FunctionResponseFileData",
2166
+ "FunctionResponsePart",
2167
+ "GoogleMaps",
2168
+ "GoogleSearchRetrieval",
2169
+ "PartialArg",
2170
+ "RagRetrievalConfig",
2171
+ "Retrieval",
2172
+ "RetrievalConfig",
2173
+ "Tool",
2174
+ "ToolConfig",
2175
+ "UrlContext",
2176
+ "VertexAISearch",
2177
+ "VertexRagStore",
2178
+ "FilterSplit",
2179
+ "FractionSplit",
2180
+ "InputDataConfig",
2181
+ "PredefinedSplit",
2182
+ "StratifiedSplit",
2183
+ "TimestampSplit",
2184
+ "TrainingPipeline",
2185
+ "EvaluateDatasetRun",
2186
+ "EvaluationConfig",
2187
+ "PreTunedModel",
2188
+ "SupervisedHyperParameters",
2189
+ "SupervisedTuningDatasetDistribution",
2190
+ "SupervisedTuningDataStats",
2191
+ "SupervisedTuningSpec",
2192
+ "TunedModel",
2193
+ "TunedModelCheckpoint",
2194
+ "TunedModelRef",
2195
+ "TuningDataStats",
2196
+ "TuningJob",
2197
+ "BoolArray",
2198
+ "DoubleArray",
2199
+ "Int64Array",
2200
+ "StringArray",
2201
+ "Tensor",
2202
+ "UnmanagedContainerModel",
2203
+ "UsageMetadata",
2204
+ "UserActionReference",
2205
+ "Value",
2206
+ "CorpusStatus",
2207
+ "FileStatus",
2208
+ "ImportRagFilesConfig",
2209
+ "RagChunk",
2210
+ "RagCorpus",
2211
+ "RagEmbeddingModelConfig",
2212
+ "RagEngineConfig",
2213
+ "RagFile",
2214
+ "RagFileChunkingConfig",
2215
+ "RagFileParsingConfig",
2216
+ "RagFileTransformationConfig",
2217
+ "RagManagedDbConfig",
2218
+ "RagVectorDbConfig",
2219
+ "UploadRagFileConfig",
2220
+ "VertexAiSearchConfig",
2221
+ "CreateRagCorpusOperationMetadata",
2222
+ "CreateRagCorpusRequest",
2223
+ "DeleteRagCorpusRequest",
2224
+ "DeleteRagFileRequest",
2225
+ "GetRagCorpusRequest",
2226
+ "GetRagEngineConfigRequest",
2227
+ "GetRagFileRequest",
2228
+ "ImportRagFilesOperationMetadata",
2229
+ "ImportRagFilesRequest",
2230
+ "ImportRagFilesResponse",
2231
+ "ListRagCorporaRequest",
2232
+ "ListRagCorporaResponse",
2233
+ "ListRagFilesRequest",
2234
+ "ListRagFilesResponse",
2235
+ "UpdateRagCorpusOperationMetadata",
2236
+ "UpdateRagCorpusRequest",
2237
+ "UpdateRagEngineConfigOperationMetadata",
2238
+ "UpdateRagEngineConfigRequest",
2239
+ "UploadRagFileRequest",
2240
+ "UploadRagFileResponse",
2241
+ "AskContextsRequest",
2242
+ "AskContextsResponse",
2243
+ "AsyncRetrieveContextsOperationMetadata",
2244
+ "AsyncRetrieveContextsRequest",
2245
+ "AsyncRetrieveContextsResponse",
2246
+ "AugmentPromptRequest",
2247
+ "AugmentPromptResponse",
2248
+ "Claim",
2249
+ "CorroborateContentRequest",
2250
+ "CorroborateContentResponse",
2251
+ "Fact",
2252
+ "RagContexts",
2253
+ "RagQuery",
2254
+ "RetrieveContextsRequest",
2255
+ "RetrieveContextsResponse",
2256
+ "AddTrialMeasurementRequest",
2257
+ "CheckTrialEarlyStoppingStateMetatdata",
2258
+ "CheckTrialEarlyStoppingStateRequest",
2259
+ "CheckTrialEarlyStoppingStateResponse",
2260
+ "CompleteTrialRequest",
2261
+ "CreateStudyRequest",
2262
+ "CreateTrialRequest",
2263
+ "DeleteStudyRequest",
2264
+ "DeleteTrialRequest",
2265
+ "GetStudyRequest",
2266
+ "GetTrialRequest",
2267
+ "ListOptimalTrialsRequest",
2268
+ "ListOptimalTrialsResponse",
2269
+ "ListStudiesRequest",
2270
+ "ListStudiesResponse",
2271
+ "ListTrialsRequest",
2272
+ "ListTrialsResponse",
2273
+ "LookupStudyRequest",
2274
+ "StopTrialRequest",
2275
+ "SuggestTrialsMetadata",
2276
+ "SuggestTrialsRequest",
2277
+ "SuggestTrialsResponse",
2278
+ )
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/accelerator_type.py ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+
23
+ __protobuf__ = proto.module(
24
+ package="google.cloud.aiplatform.v1",
25
+ manifest={
26
+ "AcceleratorType",
27
+ },
28
+ )
29
+
30
+
31
+ class AcceleratorType(proto.Enum):
32
+ r"""Represents a hardware accelerator type.
33
+
34
+ Values:
35
+ ACCELERATOR_TYPE_UNSPECIFIED (0):
36
+ Unspecified accelerator type, which means no
37
+ accelerator.
38
+ NVIDIA_TESLA_K80 (1):
39
+ Deprecated: Nvidia Tesla K80 GPU has reached
40
+ end of support, see
41
+ https://cloud.google.com/compute/docs/eol/k80-eol.
42
+ NVIDIA_TESLA_P100 (2):
43
+ Nvidia Tesla P100 GPU.
44
+ NVIDIA_TESLA_V100 (3):
45
+ Nvidia Tesla V100 GPU.
46
+ NVIDIA_TESLA_P4 (4):
47
+ Nvidia Tesla P4 GPU.
48
+ NVIDIA_TESLA_T4 (5):
49
+ Nvidia Tesla T4 GPU.
50
+ NVIDIA_TESLA_A100 (8):
51
+ Nvidia Tesla A100 GPU.
52
+ NVIDIA_A100_80GB (9):
53
+ Nvidia A100 80GB GPU.
54
+ NVIDIA_L4 (11):
55
+ Nvidia L4 GPU.
56
+ NVIDIA_H100_80GB (13):
57
+ Nvidia H100 80Gb GPU.
58
+ NVIDIA_H100_MEGA_80GB (14):
59
+ Nvidia H100 Mega 80Gb GPU.
60
+ NVIDIA_H200_141GB (15):
61
+ Nvidia H200 141Gb GPU.
62
+ NVIDIA_B200 (16):
63
+ Nvidia B200 GPU.
64
+ NVIDIA_GB200 (17):
65
+ Nvidia GB200 GPU.
66
+ NVIDIA_RTX_PRO_6000 (18):
67
+ Nvidia RTX Pro 6000 GPU.
68
+ TPU_V2 (6):
69
+ TPU v2.
70
+ TPU_V3 (7):
71
+ TPU v3.
72
+ TPU_V4_POD (10):
73
+ TPU v4.
74
+ TPU_V5_LITEPOD (12):
75
+ TPU v5.
76
+ """
77
+
78
+ ACCELERATOR_TYPE_UNSPECIFIED = 0
79
+ NVIDIA_TESLA_K80 = 1
80
+ NVIDIA_TESLA_P100 = 2
81
+ NVIDIA_TESLA_V100 = 3
82
+ NVIDIA_TESLA_P4 = 4
83
+ NVIDIA_TESLA_T4 = 5
84
+ NVIDIA_TESLA_A100 = 8
85
+ NVIDIA_A100_80GB = 9
86
+ NVIDIA_L4 = 11
87
+ NVIDIA_H100_80GB = 13
88
+ NVIDIA_H100_MEGA_80GB = 14
89
+ NVIDIA_H200_141GB = 15
90
+ NVIDIA_B200 = 16
91
+ NVIDIA_GB200 = 17
92
+ NVIDIA_RTX_PRO_6000 = 18
93
+ TPU_V2 = 6
94
+ TPU_V3 = 7
95
+ TPU_V4_POD = 10
96
+ TPU_V5_LITEPOD = 12
97
+
98
+
99
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/annotation_spec.py ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
23
+
24
+
25
+ __protobuf__ = proto.module(
26
+ package="google.cloud.aiplatform.v1",
27
+ manifest={
28
+ "AnnotationSpec",
29
+ },
30
+ )
31
+
32
+
33
+ class AnnotationSpec(proto.Message):
34
+ r"""Identifies a concept with which DataItems may be annotated
35
+ with.
36
+
37
+ Attributes:
38
+ name (str):
39
+ Output only. Resource name of the
40
+ AnnotationSpec.
41
+ display_name (str):
42
+ Required. The user-defined name of the
43
+ AnnotationSpec. The name can be up to 128
44
+ characters long and can consist of any UTF-8
45
+ characters.
46
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
47
+ Output only. Timestamp when this
48
+ AnnotationSpec was created.
49
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
50
+ Output only. Timestamp when AnnotationSpec
51
+ was last updated.
52
+ etag (str):
53
+ Optional. Used to perform consistent
54
+ read-modify-write updates. If not set, a blind
55
+ "overwrite" update happens.
56
+ """
57
+
58
+ name: str = proto.Field(
59
+ proto.STRING,
60
+ number=1,
61
+ )
62
+ display_name: str = proto.Field(
63
+ proto.STRING,
64
+ number=2,
65
+ )
66
+ create_time: timestamp_pb2.Timestamp = proto.Field(
67
+ proto.MESSAGE,
68
+ number=3,
69
+ message=timestamp_pb2.Timestamp,
70
+ )
71
+ update_time: timestamp_pb2.Timestamp = proto.Field(
72
+ proto.MESSAGE,
73
+ number=4,
74
+ message=timestamp_pb2.Timestamp,
75
+ )
76
+ etag: str = proto.Field(
77
+ proto.STRING,
78
+ number=5,
79
+ )
80
+
81
+
82
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/api_auth.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+
23
+ __protobuf__ = proto.module(
24
+ package="google.cloud.aiplatform.v1",
25
+ manifest={
26
+ "ApiAuth",
27
+ },
28
+ )
29
+
30
+
31
+ class ApiAuth(proto.Message):
32
+ r"""The generic reusable api auth config.
33
+
34
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
35
+
36
+ Attributes:
37
+ api_key_config (google.cloud.aiplatform_v1.types.ApiAuth.ApiKeyConfig):
38
+ The API secret.
39
+
40
+ This field is a member of `oneof`_ ``auth_config``.
41
+ """
42
+
43
+ class ApiKeyConfig(proto.Message):
44
+ r"""The API secret.
45
+
46
+ Attributes:
47
+ api_key_secret_version (str):
48
+ Required. The SecretManager secret version
49
+ resource name storing API key. e.g.
50
+ projects/{project}/secrets/{secret}/versions/{version}
51
+ """
52
+
53
+ api_key_secret_version: str = proto.Field(
54
+ proto.STRING,
55
+ number=1,
56
+ )
57
+
58
+ api_key_config: ApiKeyConfig = proto.Field(
59
+ proto.MESSAGE,
60
+ number=1,
61
+ oneof="auth_config",
62
+ message=ApiKeyConfig,
63
+ )
64
+
65
+
66
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/artifact.py ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
23
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "Artifact",
30
+ },
31
+ )
32
+
33
+
34
+ class Artifact(proto.Message):
35
+ r"""Instance of a general artifact.
36
+
37
+ Attributes:
38
+ name (str):
39
+ Output only. The resource name of the
40
+ Artifact.
41
+ display_name (str):
42
+ User provided display name of the Artifact.
43
+ May be up to 128 Unicode characters.
44
+ uri (str):
45
+ The uniform resource identifier of the
46
+ artifact file. May be empty if there is no
47
+ actual artifact file.
48
+ etag (str):
49
+ An eTag used to perform consistent
50
+ read-modify-write updates. If not set, a blind
51
+ "overwrite" update happens.
52
+ labels (MutableMapping[str, str]):
53
+ The labels with user-defined metadata to
54
+ organize your Artifacts.
55
+ Label keys and values can be no longer than 64
56
+ characters (Unicode codepoints), can only
57
+ contain lowercase letters, numeric characters,
58
+ underscores and dashes. International characters
59
+ are allowed. No more than 64 user labels can be
60
+ associated with one Artifact (System labels are
61
+ excluded).
62
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
63
+ Output only. Timestamp when this Artifact was
64
+ created.
65
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
66
+ Output only. Timestamp when this Artifact was
67
+ last updated.
68
+ state (google.cloud.aiplatform_v1.types.Artifact.State):
69
+ The state of this Artifact. This is a
70
+ property of the Artifact, and does not imply or
71
+ capture any ongoing process. This property is
72
+ managed by clients (such as Vertex AI
73
+ Pipelines), and the system does not prescribe or
74
+ check the validity of state transitions.
75
+ schema_title (str):
76
+ The title of the schema describing the
77
+ metadata.
78
+ Schema title and version is expected to be
79
+ registered in earlier Create Schema calls. And
80
+ both are used together as unique identifiers to
81
+ identify schemas within the local metadata
82
+ store.
83
+ schema_version (str):
84
+ The version of the schema in schema_name to use.
85
+
86
+ Schema title and version is expected to be registered in
87
+ earlier Create Schema calls. And both are used together as
88
+ unique identifiers to identify schemas within the local
89
+ metadata store.
90
+ metadata (google.protobuf.struct_pb2.Struct):
91
+ Properties of the Artifact.
92
+ Top level metadata keys' heading and trailing
93
+ spaces will be trimmed. The size of this field
94
+ should not exceed 200KB.
95
+ description (str):
96
+ Description of the Artifact
97
+ """
98
+
99
+ class State(proto.Enum):
100
+ r"""Describes the state of the Artifact.
101
+
102
+ Values:
103
+ STATE_UNSPECIFIED (0):
104
+ Unspecified state for the Artifact.
105
+ PENDING (1):
106
+ A state used by systems like Vertex AI
107
+ Pipelines to indicate that the underlying data
108
+ item represented by this Artifact is being
109
+ created.
110
+ LIVE (2):
111
+ A state indicating that the Artifact should
112
+ exist, unless something external to the system
113
+ deletes it.
114
+ """
115
+
116
+ STATE_UNSPECIFIED = 0
117
+ PENDING = 1
118
+ LIVE = 2
119
+
120
+ name: str = proto.Field(
121
+ proto.STRING,
122
+ number=1,
123
+ )
124
+ display_name: str = proto.Field(
125
+ proto.STRING,
126
+ number=2,
127
+ )
128
+ uri: str = proto.Field(
129
+ proto.STRING,
130
+ number=6,
131
+ )
132
+ etag: str = proto.Field(
133
+ proto.STRING,
134
+ number=9,
135
+ )
136
+ labels: MutableMapping[str, str] = proto.MapField(
137
+ proto.STRING,
138
+ proto.STRING,
139
+ number=10,
140
+ )
141
+ create_time: timestamp_pb2.Timestamp = proto.Field(
142
+ proto.MESSAGE,
143
+ number=11,
144
+ message=timestamp_pb2.Timestamp,
145
+ )
146
+ update_time: timestamp_pb2.Timestamp = proto.Field(
147
+ proto.MESSAGE,
148
+ number=12,
149
+ message=timestamp_pb2.Timestamp,
150
+ )
151
+ state: State = proto.Field(
152
+ proto.ENUM,
153
+ number=13,
154
+ enum=State,
155
+ )
156
+ schema_title: str = proto.Field(
157
+ proto.STRING,
158
+ number=14,
159
+ )
160
+ schema_version: str = proto.Field(
161
+ proto.STRING,
162
+ number=15,
163
+ )
164
+ metadata: struct_pb2.Struct = proto.Field(
165
+ proto.MESSAGE,
166
+ number=16,
167
+ message=struct_pb2.Struct,
168
+ )
169
+ description: str = proto.Field(
170
+ proto.STRING,
171
+ number=17,
172
+ )
173
+
174
+
175
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/batch_prediction_job.py ADDED
@@ -0,0 +1,743 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import completion_stats as gca_completion_stats
23
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
24
+ from google.cloud.aiplatform_v1.types import explanation
25
+ from google.cloud.aiplatform_v1.types import io
26
+ from google.cloud.aiplatform_v1.types import job_state
27
+ from google.cloud.aiplatform_v1.types import machine_resources
28
+ from google.cloud.aiplatform_v1.types import (
29
+ manual_batch_tuning_parameters as gca_manual_batch_tuning_parameters,
30
+ )
31
+ from google.cloud.aiplatform_v1.types import (
32
+ unmanaged_container_model as gca_unmanaged_container_model,
33
+ )
34
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
35
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
36
+ import google.rpc.status_pb2 as status_pb2 # type: ignore
37
+
38
+
39
+ __protobuf__ = proto.module(
40
+ package="google.cloud.aiplatform.v1",
41
+ manifest={
42
+ "BatchPredictionJob",
43
+ },
44
+ )
45
+
46
+
47
+ class BatchPredictionJob(proto.Message):
48
+ r"""A job that uses a
49
+ [Model][google.cloud.aiplatform.v1.BatchPredictionJob.model] to
50
+ produce predictions on multiple [input
51
+ instances][google.cloud.aiplatform.v1.BatchPredictionJob.input_config].
52
+ If predictions for significant portion of the instances fail, the
53
+ job may finish without attempting predictions for all remaining
54
+ instances.
55
+
56
+ Attributes:
57
+ name (str):
58
+ Output only. Resource name of the
59
+ BatchPredictionJob.
60
+ display_name (str):
61
+ Required. The user-defined name of this
62
+ BatchPredictionJob.
63
+ model (str):
64
+ The name of the Model resource that produces the predictions
65
+ via this job, must share the same ancestor Location.
66
+ Starting this job has no impact on any existing deployments
67
+ of the Model and their resources. Exactly one of model and
68
+ unmanaged_container_model must be set.
69
+
70
+ The model resource name may contain version id or version
71
+ alias to specify the version. Example:
72
+ ``projects/{project}/locations/{location}/models/{model}@2``
73
+ or
74
+ ``projects/{project}/locations/{location}/models/{model}@golden``
75
+ if no version is specified, the default version will be
76
+ deployed.
77
+
78
+ The model resource could also be a publisher model. Example:
79
+ ``publishers/{publisher}/models/{model}`` or
80
+ ``projects/{project}/locations/{location}/publishers/{publisher}/models/{model}``
81
+ model_version_id (str):
82
+ Output only. The version ID of the Model that
83
+ produces the predictions via this job.
84
+ unmanaged_container_model (google.cloud.aiplatform_v1.types.UnmanagedContainerModel):
85
+ Contains model information necessary to perform batch
86
+ prediction without requiring uploading to model registry.
87
+ Exactly one of model and unmanaged_container_model must be
88
+ set.
89
+ input_config (google.cloud.aiplatform_v1.types.BatchPredictionJob.InputConfig):
90
+ Required. Input configuration of the instances on which
91
+ predictions are performed. The schema of any single instance
92
+ may be specified via the
93
+ [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
94
+ [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
95
+ [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
96
+ instance_config (google.cloud.aiplatform_v1.types.BatchPredictionJob.InstanceConfig):
97
+ Configuration for how to convert batch
98
+ prediction input instances to the prediction
99
+ instances that are sent to the Model.
100
+ model_parameters (google.protobuf.struct_pb2.Value):
101
+ The parameters that govern the predictions. The schema of
102
+ the parameters may be specified via the
103
+ [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
104
+ [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
105
+ [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
106
+ output_config (google.cloud.aiplatform_v1.types.BatchPredictionJob.OutputConfig):
107
+ Required. The Configuration specifying where output
108
+ predictions should be written. The schema of any single
109
+ prediction may be specified as a concatenation of
110
+ [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
111
+ [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
112
+ [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
113
+ and
114
+ [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri].
115
+ dedicated_resources (google.cloud.aiplatform_v1.types.BatchDedicatedResources):
116
+ The config of resources used by the Model during the batch
117
+ prediction. If the Model
118
+ [supports][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types]
119
+ DEDICATED_RESOURCES this config may be provided (and the job
120
+ will use these resources), if the Model doesn't support
121
+ AUTOMATIC_RESOURCES, this config must be provided.
122
+ service_account (str):
123
+ The service account that the DeployedModel's container runs
124
+ as. If not specified, a system generated one will be used,
125
+ which has minimal permissions and the custom container, if
126
+ used, may not have enough permission to access other Google
127
+ Cloud resources.
128
+
129
+ Users deploying the Model must have the
130
+ ``iam.serviceAccounts.actAs`` permission on this service
131
+ account.
132
+ manual_batch_tuning_parameters (google.cloud.aiplatform_v1.types.ManualBatchTuningParameters):
133
+ Immutable. Parameters configuring the batch behavior.
134
+ Currently only applicable when
135
+ [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources]
136
+ are used (in other cases Vertex AI does the tuning itself).
137
+ generate_explanation (bool):
138
+ Generate explanation with the batch prediction results.
139
+
140
+ When set to ``true``, the batch prediction output changes
141
+ based on the ``predictions_format`` field of the
142
+ [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]
143
+ object:
144
+
145
+ - ``bigquery``: output includes a column named
146
+ ``explanation``. The value is a struct that conforms to
147
+ the [Explanation][google.cloud.aiplatform.v1.Explanation]
148
+ object.
149
+ - ``jsonl``: The JSON objects on each line include an
150
+ additional entry keyed ``explanation``. The value of the
151
+ entry is a JSON object that conforms to the
152
+ [Explanation][google.cloud.aiplatform.v1.Explanation]
153
+ object.
154
+ - ``csv``: Generating explanations for CSV format is not
155
+ supported.
156
+
157
+ If this field is set to true, either the
158
+ [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
159
+ or
160
+ [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec]
161
+ must be populated.
162
+ explanation_spec (google.cloud.aiplatform_v1.types.ExplanationSpec):
163
+ Explanation configuration for this BatchPredictionJob. Can
164
+ be specified only if
165
+ [generate_explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation]
166
+ is set to ``true``.
167
+
168
+ This value overrides the value of
169
+ [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
170
+ All fields of
171
+ [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec]
172
+ are optional in the request. If a field of the
173
+ [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec]
174
+ object is not populated, the corresponding field of the
175
+ [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
176
+ object is inherited.
177
+ output_info (google.cloud.aiplatform_v1.types.BatchPredictionJob.OutputInfo):
178
+ Output only. Information further describing
179
+ the output of this job.
180
+ state (google.cloud.aiplatform_v1.types.JobState):
181
+ Output only. The detailed state of the job.
182
+ error (google.rpc.status_pb2.Status):
183
+ Output only. Only populated when the job's state is
184
+ JOB_STATE_FAILED or JOB_STATE_CANCELLED.
185
+ partial_failures (MutableSequence[google.rpc.status_pb2.Status]):
186
+ Output only. Partial failures encountered.
187
+ For example, single files that can't be read.
188
+ This field never exceeds 20 entries.
189
+ Status details fields contain standard Google
190
+ Cloud error details.
191
+ resources_consumed (google.cloud.aiplatform_v1.types.ResourcesConsumed):
192
+ Output only. Information about resources that
193
+ had been consumed by this job. Provided in real
194
+ time at best effort basis, as well as a final
195
+ value once the job completes.
196
+
197
+ Note: This field currently may be not populated
198
+ for batch predictions that use AutoML Models.
199
+ completion_stats (google.cloud.aiplatform_v1.types.CompletionStats):
200
+ Output only. Statistics on completed and
201
+ failed prediction instances.
202
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
203
+ Output only. Time when the BatchPredictionJob
204
+ was created.
205
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
206
+ Output only. Time when the BatchPredictionJob for the first
207
+ time entered the ``JOB_STATE_RUNNING`` state.
208
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
209
+ Output only. Time when the BatchPredictionJob entered any of
210
+ the following states: ``JOB_STATE_SUCCEEDED``,
211
+ ``JOB_STATE_FAILED``, ``JOB_STATE_CANCELLED``.
212
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
213
+ Output only. Time when the BatchPredictionJob
214
+ was most recently updated.
215
+ labels (MutableMapping[str, str]):
216
+ The labels with user-defined metadata to
217
+ organize BatchPredictionJobs.
218
+ Label keys and values can be no longer than 64
219
+ characters (Unicode codepoints), can only
220
+ contain lowercase letters, numeric characters,
221
+ underscores and dashes. International characters
222
+ are allowed.
223
+
224
+ See https://goo.gl/xmQnxf for more information
225
+ and examples of labels.
226
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
227
+ Customer-managed encryption key options for a
228
+ BatchPredictionJob. If this is set, then all
229
+ resources created by the BatchPredictionJob will
230
+ be encrypted with the provided encryption key.
231
+ disable_container_logging (bool):
232
+ For custom-trained Models and AutoML Tabular Models, the
233
+ container of the DeployedModel instances will send
234
+ ``stderr`` and ``stdout`` streams to Cloud Logging by
235
+ default. Please note that the logs incur cost, which are
236
+ subject to `Cloud Logging
237
+ pricing <https://cloud.google.com/logging/pricing>`__.
238
+
239
+ User can disable container logging by setting this flag to
240
+ true.
241
+ satisfies_pzs (bool):
242
+ Output only. Reserved for future use.
243
+ satisfies_pzi (bool):
244
+ Output only. Reserved for future use.
245
+ """
246
+
247
+ class InputConfig(proto.Message):
248
+ r"""Configures the input to
249
+ [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob].
250
+ See
251
+ [Model.supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats]
252
+ for Model's supported input formats, and how instances should be
253
+ expressed via any of them.
254
+
255
+ This message has `oneof`_ fields (mutually exclusive fields).
256
+ For each oneof, at most one member field can be set at the same time.
257
+ Setting any member of the oneof automatically clears all other
258
+ members.
259
+
260
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
261
+
262
+ Attributes:
263
+ gcs_source (google.cloud.aiplatform_v1.types.GcsSource):
264
+ The Cloud Storage location for the input
265
+ instances.
266
+
267
+ This field is a member of `oneof`_ ``source``.
268
+ bigquery_source (google.cloud.aiplatform_v1.types.BigQuerySource):
269
+ The BigQuery location of the input table.
270
+ The schema of the table should be in the format
271
+ described by the given context OpenAPI Schema,
272
+ if one is provided. The table may contain
273
+ additional columns that are not described by the
274
+ schema, and they will be ignored.
275
+
276
+ This field is a member of `oneof`_ ``source``.
277
+ vertex_multimodal_dataset_source (google.cloud.aiplatform_v1.types.VertexMultimodalDatasetSource):
278
+ A Vertex Managed Dataset. Currently, only
279
+ datasets of type Multimodal are supported.
280
+
281
+ This field is a member of `oneof`_ ``source``.
282
+ instances_format (str):
283
+ Required. The format in which instances are given, must be
284
+ one of the
285
+ [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
286
+ [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats].
287
+ """
288
+
289
+ gcs_source: io.GcsSource = proto.Field(
290
+ proto.MESSAGE,
291
+ number=2,
292
+ oneof="source",
293
+ message=io.GcsSource,
294
+ )
295
+ bigquery_source: io.BigQuerySource = proto.Field(
296
+ proto.MESSAGE,
297
+ number=3,
298
+ oneof="source",
299
+ message=io.BigQuerySource,
300
+ )
301
+ vertex_multimodal_dataset_source: io.VertexMultimodalDatasetSource = (
302
+ proto.Field(
303
+ proto.MESSAGE,
304
+ number=4,
305
+ oneof="source",
306
+ message=io.VertexMultimodalDatasetSource,
307
+ )
308
+ )
309
+ instances_format: str = proto.Field(
310
+ proto.STRING,
311
+ number=1,
312
+ )
313
+
314
+ class InstanceConfig(proto.Message):
315
+ r"""Configuration defining how to transform batch prediction
316
+ input instances to the instances that the Model accepts.
317
+
318
+ Attributes:
319
+ instance_type (str):
320
+ The format of the instance that the Model accepts. Vertex AI
321
+ will convert compatible [batch prediction input instance
322
+ formats][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.instances_format]
323
+ to the specified format.
324
+
325
+ Supported values are:
326
+
327
+ - ``object``: Each input is converted to JSON object format.
328
+
329
+ - For ``bigquery``, each row is converted to an object.
330
+ - For ``jsonl``, each line of the JSONL input must be an
331
+ object.
332
+ - Does not apply to ``csv``, ``file-list``, ``tf-record``,
333
+ or ``tf-record-gzip``.
334
+
335
+ - ``array``: Each input is converted to JSON array format.
336
+
337
+ - For ``bigquery``, each row is converted to an array. The
338
+ order of columns is determined by the BigQuery column
339
+ order, unless
340
+ [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields]
341
+ is populated.
342
+ [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields]
343
+ must be populated for specifying field orders.
344
+ - For ``jsonl``, if each line of the JSONL input is an
345
+ object,
346
+ [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields]
347
+ must be populated for specifying field orders.
348
+ - Does not apply to ``csv``, ``file-list``, ``tf-record``,
349
+ or ``tf-record-gzip``.
350
+
351
+ If not specified, Vertex AI converts the batch prediction
352
+ input as follows:
353
+
354
+ - For ``bigquery`` and ``csv``, the behavior is the same as
355
+ ``array``. The order of columns is the same as defined in
356
+ the file or table, unless
357
+ [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields]
358
+ is populated.
359
+ - For ``jsonl``, the prediction instance format is
360
+ determined by each line of the input.
361
+ - For ``tf-record``/``tf-record-gzip``, each record will be
362
+ converted to an object in the format of
363
+ ``{"b64": <value>}``, where ``<value>`` is the
364
+ Base64-encoded string of the content of the record.
365
+ - For ``file-list``, each file in the list will be converted
366
+ to an object in the format of ``{"b64": <value>}``, where
367
+ ``<value>`` is the Base64-encoded string of the content of
368
+ the file.
369
+ key_field (str):
370
+ The name of the field that is considered as a key.
371
+
372
+ The values identified by the key field is not included in
373
+ the transformed instances that is sent to the Model. This is
374
+ similar to specifying this name of the field in
375
+ [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields].
376
+ In addition, the batch prediction output will not include
377
+ the instances. Instead the output will only include the
378
+ value of the key field, in a field named ``key`` in the
379
+ output:
380
+
381
+ - For ``jsonl`` output format, the output will have a
382
+ ``key`` field instead of the ``instance`` field.
383
+ - For ``csv``/``bigquery`` output format, the output will
384
+ have have a ``key`` column instead of the instance feature
385
+ columns.
386
+
387
+ The input must be JSONL with objects at each line, CSV,
388
+ BigQuery or TfRecord.
389
+ included_fields (MutableSequence[str]):
390
+ Fields that will be included in the prediction instance that
391
+ is sent to the Model.
392
+
393
+ If
394
+ [instance_type][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.instance_type]
395
+ is ``array``, the order of field names in included_fields
396
+ also determines the order of the values in the array.
397
+
398
+ When included_fields is populated,
399
+ [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields]
400
+ must be empty.
401
+
402
+ The input must be JSONL with objects at each line, BigQuery
403
+ or TfRecord.
404
+ excluded_fields (MutableSequence[str]):
405
+ Fields that will be excluded in the prediction instance that
406
+ is sent to the Model.
407
+
408
+ Excluded will be attached to the batch prediction output if
409
+ [key_field][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.key_field]
410
+ is not specified.
411
+
412
+ When excluded_fields is populated,
413
+ [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields]
414
+ must be empty.
415
+
416
+ The input must be JSONL with objects at each line, BigQuery
417
+ or TfRecord.
418
+ """
419
+
420
+ instance_type: str = proto.Field(
421
+ proto.STRING,
422
+ number=1,
423
+ )
424
+ key_field: str = proto.Field(
425
+ proto.STRING,
426
+ number=2,
427
+ )
428
+ included_fields: MutableSequence[str] = proto.RepeatedField(
429
+ proto.STRING,
430
+ number=3,
431
+ )
432
+ excluded_fields: MutableSequence[str] = proto.RepeatedField(
433
+ proto.STRING,
434
+ number=4,
435
+ )
436
+
437
+ class OutputConfig(proto.Message):
438
+ r"""Configures the output of
439
+ [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob].
440
+ See
441
+ [Model.supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]
442
+ for supported output formats, and how predictions are expressed via
443
+ any of them.
444
+
445
+ This message has `oneof`_ fields (mutually exclusive fields).
446
+ For each oneof, at most one member field can be set at the same time.
447
+ Setting any member of the oneof automatically clears all other
448
+ members.
449
+
450
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
451
+
452
+ Attributes:
453
+ gcs_destination (google.cloud.aiplatform_v1.types.GcsDestination):
454
+ The Cloud Storage location of the directory where the output
455
+ is to be written to. In the given directory a new directory
456
+ is created. Its name is
457
+ ``prediction-<model-display-name>-<job-create-time>``, where
458
+ timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format.
459
+ Inside of it files ``predictions_0001.<extension>``,
460
+ ``predictions_0002.<extension>``, ...,
461
+ ``predictions_N.<extension>`` are created where
462
+ ``<extension>`` depends on chosen
463
+ [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format],
464
+ and N may equal 0001 and depends on the total number of
465
+ successfully predicted instances. If the Model has both
466
+ [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
467
+ and
468
+ [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]
469
+ schemata defined then each such file contains predictions as
470
+ per the
471
+ [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format].
472
+ If prediction for any instance failed (partially or
473
+ completely), then an additional ``errors_0001.<extension>``,
474
+ ``errors_0002.<extension>``,..., ``errors_N.<extension>``
475
+ files are created (N depends on total number of failed
476
+ predictions). These files contain the failed instances, as
477
+ per their schema, followed by an additional ``error`` field
478
+ which as value has [google.rpc.Status][google.rpc.Status]
479
+ containing only ``code`` and ``message`` fields.
480
+
481
+ This field is a member of `oneof`_ ``destination``.
482
+ bigquery_destination (google.cloud.aiplatform_v1.types.BigQueryDestination):
483
+ The BigQuery project or dataset location where the output is
484
+ to be written to. If project is provided, a new dataset is
485
+ created with name
486
+ ``prediction_<model-display-name>_<job-create-time>`` where
487
+ is made BigQuery-dataset-name compatible (for example, most
488
+ special characters become underscores), and timestamp is in
489
+ YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the
490
+ dataset two tables will be created, ``predictions``, and
491
+ ``errors``. If the Model has both
492
+ [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
493
+ and
494
+ [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]
495
+ schemata defined then the tables have columns as follows:
496
+ The ``predictions`` table contains instances for which the
497
+ prediction succeeded, it has columns as per a concatenation
498
+ of the Model's instance and prediction schemata. The
499
+ ``errors`` table contains rows for which the prediction has
500
+ failed, it has instance columns, as per the instance schema,
501
+ followed by a single "errors" column, which as values has
502
+ [google.rpc.Status][google.rpc.Status] represented as a
503
+ STRUCT, and containing only ``code`` and ``message``.
504
+
505
+ This field is a member of `oneof`_ ``destination``.
506
+ vertex_multimodal_dataset_destination (google.cloud.aiplatform_v1.types.VertexMultimodalDatasetDestination):
507
+ The details for a Vertex Multimodal Dataset
508
+ that will be created for the output.
509
+
510
+ This field is a member of `oneof`_ ``destination``.
511
+ predictions_format (str):
512
+ Required. The format in which Vertex AI gives the
513
+ predictions, must be one of the
514
+ [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
515
+ [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
516
+ """
517
+
518
+ gcs_destination: io.GcsDestination = proto.Field(
519
+ proto.MESSAGE,
520
+ number=2,
521
+ oneof="destination",
522
+ message=io.GcsDestination,
523
+ )
524
+ bigquery_destination: io.BigQueryDestination = proto.Field(
525
+ proto.MESSAGE,
526
+ number=3,
527
+ oneof="destination",
528
+ message=io.BigQueryDestination,
529
+ )
530
+ vertex_multimodal_dataset_destination: io.VertexMultimodalDatasetDestination = (
531
+ proto.Field(
532
+ proto.MESSAGE,
533
+ number=6,
534
+ oneof="destination",
535
+ message=io.VertexMultimodalDatasetDestination,
536
+ )
537
+ )
538
+ predictions_format: str = proto.Field(
539
+ proto.STRING,
540
+ number=1,
541
+ )
542
+
543
+ class OutputInfo(proto.Message):
544
+ r"""Further describes this job's output. Supplements
545
+ [output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config].
546
+
547
+ This message has `oneof`_ fields (mutually exclusive fields).
548
+ For each oneof, at most one member field can be set at the same time.
549
+ Setting any member of the oneof automatically clears all other
550
+ members.
551
+
552
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
553
+
554
+ Attributes:
555
+ gcs_output_directory (str):
556
+ Output only. The full path of the Cloud
557
+ Storage directory created, into which the
558
+ prediction output is written.
559
+
560
+ This field is a member of `oneof`_ ``output_location``.
561
+ bigquery_output_dataset (str):
562
+ Output only. The path of the BigQuery dataset created, in
563
+ ``bq://projectId.bqDatasetId`` format, into which the
564
+ prediction output is written.
565
+
566
+ This field is a member of `oneof`_ ``output_location``.
567
+ vertex_multimodal_dataset_name (str):
568
+ Output only. The resource name of the Vertex Managed Dataset
569
+ created, into which the prediction output is written.
570
+ Format:
571
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
572
+
573
+ This field is a member of `oneof`_ ``output_location``.
574
+ bigquery_output_table (str):
575
+ Output only. The name of the BigQuery table created, in
576
+ ``predictions_<timestamp>`` format, into which the
577
+ prediction output is written. Can be used by UI to generate
578
+ the BigQuery output path, for example.
579
+ """
580
+
581
+ gcs_output_directory: str = proto.Field(
582
+ proto.STRING,
583
+ number=1,
584
+ oneof="output_location",
585
+ )
586
+ bigquery_output_dataset: str = proto.Field(
587
+ proto.STRING,
588
+ number=2,
589
+ oneof="output_location",
590
+ )
591
+ vertex_multimodal_dataset_name: str = proto.Field(
592
+ proto.STRING,
593
+ number=5,
594
+ oneof="output_location",
595
+ )
596
+ bigquery_output_table: str = proto.Field(
597
+ proto.STRING,
598
+ number=4,
599
+ )
600
+
601
+ name: str = proto.Field(
602
+ proto.STRING,
603
+ number=1,
604
+ )
605
+ display_name: str = proto.Field(
606
+ proto.STRING,
607
+ number=2,
608
+ )
609
+ model: str = proto.Field(
610
+ proto.STRING,
611
+ number=3,
612
+ )
613
+ model_version_id: str = proto.Field(
614
+ proto.STRING,
615
+ number=30,
616
+ )
617
+ unmanaged_container_model: gca_unmanaged_container_model.UnmanagedContainerModel = (
618
+ proto.Field(
619
+ proto.MESSAGE,
620
+ number=28,
621
+ message=gca_unmanaged_container_model.UnmanagedContainerModel,
622
+ )
623
+ )
624
+ input_config: InputConfig = proto.Field(
625
+ proto.MESSAGE,
626
+ number=4,
627
+ message=InputConfig,
628
+ )
629
+ instance_config: InstanceConfig = proto.Field(
630
+ proto.MESSAGE,
631
+ number=27,
632
+ message=InstanceConfig,
633
+ )
634
+ model_parameters: struct_pb2.Value = proto.Field(
635
+ proto.MESSAGE,
636
+ number=5,
637
+ message=struct_pb2.Value,
638
+ )
639
+ output_config: OutputConfig = proto.Field(
640
+ proto.MESSAGE,
641
+ number=6,
642
+ message=OutputConfig,
643
+ )
644
+ dedicated_resources: machine_resources.BatchDedicatedResources = proto.Field(
645
+ proto.MESSAGE,
646
+ number=7,
647
+ message=machine_resources.BatchDedicatedResources,
648
+ )
649
+ service_account: str = proto.Field(
650
+ proto.STRING,
651
+ number=29,
652
+ )
653
+ manual_batch_tuning_parameters: (
654
+ gca_manual_batch_tuning_parameters.ManualBatchTuningParameters
655
+ ) = proto.Field(
656
+ proto.MESSAGE,
657
+ number=8,
658
+ message=gca_manual_batch_tuning_parameters.ManualBatchTuningParameters,
659
+ )
660
+ generate_explanation: bool = proto.Field(
661
+ proto.BOOL,
662
+ number=23,
663
+ )
664
+ explanation_spec: explanation.ExplanationSpec = proto.Field(
665
+ proto.MESSAGE,
666
+ number=25,
667
+ message=explanation.ExplanationSpec,
668
+ )
669
+ output_info: OutputInfo = proto.Field(
670
+ proto.MESSAGE,
671
+ number=9,
672
+ message=OutputInfo,
673
+ )
674
+ state: job_state.JobState = proto.Field(
675
+ proto.ENUM,
676
+ number=10,
677
+ enum=job_state.JobState,
678
+ )
679
+ error: status_pb2.Status = proto.Field(
680
+ proto.MESSAGE,
681
+ number=11,
682
+ message=status_pb2.Status,
683
+ )
684
+ partial_failures: MutableSequence[status_pb2.Status] = proto.RepeatedField(
685
+ proto.MESSAGE,
686
+ number=12,
687
+ message=status_pb2.Status,
688
+ )
689
+ resources_consumed: machine_resources.ResourcesConsumed = proto.Field(
690
+ proto.MESSAGE,
691
+ number=13,
692
+ message=machine_resources.ResourcesConsumed,
693
+ )
694
+ completion_stats: gca_completion_stats.CompletionStats = proto.Field(
695
+ proto.MESSAGE,
696
+ number=14,
697
+ message=gca_completion_stats.CompletionStats,
698
+ )
699
+ create_time: timestamp_pb2.Timestamp = proto.Field(
700
+ proto.MESSAGE,
701
+ number=15,
702
+ message=timestamp_pb2.Timestamp,
703
+ )
704
+ start_time: timestamp_pb2.Timestamp = proto.Field(
705
+ proto.MESSAGE,
706
+ number=16,
707
+ message=timestamp_pb2.Timestamp,
708
+ )
709
+ end_time: timestamp_pb2.Timestamp = proto.Field(
710
+ proto.MESSAGE,
711
+ number=17,
712
+ message=timestamp_pb2.Timestamp,
713
+ )
714
+ update_time: timestamp_pb2.Timestamp = proto.Field(
715
+ proto.MESSAGE,
716
+ number=18,
717
+ message=timestamp_pb2.Timestamp,
718
+ )
719
+ labels: MutableMapping[str, str] = proto.MapField(
720
+ proto.STRING,
721
+ proto.STRING,
722
+ number=19,
723
+ )
724
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
725
+ proto.MESSAGE,
726
+ number=24,
727
+ message=gca_encryption_spec.EncryptionSpec,
728
+ )
729
+ disable_container_logging: bool = proto.Field(
730
+ proto.BOOL,
731
+ number=34,
732
+ )
733
+ satisfies_pzs: bool = proto.Field(
734
+ proto.BOOL,
735
+ number=36,
736
+ )
737
+ satisfies_pzi: bool = proto.Field(
738
+ proto.BOOL,
739
+ number=37,
740
+ )
741
+
742
+
743
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/cached_content.py ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import content
23
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
24
+ from google.cloud.aiplatform_v1.types import tool
25
+ import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
26
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
27
+
28
+
29
+ __protobuf__ = proto.module(
30
+ package="google.cloud.aiplatform.v1",
31
+ manifest={
32
+ "CachedContent",
33
+ },
34
+ )
35
+
36
+
37
+ class CachedContent(proto.Message):
38
+ r"""A resource used in LLM queries for users to explicitly
39
+ specify what to cache and how to cache.
40
+
41
+ This message has `oneof`_ fields (mutually exclusive fields).
42
+ For each oneof, at most one member field can be set at the same time.
43
+ Setting any member of the oneof automatically clears all other
44
+ members.
45
+
46
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
47
+
48
+ Attributes:
49
+ expire_time (google.protobuf.timestamp_pb2.Timestamp):
50
+ Timestamp of when this resource is considered expired. This
51
+ is *always* provided on output, regardless of what was sent
52
+ on input.
53
+
54
+ This field is a member of `oneof`_ ``expiration``.
55
+ ttl (google.protobuf.duration_pb2.Duration):
56
+ Input only. The TTL for this resource. The
57
+ expiration time is computed: now + TTL.
58
+
59
+ This field is a member of `oneof`_ ``expiration``.
60
+ name (str):
61
+ Immutable. Identifier. The server-generated resource name of
62
+ the cached content Format:
63
+ projects/{project}/locations/{location}/cachedContents/{cached_content}
64
+ display_name (str):
65
+ Optional. Immutable. The user-generated
66
+ meaningful display name of the cached content.
67
+ model (str):
68
+ Immutable. The name of the ``Model`` to use for cached
69
+ content. Currently, only the published Gemini base models
70
+ are supported, in form of
71
+ projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}
72
+ system_instruction (google.cloud.aiplatform_v1.types.Content):
73
+ Optional. Input only. Immutable. Developer
74
+ set system instruction. Currently, text only
75
+ contents (MutableSequence[google.cloud.aiplatform_v1.types.Content]):
76
+ Optional. Input only. Immutable. The content
77
+ to cache
78
+ tools (MutableSequence[google.cloud.aiplatform_v1.types.Tool]):
79
+ Optional. Input only. Immutable. A list of ``Tools`` the
80
+ model may use to generate the next response
81
+ tool_config (google.cloud.aiplatform_v1.types.ToolConfig):
82
+ Optional. Input only. Immutable. Tool config.
83
+ This config is shared for all tools
84
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
85
+ Output only. Creation time of the cache
86
+ entry.
87
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
88
+ Output only. When the cache entry was last
89
+ updated in UTC time.
90
+ usage_metadata (google.cloud.aiplatform_v1.types.CachedContent.UsageMetadata):
91
+ Output only. Metadata on the usage of the
92
+ cached content.
93
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
94
+ Input only. Immutable. Customer-managed encryption key spec
95
+ for a ``CachedContent``. If set, this ``CachedContent`` and
96
+ all its sub-resources will be secured by this key.
97
+ """
98
+
99
+ class UsageMetadata(proto.Message):
100
+ r"""Metadata on the usage of the cached content.
101
+
102
+ Attributes:
103
+ total_token_count (int):
104
+ Total number of tokens that the cached
105
+ content consumes.
106
+ text_count (int):
107
+ Number of text characters.
108
+ image_count (int):
109
+ Number of images.
110
+ video_duration_seconds (int):
111
+ Duration of video in seconds.
112
+ audio_duration_seconds (int):
113
+ Duration of audio in seconds.
114
+ """
115
+
116
+ total_token_count: int = proto.Field(
117
+ proto.INT32,
118
+ number=1,
119
+ )
120
+ text_count: int = proto.Field(
121
+ proto.INT32,
122
+ number=2,
123
+ )
124
+ image_count: int = proto.Field(
125
+ proto.INT32,
126
+ number=3,
127
+ )
128
+ video_duration_seconds: int = proto.Field(
129
+ proto.INT32,
130
+ number=4,
131
+ )
132
+ audio_duration_seconds: int = proto.Field(
133
+ proto.INT32,
134
+ number=5,
135
+ )
136
+
137
+ expire_time: timestamp_pb2.Timestamp = proto.Field(
138
+ proto.MESSAGE,
139
+ number=9,
140
+ oneof="expiration",
141
+ message=timestamp_pb2.Timestamp,
142
+ )
143
+ ttl: duration_pb2.Duration = proto.Field(
144
+ proto.MESSAGE,
145
+ number=10,
146
+ oneof="expiration",
147
+ message=duration_pb2.Duration,
148
+ )
149
+ name: str = proto.Field(
150
+ proto.STRING,
151
+ number=1,
152
+ )
153
+ display_name: str = proto.Field(
154
+ proto.STRING,
155
+ number=11,
156
+ )
157
+ model: str = proto.Field(
158
+ proto.STRING,
159
+ number=2,
160
+ )
161
+ system_instruction: content.Content = proto.Field(
162
+ proto.MESSAGE,
163
+ number=3,
164
+ message=content.Content,
165
+ )
166
+ contents: MutableSequence[content.Content] = proto.RepeatedField(
167
+ proto.MESSAGE,
168
+ number=4,
169
+ message=content.Content,
170
+ )
171
+ tools: MutableSequence[tool.Tool] = proto.RepeatedField(
172
+ proto.MESSAGE,
173
+ number=5,
174
+ message=tool.Tool,
175
+ )
176
+ tool_config: tool.ToolConfig = proto.Field(
177
+ proto.MESSAGE,
178
+ number=6,
179
+ message=tool.ToolConfig,
180
+ )
181
+ create_time: timestamp_pb2.Timestamp = proto.Field(
182
+ proto.MESSAGE,
183
+ number=7,
184
+ message=timestamp_pb2.Timestamp,
185
+ )
186
+ update_time: timestamp_pb2.Timestamp = proto.Field(
187
+ proto.MESSAGE,
188
+ number=8,
189
+ message=timestamp_pb2.Timestamp,
190
+ )
191
+ usage_metadata: UsageMetadata = proto.Field(
192
+ proto.MESSAGE,
193
+ number=12,
194
+ message=UsageMetadata,
195
+ )
196
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
197
+ proto.MESSAGE,
198
+ number=13,
199
+ message=gca_encryption_spec.EncryptionSpec,
200
+ )
201
+
202
+
203
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/content.py ADDED
@@ -0,0 +1,2153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import openapi
23
+ from google.cloud.aiplatform_v1.types import tool
24
+ from google.cloud.aiplatform_v1.types import vertex_rag_data
25
+ import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
26
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
27
+ import google.type.date_pb2 as date_pb2 # type: ignore
28
+
29
+
30
+ __protobuf__ = proto.module(
31
+ package="google.cloud.aiplatform.v1",
32
+ manifest={
33
+ "HarmCategory",
34
+ "Modality",
35
+ "Content",
36
+ "Part",
37
+ "Blob",
38
+ "FileData",
39
+ "VideoMetadata",
40
+ "PrebuiltVoiceConfig",
41
+ "ReplicatedVoiceConfig",
42
+ "VoiceConfig",
43
+ "SpeakerVoiceConfig",
44
+ "MultiSpeakerVoiceConfig",
45
+ "SpeechConfig",
46
+ "ImageConfig",
47
+ "GenerationConfig",
48
+ "SafetySetting",
49
+ "SafetyRating",
50
+ "CitationMetadata",
51
+ "Citation",
52
+ "Candidate",
53
+ "UrlContextMetadata",
54
+ "UrlMetadata",
55
+ "LogprobsResult",
56
+ "Segment",
57
+ "GroundingChunk",
58
+ "GroundingSupport",
59
+ "GroundingMetadata",
60
+ "SearchEntryPoint",
61
+ "RetrievalMetadata",
62
+ "ModelArmorConfig",
63
+ "ModalityTokenCount",
64
+ },
65
+ )
66
+
67
+
68
+ class HarmCategory(proto.Enum):
69
+ r"""Harm categories that will block the content.
70
+
71
+ Values:
72
+ HARM_CATEGORY_UNSPECIFIED (0):
73
+ The harm category is unspecified.
74
+ HARM_CATEGORY_HATE_SPEECH (1):
75
+ The harm category is hate speech.
76
+ HARM_CATEGORY_DANGEROUS_CONTENT (2):
77
+ The harm category is dangerous content.
78
+ HARM_CATEGORY_HARASSMENT (3):
79
+ The harm category is harassment.
80
+ HARM_CATEGORY_SEXUALLY_EXPLICIT (4):
81
+ The harm category is sexually explicit
82
+ content.
83
+ HARM_CATEGORY_CIVIC_INTEGRITY (5):
84
+ Deprecated: Election filter is not longer
85
+ supported. The harm category is civic integrity.
86
+ HARM_CATEGORY_JAILBREAK (6):
87
+ The harm category is for jailbreak prompts.
88
+ """
89
+
90
+ HARM_CATEGORY_UNSPECIFIED = 0
91
+ HARM_CATEGORY_HATE_SPEECH = 1
92
+ HARM_CATEGORY_DANGEROUS_CONTENT = 2
93
+ HARM_CATEGORY_HARASSMENT = 3
94
+ HARM_CATEGORY_SEXUALLY_EXPLICIT = 4
95
+ HARM_CATEGORY_CIVIC_INTEGRITY = 5
96
+ HARM_CATEGORY_JAILBREAK = 6
97
+
98
+
99
+ class Modality(proto.Enum):
100
+ r"""Content Part modality
101
+
102
+ Values:
103
+ MODALITY_UNSPECIFIED (0):
104
+ Unspecified modality.
105
+ TEXT (1):
106
+ Plain text.
107
+ IMAGE (2):
108
+ Image.
109
+ VIDEO (3):
110
+ Video.
111
+ AUDIO (4):
112
+ Audio.
113
+ DOCUMENT (5):
114
+ Document, e.g. PDF.
115
+ """
116
+
117
+ MODALITY_UNSPECIFIED = 0
118
+ TEXT = 1
119
+ IMAGE = 2
120
+ VIDEO = 3
121
+ AUDIO = 4
122
+ DOCUMENT = 5
123
+
124
+
125
+ class Content(proto.Message):
126
+ r"""The base structured datatype containing multi-part content of a
127
+ message.
128
+
129
+ A ``Content`` includes a ``role`` field designating the producer of
130
+ the ``Content`` and a ``parts`` field containing multi-part data
131
+ that contains the content of the message turn.
132
+
133
+ Attributes:
134
+ role (str):
135
+ Optional. The producer of the content. Must
136
+ be either 'user' or 'model'.
137
+ Useful to set for multi-turn conversations,
138
+ otherwise can be left blank or unset.
139
+ parts (MutableSequence[google.cloud.aiplatform_v1.types.Part]):
140
+ Required. Ordered ``Parts`` that constitute a single
141
+ message. Parts may have different IANA MIME types.
142
+ """
143
+
144
+ role: str = proto.Field(
145
+ proto.STRING,
146
+ number=1,
147
+ )
148
+ parts: MutableSequence["Part"] = proto.RepeatedField(
149
+ proto.MESSAGE,
150
+ number=2,
151
+ message="Part",
152
+ )
153
+
154
+
155
+ class Part(proto.Message):
156
+ r"""A datatype containing media that is part of a multi-part ``Content``
157
+ message.
158
+
159
+ A ``Part`` consists of data which has an associated datatype. A
160
+ ``Part`` can only contain one of the accepted types in
161
+ ``Part.data``.
162
+
163
+ A ``Part`` must have a fixed IANA MIME type identifying the type and
164
+ subtype of the media if ``inline_data`` or ``file_data`` field is
165
+ filled with raw bytes.
166
+
167
+ This message has `oneof`_ fields (mutually exclusive fields).
168
+ For each oneof, at most one member field can be set at the same time.
169
+ Setting any member of the oneof automatically clears all other
170
+ members.
171
+
172
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
173
+
174
+ Attributes:
175
+ text (str):
176
+ Optional. Text part (can be code).
177
+
178
+ This field is a member of `oneof`_ ``data``.
179
+ inline_data (google.cloud.aiplatform_v1.types.Blob):
180
+ Optional. Inlined bytes data.
181
+
182
+ This field is a member of `oneof`_ ``data``.
183
+ file_data (google.cloud.aiplatform_v1.types.FileData):
184
+ Optional. URI based data.
185
+
186
+ This field is a member of `oneof`_ ``data``.
187
+ function_call (google.cloud.aiplatform_v1.types.FunctionCall):
188
+ Optional. A predicted [FunctionCall] returned from the model
189
+ that contains a string representing the
190
+ [FunctionDeclaration.name] with the parameters and their
191
+ values.
192
+
193
+ This field is a member of `oneof`_ ``data``.
194
+ function_response (google.cloud.aiplatform_v1.types.FunctionResponse):
195
+ Optional. The result output of a [FunctionCall] that
196
+ contains a string representing the
197
+ [FunctionDeclaration.name] and a structured JSON object
198
+ containing any output from the function call. It is used as
199
+ context to the model.
200
+
201
+ This field is a member of `oneof`_ ``data``.
202
+ executable_code (google.cloud.aiplatform_v1.types.ExecutableCode):
203
+ Optional. Code generated by the model that is
204
+ meant to be executed.
205
+
206
+ This field is a member of `oneof`_ ``data``.
207
+ code_execution_result (google.cloud.aiplatform_v1.types.CodeExecutionResult):
208
+ Optional. Result of executing the [ExecutableCode].
209
+
210
+ This field is a member of `oneof`_ ``data``.
211
+ thought (bool):
212
+ Indicates if the part is thought from the
213
+ model.
214
+ thought_signature (bytes):
215
+ An opaque signature for the thought so it can
216
+ be reused in subsequent requests.
217
+ video_metadata (google.cloud.aiplatform_v1.types.VideoMetadata):
218
+ Optional. Video metadata. The metadata should only be
219
+ specified while the video data is presented in inline_data
220
+ or file_data.
221
+
222
+ This field is a member of `oneof`_ ``metadata``.
223
+ media_resolution (google.cloud.aiplatform_v1.types.Part.MediaResolution):
224
+ per part media resolution.
225
+ Media resolution for the input media.
226
+ """
227
+
228
+ class MediaResolution(proto.Message):
229
+ r"""per part media resolution.
230
+ Media resolution for the input media.
231
+
232
+
233
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
234
+
235
+ Attributes:
236
+ level (google.cloud.aiplatform_v1.types.Part.MediaResolution.Level):
237
+ The tokenization quality used for given
238
+ media.
239
+
240
+ This field is a member of `oneof`_ ``value``.
241
+ """
242
+
243
+ class Level(proto.Enum):
244
+ r"""The media resolution level.
245
+
246
+ Values:
247
+ MEDIA_RESOLUTION_UNSPECIFIED (0):
248
+ Media resolution has not been set.
249
+ MEDIA_RESOLUTION_LOW (1):
250
+ Media resolution set to low.
251
+ MEDIA_RESOLUTION_MEDIUM (2):
252
+ Media resolution set to medium.
253
+ MEDIA_RESOLUTION_HIGH (3):
254
+ Media resolution set to high.
255
+ MEDIA_RESOLUTION_ULTRA_HIGH (4):
256
+ Media resolution set to ultra high. This is
257
+ for image only.
258
+ """
259
+
260
+ MEDIA_RESOLUTION_UNSPECIFIED = 0
261
+ MEDIA_RESOLUTION_LOW = 1
262
+ MEDIA_RESOLUTION_MEDIUM = 2
263
+ MEDIA_RESOLUTION_HIGH = 3
264
+ MEDIA_RESOLUTION_ULTRA_HIGH = 4
265
+
266
+ level: "Part.MediaResolution.Level" = proto.Field(
267
+ proto.ENUM,
268
+ number=1,
269
+ oneof="value",
270
+ enum="Part.MediaResolution.Level",
271
+ )
272
+
273
+ text: str = proto.Field(
274
+ proto.STRING,
275
+ number=1,
276
+ oneof="data",
277
+ )
278
+ inline_data: "Blob" = proto.Field(
279
+ proto.MESSAGE,
280
+ number=2,
281
+ oneof="data",
282
+ message="Blob",
283
+ )
284
+ file_data: "FileData" = proto.Field(
285
+ proto.MESSAGE,
286
+ number=3,
287
+ oneof="data",
288
+ message="FileData",
289
+ )
290
+ function_call: tool.FunctionCall = proto.Field(
291
+ proto.MESSAGE,
292
+ number=5,
293
+ oneof="data",
294
+ message=tool.FunctionCall,
295
+ )
296
+ function_response: tool.FunctionResponse = proto.Field(
297
+ proto.MESSAGE,
298
+ number=6,
299
+ oneof="data",
300
+ message=tool.FunctionResponse,
301
+ )
302
+ executable_code: tool.ExecutableCode = proto.Field(
303
+ proto.MESSAGE,
304
+ number=8,
305
+ oneof="data",
306
+ message=tool.ExecutableCode,
307
+ )
308
+ code_execution_result: tool.CodeExecutionResult = proto.Field(
309
+ proto.MESSAGE,
310
+ number=9,
311
+ oneof="data",
312
+ message=tool.CodeExecutionResult,
313
+ )
314
+ thought: bool = proto.Field(
315
+ proto.BOOL,
316
+ number=10,
317
+ )
318
+ thought_signature: bytes = proto.Field(
319
+ proto.BYTES,
320
+ number=11,
321
+ )
322
+ video_metadata: "VideoMetadata" = proto.Field(
323
+ proto.MESSAGE,
324
+ number=4,
325
+ oneof="metadata",
326
+ message="VideoMetadata",
327
+ )
328
+ media_resolution: MediaResolution = proto.Field(
329
+ proto.MESSAGE,
330
+ number=12,
331
+ message=MediaResolution,
332
+ )
333
+
334
+
335
+ class Blob(proto.Message):
336
+ r"""Content blob.
337
+
338
+ It's preferred to send as
339
+ [text][google.cloud.aiplatform.v1.Part.text] directly rather than
340
+ raw bytes.
341
+
342
+ Attributes:
343
+ mime_type (str):
344
+ Required. The IANA standard MIME type of the
345
+ source data.
346
+ data (bytes):
347
+ Required. Raw bytes.
348
+ """
349
+
350
+ mime_type: str = proto.Field(
351
+ proto.STRING,
352
+ number=1,
353
+ )
354
+ data: bytes = proto.Field(
355
+ proto.BYTES,
356
+ number=2,
357
+ )
358
+
359
+
360
+ class FileData(proto.Message):
361
+ r"""URI based data.
362
+
363
+ Attributes:
364
+ mime_type (str):
365
+ Required. The IANA standard MIME type of the
366
+ source data.
367
+ file_uri (str):
368
+ Required. URI.
369
+ """
370
+
371
+ mime_type: str = proto.Field(
372
+ proto.STRING,
373
+ number=1,
374
+ )
375
+ file_uri: str = proto.Field(
376
+ proto.STRING,
377
+ number=2,
378
+ )
379
+
380
+
381
+ class VideoMetadata(proto.Message):
382
+ r"""Metadata describes the input video content.
383
+
384
+ Attributes:
385
+ start_offset (google.protobuf.duration_pb2.Duration):
386
+ Optional. The start offset of the video.
387
+ end_offset (google.protobuf.duration_pb2.Duration):
388
+ Optional. The end offset of the video.
389
+ fps (float):
390
+ Optional. The frame rate of the video sent to the model. If
391
+ not specified, the default value is 1.0. The valid range is
392
+ (0.0, 24.0].
393
+ """
394
+
395
+ start_offset: duration_pb2.Duration = proto.Field(
396
+ proto.MESSAGE,
397
+ number=1,
398
+ message=duration_pb2.Duration,
399
+ )
400
+ end_offset: duration_pb2.Duration = proto.Field(
401
+ proto.MESSAGE,
402
+ number=2,
403
+ message=duration_pb2.Duration,
404
+ )
405
+ fps: float = proto.Field(
406
+ proto.DOUBLE,
407
+ number=3,
408
+ )
409
+
410
+
411
+ class PrebuiltVoiceConfig(proto.Message):
412
+ r"""Configuration for a prebuilt voice.
413
+
414
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
415
+
416
+ Attributes:
417
+ voice_name (str):
418
+ The name of the prebuilt voice to use.
419
+
420
+ This field is a member of `oneof`_ ``_voice_name``.
421
+ """
422
+
423
+ voice_name: str = proto.Field(
424
+ proto.STRING,
425
+ number=1,
426
+ optional=True,
427
+ )
428
+
429
+
430
+ class ReplicatedVoiceConfig(proto.Message):
431
+ r"""The configuration for the replicated voice to use.
432
+
433
+ Attributes:
434
+ mime_type (str):
435
+ Optional. The mimetype of the voice sample. The only
436
+ currently supported value is ``audio/wav``. This represents
437
+ 16-bit signed little-endian wav data, with a 24kHz sampling
438
+ rate. ``mime_type`` will default to ``audio/wav`` if not
439
+ set.
440
+ voice_sample_audio (bytes):
441
+ Optional. The sample of the custom voice.
442
+ """
443
+
444
+ mime_type: str = proto.Field(
445
+ proto.STRING,
446
+ number=1,
447
+ )
448
+ voice_sample_audio: bytes = proto.Field(
449
+ proto.BYTES,
450
+ number=2,
451
+ )
452
+
453
+
454
+ class VoiceConfig(proto.Message):
455
+ r"""Configuration for a voice.
456
+
457
+ This message has `oneof`_ fields (mutually exclusive fields).
458
+ For each oneof, at most one member field can be set at the same time.
459
+ Setting any member of the oneof automatically clears all other
460
+ members.
461
+
462
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
463
+
464
+ Attributes:
465
+ prebuilt_voice_config (google.cloud.aiplatform_v1.types.PrebuiltVoiceConfig):
466
+ The configuration for a prebuilt voice.
467
+
468
+ This field is a member of `oneof`_ ``voice_config``.
469
+ replicated_voice_config (google.cloud.aiplatform_v1.types.ReplicatedVoiceConfig):
470
+ Optional. The configuration for a replicated
471
+ voice. This enables users to replicate a voice
472
+ from an audio sample.
473
+
474
+ This field is a member of `oneof`_ ``voice_config``.
475
+ """
476
+
477
+ prebuilt_voice_config: "PrebuiltVoiceConfig" = proto.Field(
478
+ proto.MESSAGE,
479
+ number=1,
480
+ oneof="voice_config",
481
+ message="PrebuiltVoiceConfig",
482
+ )
483
+ replicated_voice_config: "ReplicatedVoiceConfig" = proto.Field(
484
+ proto.MESSAGE,
485
+ number=3,
486
+ oneof="voice_config",
487
+ message="ReplicatedVoiceConfig",
488
+ )
489
+
490
+
491
+ class SpeakerVoiceConfig(proto.Message):
492
+ r"""Configuration for a single speaker in a multi-speaker setup.
493
+
494
+ Attributes:
495
+ speaker (str):
496
+ Required. The name of the speaker. This
497
+ should be the same as the speaker name used in
498
+ the prompt.
499
+ voice_config (google.cloud.aiplatform_v1.types.VoiceConfig):
500
+ Required. The configuration for the voice of
501
+ this speaker.
502
+ """
503
+
504
+ speaker: str = proto.Field(
505
+ proto.STRING,
506
+ number=1,
507
+ )
508
+ voice_config: "VoiceConfig" = proto.Field(
509
+ proto.MESSAGE,
510
+ number=2,
511
+ message="VoiceConfig",
512
+ )
513
+
514
+
515
+ class MultiSpeakerVoiceConfig(proto.Message):
516
+ r"""Configuration for a multi-speaker text-to-speech request.
517
+
518
+ Attributes:
519
+ speaker_voice_configs (MutableSequence[google.cloud.aiplatform_v1.types.SpeakerVoiceConfig]):
520
+ Required. A list of configurations for the
521
+ voices of the speakers. Exactly two speaker
522
+ voice configurations must be provided.
523
+ """
524
+
525
+ speaker_voice_configs: MutableSequence["SpeakerVoiceConfig"] = proto.RepeatedField(
526
+ proto.MESSAGE,
527
+ number=2,
528
+ message="SpeakerVoiceConfig",
529
+ )
530
+
531
+
532
+ class SpeechConfig(proto.Message):
533
+ r"""Configuration for speech generation.
534
+
535
+ Attributes:
536
+ voice_config (google.cloud.aiplatform_v1.types.VoiceConfig):
537
+ The configuration for the voice to use.
538
+ language_code (str):
539
+ Optional. The language code (ISO 639-1) for
540
+ the speech synthesis.
541
+ multi_speaker_voice_config (google.cloud.aiplatform_v1.types.MultiSpeakerVoiceConfig):
542
+ The configuration for a multi-speaker text-to-speech
543
+ request. This field is mutually exclusive with
544
+ ``voice_config``.
545
+ """
546
+
547
+ voice_config: "VoiceConfig" = proto.Field(
548
+ proto.MESSAGE,
549
+ number=1,
550
+ message="VoiceConfig",
551
+ )
552
+ language_code: str = proto.Field(
553
+ proto.STRING,
554
+ number=2,
555
+ )
556
+ multi_speaker_voice_config: "MultiSpeakerVoiceConfig" = proto.Field(
557
+ proto.MESSAGE,
558
+ number=3,
559
+ message="MultiSpeakerVoiceConfig",
560
+ )
561
+
562
+
563
+ class ImageConfig(proto.Message):
564
+ r"""Config for image generation features.
565
+
566
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
567
+
568
+ Attributes:
569
+ image_output_options (google.cloud.aiplatform_v1.types.ImageConfig.ImageOutputOptions):
570
+ Optional. The image output format for
571
+ generated images.
572
+
573
+ This field is a member of `oneof`_ ``_image_output_options``.
574
+ aspect_ratio (str):
575
+ Optional. The desired aspect ratio for the
576
+ generated images. The following aspect ratios
577
+ are supported:
578
+
579
+ "1:1"
580
+ "2:3", "3:2"
581
+ "3:4", "4:3"
582
+ "4:5", "5:4"
583
+ "9:16", "16:9"
584
+ "21:9".
585
+
586
+ This field is a member of `oneof`_ ``_aspect_ratio``.
587
+ person_generation (google.cloud.aiplatform_v1.types.ImageConfig.PersonGeneration):
588
+ Optional. Controls whether the model can
589
+ generate people.
590
+
591
+ This field is a member of `oneof`_ ``_person_generation``.
592
+ image_size (str):
593
+ Optional. Specifies the size of generated images. Supported
594
+ values are ``1K``, ``2K``, ``4K``. If not specified, the
595
+ model will use default value ``1K``.
596
+
597
+ This field is a member of `oneof`_ ``_image_size``.
598
+ """
599
+
600
+ class PersonGeneration(proto.Enum):
601
+ r"""Enum for controlling the generation of people in images.
602
+
603
+ Values:
604
+ PERSON_GENERATION_UNSPECIFIED (0):
605
+ The default behavior is unspecified. The
606
+ model will decide whether to generate images of
607
+ people.
608
+ ALLOW_ALL (1):
609
+ Allows the model to generate images of
610
+ people, including adults and children.
611
+ ALLOW_ADULT (2):
612
+ Allows the model to generate images of
613
+ adults, but not children.
614
+ ALLOW_NONE (3):
615
+ Prevents the model from generating images of
616
+ people.
617
+ """
618
+
619
+ PERSON_GENERATION_UNSPECIFIED = 0
620
+ ALLOW_ALL = 1
621
+ ALLOW_ADULT = 2
622
+ ALLOW_NONE = 3
623
+
624
+ class ImageOutputOptions(proto.Message):
625
+ r"""The image output format for generated images.
626
+
627
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
628
+
629
+ Attributes:
630
+ mime_type (str):
631
+ Optional. The image format that the output
632
+ should be saved as.
633
+
634
+ This field is a member of `oneof`_ ``_mime_type``.
635
+ compression_quality (int):
636
+ Optional. The compression quality of the
637
+ output image.
638
+
639
+ This field is a member of `oneof`_ ``_compression_quality``.
640
+ """
641
+
642
+ mime_type: str = proto.Field(
643
+ proto.STRING,
644
+ number=1,
645
+ optional=True,
646
+ )
647
+ compression_quality: int = proto.Field(
648
+ proto.INT32,
649
+ number=2,
650
+ optional=True,
651
+ )
652
+
653
+ image_output_options: ImageOutputOptions = proto.Field(
654
+ proto.MESSAGE,
655
+ number=1,
656
+ optional=True,
657
+ message=ImageOutputOptions,
658
+ )
659
+ aspect_ratio: str = proto.Field(
660
+ proto.STRING,
661
+ number=2,
662
+ optional=True,
663
+ )
664
+ person_generation: PersonGeneration = proto.Field(
665
+ proto.ENUM,
666
+ number=3,
667
+ optional=True,
668
+ enum=PersonGeneration,
669
+ )
670
+ image_size: str = proto.Field(
671
+ proto.STRING,
672
+ number=4,
673
+ optional=True,
674
+ )
675
+
676
+
677
+ class GenerationConfig(proto.Message):
678
+ r"""Generation config.
679
+
680
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
681
+
682
+ Attributes:
683
+ temperature (float):
684
+ Optional. Controls the randomness of
685
+ predictions.
686
+
687
+ This field is a member of `oneof`_ ``_temperature``.
688
+ top_p (float):
689
+ Optional. If specified, nucleus sampling will
690
+ be used.
691
+
692
+ This field is a member of `oneof`_ ``_top_p``.
693
+ top_k (float):
694
+ Optional. If specified, top-k sampling will
695
+ be used.
696
+
697
+ This field is a member of `oneof`_ ``_top_k``.
698
+ candidate_count (int):
699
+ Optional. Number of candidates to generate.
700
+
701
+ This field is a member of `oneof`_ ``_candidate_count``.
702
+ max_output_tokens (int):
703
+ Optional. The maximum number of output tokens
704
+ to generate per message.
705
+
706
+ This field is a member of `oneof`_ ``_max_output_tokens``.
707
+ stop_sequences (MutableSequence[str]):
708
+ Optional. Stop sequences.
709
+ response_logprobs (bool):
710
+ Optional. If true, export the logprobs
711
+ results in response.
712
+
713
+ This field is a member of `oneof`_ ``_response_logprobs``.
714
+ logprobs (int):
715
+ Optional. Logit probabilities.
716
+
717
+ This field is a member of `oneof`_ ``_logprobs``.
718
+ presence_penalty (float):
719
+ Optional. Positive penalties.
720
+
721
+ This field is a member of `oneof`_ ``_presence_penalty``.
722
+ frequency_penalty (float):
723
+ Optional. Frequency penalties.
724
+
725
+ This field is a member of `oneof`_ ``_frequency_penalty``.
726
+ seed (int):
727
+ Optional. Seed.
728
+
729
+ This field is a member of `oneof`_ ``_seed``.
730
+ response_mime_type (str):
731
+ Optional. Output response mimetype of the generated
732
+ candidate text. Supported mimetype:
733
+
734
+ - ``text/plain``: (default) Text output.
735
+ - ``application/json``: JSON response in the candidates. The
736
+ model needs to be prompted to output the appropriate
737
+ response type, otherwise the behavior is undefined. This
738
+ is a preview feature.
739
+ response_schema (google.cloud.aiplatform_v1.types.Schema):
740
+ Optional. The ``Schema`` object allows the definition of
741
+ input and output data types. These types can be objects, but
742
+ also primitives and arrays. Represents a select subset of an
743
+ `OpenAPI 3.0 schema
744
+ object <https://spec.openapis.org/oas/v3.0.3#schema>`__. If
745
+ set, a compatible response_mime_type must also be set.
746
+ Compatible mimetypes: ``application/json``: Schema for JSON
747
+ response.
748
+
749
+ This field is a member of `oneof`_ ``_response_schema``.
750
+ response_json_schema (google.protobuf.struct_pb2.Value):
751
+ Optional. Output schema of the generated response. This is
752
+ an alternative to ``response_schema`` that accepts `JSON
753
+ Schema <https://json-schema.org/>`__.
754
+
755
+ If set, ``response_schema`` must be omitted, but
756
+ ``response_mime_type`` is required.
757
+
758
+ While the full JSON Schema may be sent, not all features are
759
+ supported. Specifically, only the following properties are
760
+ supported:
761
+
762
+ - ``$id``
763
+ - ``$defs``
764
+ - ``$ref``
765
+ - ``$anchor``
766
+ - ``type``
767
+ - ``format``
768
+ - ``title``
769
+ - ``description``
770
+ - ``enum`` (for strings and numbers)
771
+ - ``items``
772
+ - ``prefixItems``
773
+ - ``minItems``
774
+ - ``maxItems``
775
+ - ``minimum``
776
+ - ``maximum``
777
+ - ``anyOf``
778
+ - ``oneOf`` (interpreted the same as ``anyOf``)
779
+ - ``properties``
780
+ - ``additionalProperties``
781
+ - ``required``
782
+
783
+ The non-standard ``propertyOrdering`` property may also be
784
+ set.
785
+
786
+ Cyclic references are unrolled to a limited degree and, as
787
+ such, may only be used within non-required properties.
788
+ (Nullable properties are not sufficient.) If ``$ref`` is set
789
+ on a sub-schema, no other properties, except for than those
790
+ starting as a ``$``, may be set.
791
+
792
+ This field is a member of `oneof`_ ``_response_json_schema``.
793
+ routing_config (google.cloud.aiplatform_v1.types.GenerationConfig.RoutingConfig):
794
+ Optional. Routing configuration.
795
+
796
+ This field is a member of `oneof`_ ``_routing_config``.
797
+ audio_timestamp (bool):
798
+ Optional. If enabled, audio timestamps will
799
+ be included in the request to the model. This
800
+ can be useful for synchronizing audio with other
801
+ modalities in the response.
802
+
803
+ This field is a member of `oneof`_ ``_audio_timestamp``.
804
+ response_modalities (MutableSequence[google.cloud.aiplatform_v1.types.GenerationConfig.Modality]):
805
+ Optional. The modalities of the response. The model will
806
+ generate a response that includes all the specified
807
+ modalities. For example, if this is set to
808
+ ``[TEXT, IMAGE]``, the response will include both text and
809
+ an image.
810
+ media_resolution (google.cloud.aiplatform_v1.types.GenerationConfig.MediaResolution):
811
+ Optional. The token resolution at which input
812
+ media content is sampled. This is used to
813
+ control the trade-off between the quality of the
814
+ response and the number of tokens used to
815
+ represent the media. A higher resolution allows
816
+ the model to perceive more detail, which can
817
+ lead to a more nuanced response, but it will
818
+ also use more tokens. This does not affect the
819
+ image dimensions sent to the model.
820
+
821
+ This field is a member of `oneof`_ ``_media_resolution``.
822
+ speech_config (google.cloud.aiplatform_v1.types.SpeechConfig):
823
+ Optional. The speech generation config.
824
+
825
+ This field is a member of `oneof`_ ``_speech_config``.
826
+ thinking_config (google.cloud.aiplatform_v1.types.GenerationConfig.ThinkingConfig):
827
+ Optional. Config for thinking features.
828
+ An error will be returned if this field is set
829
+ for models that don't support thinking.
830
+ image_config (google.cloud.aiplatform_v1.types.ImageConfig):
831
+ Optional. Config for image generation
832
+ features.
833
+
834
+ This field is a member of `oneof`_ ``_image_config``.
835
+ """
836
+
837
+ class Modality(proto.Enum):
838
+ r"""The modalities of the response.
839
+
840
+ Values:
841
+ MODALITY_UNSPECIFIED (0):
842
+ Unspecified modality. Will be processed as
843
+ text.
844
+ TEXT (1):
845
+ Text modality.
846
+ IMAGE (2):
847
+ Image modality.
848
+ AUDIO (3):
849
+ Audio modality.
850
+ """
851
+
852
+ MODALITY_UNSPECIFIED = 0
853
+ TEXT = 1
854
+ IMAGE = 2
855
+ AUDIO = 3
856
+
857
+ class MediaResolution(proto.Enum):
858
+ r"""Media resolution for the input media.
859
+
860
+ Values:
861
+ MEDIA_RESOLUTION_UNSPECIFIED (0):
862
+ Media resolution has not been set.
863
+ MEDIA_RESOLUTION_LOW (1):
864
+ Media resolution set to low (64 tokens).
865
+ MEDIA_RESOLUTION_MEDIUM (2):
866
+ Media resolution set to medium (256 tokens).
867
+ MEDIA_RESOLUTION_HIGH (3):
868
+ Media resolution set to high (zoomed
869
+ reframing with 256 tokens).
870
+ """
871
+
872
+ MEDIA_RESOLUTION_UNSPECIFIED = 0
873
+ MEDIA_RESOLUTION_LOW = 1
874
+ MEDIA_RESOLUTION_MEDIUM = 2
875
+ MEDIA_RESOLUTION_HIGH = 3
876
+
877
+ class RoutingConfig(proto.Message):
878
+ r"""The configuration for routing the request to a specific
879
+ model.
880
+
881
+ This message has `oneof`_ fields (mutually exclusive fields).
882
+ For each oneof, at most one member field can be set at the same time.
883
+ Setting any member of the oneof automatically clears all other
884
+ members.
885
+
886
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
887
+
888
+ Attributes:
889
+ auto_mode (google.cloud.aiplatform_v1.types.GenerationConfig.RoutingConfig.AutoRoutingMode):
890
+ Automated routing.
891
+
892
+ This field is a member of `oneof`_ ``routing_config``.
893
+ manual_mode (google.cloud.aiplatform_v1.types.GenerationConfig.RoutingConfig.ManualRoutingMode):
894
+ Manual routing.
895
+
896
+ This field is a member of `oneof`_ ``routing_config``.
897
+ """
898
+
899
+ class AutoRoutingMode(proto.Message):
900
+ r"""When automated routing is specified, the routing will be
901
+ determined by the pretrained routing model and customer provided
902
+ model routing preference.
903
+
904
+
905
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
906
+
907
+ Attributes:
908
+ model_routing_preference (google.cloud.aiplatform_v1.types.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference):
909
+ The model routing preference.
910
+
911
+ This field is a member of `oneof`_ ``_model_routing_preference``.
912
+ """
913
+
914
+ class ModelRoutingPreference(proto.Enum):
915
+ r"""The model routing preference.
916
+
917
+ Values:
918
+ UNKNOWN (0):
919
+ Unspecified model routing preference.
920
+ PRIORITIZE_QUALITY (1):
921
+ Prefer higher quality over low cost.
922
+ BALANCED (2):
923
+ Balanced model routing preference.
924
+ PRIORITIZE_COST (3):
925
+ Prefer lower cost over higher quality.
926
+ """
927
+
928
+ UNKNOWN = 0
929
+ PRIORITIZE_QUALITY = 1
930
+ BALANCED = 2
931
+ PRIORITIZE_COST = 3
932
+
933
+ model_routing_preference: (
934
+ "GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference"
935
+ ) = proto.Field(
936
+ proto.ENUM,
937
+ number=1,
938
+ optional=True,
939
+ enum="GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference",
940
+ )
941
+
942
+ class ManualRoutingMode(proto.Message):
943
+ r"""When manual routing is set, the specified model will be used
944
+ directly.
945
+
946
+
947
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
948
+
949
+ Attributes:
950
+ model_name (str):
951
+ The model name to use. Only the public LLM
952
+ models are accepted. e.g. 'gemini-1.5-pro-001'.
953
+
954
+ This field is a member of `oneof`_ ``_model_name``.
955
+ """
956
+
957
+ model_name: str = proto.Field(
958
+ proto.STRING,
959
+ number=1,
960
+ optional=True,
961
+ )
962
+
963
+ auto_mode: "GenerationConfig.RoutingConfig.AutoRoutingMode" = proto.Field(
964
+ proto.MESSAGE,
965
+ number=1,
966
+ oneof="routing_config",
967
+ message="GenerationConfig.RoutingConfig.AutoRoutingMode",
968
+ )
969
+ manual_mode: "GenerationConfig.RoutingConfig.ManualRoutingMode" = proto.Field(
970
+ proto.MESSAGE,
971
+ number=2,
972
+ oneof="routing_config",
973
+ message="GenerationConfig.RoutingConfig.ManualRoutingMode",
974
+ )
975
+
976
+ class ThinkingConfig(proto.Message):
977
+ r"""Config for thinking features.
978
+
979
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
980
+
981
+ Attributes:
982
+ include_thoughts (bool):
983
+ Indicates whether to include thoughts in the
984
+ response. If true, thoughts are returned only
985
+ when available.
986
+
987
+ This field is a member of `oneof`_ ``_include_thoughts``.
988
+ thinking_budget (int):
989
+ Optional. Indicates the thinking budget in tokens. This is
990
+ only applied when enable_thinking is true.
991
+
992
+ This field is a member of `oneof`_ ``_thinking_budget``.
993
+ thinking_level (google.cloud.aiplatform_v1.types.GenerationConfig.ThinkingConfig.ThinkingLevel):
994
+ Optional. The number of thoughts tokens that
995
+ the model should generate.
996
+
997
+ This field is a member of `oneof`_ ``_thinking_level``.
998
+ """
999
+
1000
+ class ThinkingLevel(proto.Enum):
1001
+ r"""The thinking level for the model.
1002
+
1003
+ Values:
1004
+ THINKING_LEVEL_UNSPECIFIED (0):
1005
+ Unspecified thinking level.
1006
+ LOW (1):
1007
+ Low thinking level.
1008
+ MEDIUM (2):
1009
+ Medium thinking level.
1010
+ HIGH (3):
1011
+ High thinking level.
1012
+ MINIMAL (4):
1013
+ MINIMAL thinking level.
1014
+ """
1015
+
1016
+ THINKING_LEVEL_UNSPECIFIED = 0
1017
+ LOW = 1
1018
+ MEDIUM = 2
1019
+ HIGH = 3
1020
+ MINIMAL = 4
1021
+
1022
+ include_thoughts: bool = proto.Field(
1023
+ proto.BOOL,
1024
+ number=1,
1025
+ optional=True,
1026
+ )
1027
+ thinking_budget: int = proto.Field(
1028
+ proto.INT32,
1029
+ number=3,
1030
+ optional=True,
1031
+ )
1032
+ thinking_level: "GenerationConfig.ThinkingConfig.ThinkingLevel" = proto.Field(
1033
+ proto.ENUM,
1034
+ number=4,
1035
+ optional=True,
1036
+ enum="GenerationConfig.ThinkingConfig.ThinkingLevel",
1037
+ )
1038
+
1039
+ temperature: float = proto.Field(
1040
+ proto.FLOAT,
1041
+ number=1,
1042
+ optional=True,
1043
+ )
1044
+ top_p: float = proto.Field(
1045
+ proto.FLOAT,
1046
+ number=2,
1047
+ optional=True,
1048
+ )
1049
+ top_k: float = proto.Field(
1050
+ proto.FLOAT,
1051
+ number=3,
1052
+ optional=True,
1053
+ )
1054
+ candidate_count: int = proto.Field(
1055
+ proto.INT32,
1056
+ number=4,
1057
+ optional=True,
1058
+ )
1059
+ max_output_tokens: int = proto.Field(
1060
+ proto.INT32,
1061
+ number=5,
1062
+ optional=True,
1063
+ )
1064
+ stop_sequences: MutableSequence[str] = proto.RepeatedField(
1065
+ proto.STRING,
1066
+ number=6,
1067
+ )
1068
+ response_logprobs: bool = proto.Field(
1069
+ proto.BOOL,
1070
+ number=18,
1071
+ optional=True,
1072
+ )
1073
+ logprobs: int = proto.Field(
1074
+ proto.INT32,
1075
+ number=7,
1076
+ optional=True,
1077
+ )
1078
+ presence_penalty: float = proto.Field(
1079
+ proto.FLOAT,
1080
+ number=8,
1081
+ optional=True,
1082
+ )
1083
+ frequency_penalty: float = proto.Field(
1084
+ proto.FLOAT,
1085
+ number=9,
1086
+ optional=True,
1087
+ )
1088
+ seed: int = proto.Field(
1089
+ proto.INT32,
1090
+ number=12,
1091
+ optional=True,
1092
+ )
1093
+ response_mime_type: str = proto.Field(
1094
+ proto.STRING,
1095
+ number=13,
1096
+ )
1097
+ response_schema: openapi.Schema = proto.Field(
1098
+ proto.MESSAGE,
1099
+ number=16,
1100
+ optional=True,
1101
+ message=openapi.Schema,
1102
+ )
1103
+ response_json_schema: struct_pb2.Value = proto.Field(
1104
+ proto.MESSAGE,
1105
+ number=28,
1106
+ optional=True,
1107
+ message=struct_pb2.Value,
1108
+ )
1109
+ routing_config: RoutingConfig = proto.Field(
1110
+ proto.MESSAGE,
1111
+ number=17,
1112
+ optional=True,
1113
+ message=RoutingConfig,
1114
+ )
1115
+ audio_timestamp: bool = proto.Field(
1116
+ proto.BOOL,
1117
+ number=20,
1118
+ optional=True,
1119
+ )
1120
+ response_modalities: MutableSequence[Modality] = proto.RepeatedField(
1121
+ proto.ENUM,
1122
+ number=21,
1123
+ enum=Modality,
1124
+ )
1125
+ media_resolution: MediaResolution = proto.Field(
1126
+ proto.ENUM,
1127
+ number=22,
1128
+ optional=True,
1129
+ enum=MediaResolution,
1130
+ )
1131
+ speech_config: "SpeechConfig" = proto.Field(
1132
+ proto.MESSAGE,
1133
+ number=23,
1134
+ optional=True,
1135
+ message="SpeechConfig",
1136
+ )
1137
+ thinking_config: ThinkingConfig = proto.Field(
1138
+ proto.MESSAGE,
1139
+ number=25,
1140
+ message=ThinkingConfig,
1141
+ )
1142
+ image_config: "ImageConfig" = proto.Field(
1143
+ proto.MESSAGE,
1144
+ number=30,
1145
+ optional=True,
1146
+ message="ImageConfig",
1147
+ )
1148
+
1149
+
1150
+ class SafetySetting(proto.Message):
1151
+ r"""Safety settings.
1152
+
1153
+ Attributes:
1154
+ category (google.cloud.aiplatform_v1.types.HarmCategory):
1155
+ Required. Harm category.
1156
+ threshold (google.cloud.aiplatform_v1.types.SafetySetting.HarmBlockThreshold):
1157
+ Required. The harm block threshold.
1158
+ method (google.cloud.aiplatform_v1.types.SafetySetting.HarmBlockMethod):
1159
+ Optional. Specify if the threshold is used
1160
+ for probability or severity score. If not
1161
+ specified, the threshold is used for probability
1162
+ score.
1163
+ """
1164
+
1165
+ class HarmBlockThreshold(proto.Enum):
1166
+ r"""Probability based thresholds levels for blocking.
1167
+
1168
+ Values:
1169
+ HARM_BLOCK_THRESHOLD_UNSPECIFIED (0):
1170
+ Unspecified harm block threshold.
1171
+ BLOCK_LOW_AND_ABOVE (1):
1172
+ Block low threshold and above (i.e. block
1173
+ more).
1174
+ BLOCK_MEDIUM_AND_ABOVE (2):
1175
+ Block medium threshold and above.
1176
+ BLOCK_ONLY_HIGH (3):
1177
+ Block only high threshold (i.e. block less).
1178
+ BLOCK_NONE (4):
1179
+ Block none.
1180
+ OFF (5):
1181
+ Turn off the safety filter.
1182
+ """
1183
+
1184
+ HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0
1185
+ BLOCK_LOW_AND_ABOVE = 1
1186
+ BLOCK_MEDIUM_AND_ABOVE = 2
1187
+ BLOCK_ONLY_HIGH = 3
1188
+ BLOCK_NONE = 4
1189
+ OFF = 5
1190
+
1191
+ class HarmBlockMethod(proto.Enum):
1192
+ r"""Probability vs severity.
1193
+
1194
+ Values:
1195
+ HARM_BLOCK_METHOD_UNSPECIFIED (0):
1196
+ The harm block method is unspecified.
1197
+ SEVERITY (1):
1198
+ The harm block method uses both probability
1199
+ and severity scores.
1200
+ PROBABILITY (2):
1201
+ The harm block method uses the probability
1202
+ score.
1203
+ """
1204
+
1205
+ HARM_BLOCK_METHOD_UNSPECIFIED = 0
1206
+ SEVERITY = 1
1207
+ PROBABILITY = 2
1208
+
1209
+ category: "HarmCategory" = proto.Field(
1210
+ proto.ENUM,
1211
+ number=1,
1212
+ enum="HarmCategory",
1213
+ )
1214
+ threshold: HarmBlockThreshold = proto.Field(
1215
+ proto.ENUM,
1216
+ number=2,
1217
+ enum=HarmBlockThreshold,
1218
+ )
1219
+ method: HarmBlockMethod = proto.Field(
1220
+ proto.ENUM,
1221
+ number=4,
1222
+ enum=HarmBlockMethod,
1223
+ )
1224
+
1225
+
1226
+ class SafetyRating(proto.Message):
1227
+ r"""Safety rating corresponding to the generated content.
1228
+
1229
+ Attributes:
1230
+ category (google.cloud.aiplatform_v1.types.HarmCategory):
1231
+ Output only. Harm category.
1232
+ probability (google.cloud.aiplatform_v1.types.SafetyRating.HarmProbability):
1233
+ Output only. Harm probability levels in the
1234
+ content.
1235
+ probability_score (float):
1236
+ Output only. Harm probability score.
1237
+ severity (google.cloud.aiplatform_v1.types.SafetyRating.HarmSeverity):
1238
+ Output only. Harm severity levels in the
1239
+ content.
1240
+ severity_score (float):
1241
+ Output only. Harm severity score.
1242
+ blocked (bool):
1243
+ Output only. Indicates whether the content
1244
+ was filtered out because of this rating.
1245
+ """
1246
+
1247
+ class HarmProbability(proto.Enum):
1248
+ r"""Harm probability levels in the content.
1249
+
1250
+ Values:
1251
+ HARM_PROBABILITY_UNSPECIFIED (0):
1252
+ Harm probability unspecified.
1253
+ NEGLIGIBLE (1):
1254
+ Negligible level of harm.
1255
+ LOW (2):
1256
+ Low level of harm.
1257
+ MEDIUM (3):
1258
+ Medium level of harm.
1259
+ HIGH (4):
1260
+ High level of harm.
1261
+ """
1262
+
1263
+ HARM_PROBABILITY_UNSPECIFIED = 0
1264
+ NEGLIGIBLE = 1
1265
+ LOW = 2
1266
+ MEDIUM = 3
1267
+ HIGH = 4
1268
+
1269
+ class HarmSeverity(proto.Enum):
1270
+ r"""Harm severity levels.
1271
+
1272
+ Values:
1273
+ HARM_SEVERITY_UNSPECIFIED (0):
1274
+ Harm severity unspecified.
1275
+ HARM_SEVERITY_NEGLIGIBLE (1):
1276
+ Negligible level of harm severity.
1277
+ HARM_SEVERITY_LOW (2):
1278
+ Low level of harm severity.
1279
+ HARM_SEVERITY_MEDIUM (3):
1280
+ Medium level of harm severity.
1281
+ HARM_SEVERITY_HIGH (4):
1282
+ High level of harm severity.
1283
+ """
1284
+
1285
+ HARM_SEVERITY_UNSPECIFIED = 0
1286
+ HARM_SEVERITY_NEGLIGIBLE = 1
1287
+ HARM_SEVERITY_LOW = 2
1288
+ HARM_SEVERITY_MEDIUM = 3
1289
+ HARM_SEVERITY_HIGH = 4
1290
+
1291
+ category: "HarmCategory" = proto.Field(
1292
+ proto.ENUM,
1293
+ number=1,
1294
+ enum="HarmCategory",
1295
+ )
1296
+ probability: HarmProbability = proto.Field(
1297
+ proto.ENUM,
1298
+ number=2,
1299
+ enum=HarmProbability,
1300
+ )
1301
+ probability_score: float = proto.Field(
1302
+ proto.FLOAT,
1303
+ number=5,
1304
+ )
1305
+ severity: HarmSeverity = proto.Field(
1306
+ proto.ENUM,
1307
+ number=6,
1308
+ enum=HarmSeverity,
1309
+ )
1310
+ severity_score: float = proto.Field(
1311
+ proto.FLOAT,
1312
+ number=7,
1313
+ )
1314
+ blocked: bool = proto.Field(
1315
+ proto.BOOL,
1316
+ number=3,
1317
+ )
1318
+
1319
+
1320
+ class CitationMetadata(proto.Message):
1321
+ r"""A collection of source attributions for a piece of content.
1322
+
1323
+ Attributes:
1324
+ citations (MutableSequence[google.cloud.aiplatform_v1.types.Citation]):
1325
+ Output only. List of citations.
1326
+ """
1327
+
1328
+ citations: MutableSequence["Citation"] = proto.RepeatedField(
1329
+ proto.MESSAGE,
1330
+ number=1,
1331
+ message="Citation",
1332
+ )
1333
+
1334
+
1335
+ class Citation(proto.Message):
1336
+ r"""Source attributions for content.
1337
+
1338
+ Attributes:
1339
+ start_index (int):
1340
+ Output only. Start index into the content.
1341
+ end_index (int):
1342
+ Output only. End index into the content.
1343
+ uri (str):
1344
+ Output only. Url reference of the
1345
+ attribution.
1346
+ title (str):
1347
+ Output only. Title of the attribution.
1348
+ license_ (str):
1349
+ Output only. License of the attribution.
1350
+ publication_date (google.type.date_pb2.Date):
1351
+ Output only. Publication date of the
1352
+ attribution.
1353
+ """
1354
+
1355
+ start_index: int = proto.Field(
1356
+ proto.INT32,
1357
+ number=1,
1358
+ )
1359
+ end_index: int = proto.Field(
1360
+ proto.INT32,
1361
+ number=2,
1362
+ )
1363
+ uri: str = proto.Field(
1364
+ proto.STRING,
1365
+ number=3,
1366
+ )
1367
+ title: str = proto.Field(
1368
+ proto.STRING,
1369
+ number=4,
1370
+ )
1371
+ license_: str = proto.Field(
1372
+ proto.STRING,
1373
+ number=5,
1374
+ )
1375
+ publication_date: date_pb2.Date = proto.Field(
1376
+ proto.MESSAGE,
1377
+ number=6,
1378
+ message=date_pb2.Date,
1379
+ )
1380
+
1381
+
1382
+ class Candidate(proto.Message):
1383
+ r"""A response candidate generated from the model.
1384
+
1385
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1386
+
1387
+ Attributes:
1388
+ index (int):
1389
+ Output only. Index of the candidate.
1390
+ content (google.cloud.aiplatform_v1.types.Content):
1391
+ Output only. Content parts of the candidate.
1392
+ score (float):
1393
+ Output only. Confidence score of the
1394
+ candidate.
1395
+ avg_logprobs (float):
1396
+ Output only. Average log probability score of
1397
+ the candidate.
1398
+ logprobs_result (google.cloud.aiplatform_v1.types.LogprobsResult):
1399
+ Output only. Log-likelihood scores for the
1400
+ response tokens and top tokens
1401
+ finish_reason (google.cloud.aiplatform_v1.types.Candidate.FinishReason):
1402
+ Output only. The reason why the model stopped
1403
+ generating tokens. If empty, the model has not
1404
+ stopped generating the tokens.
1405
+ safety_ratings (MutableSequence[google.cloud.aiplatform_v1.types.SafetyRating]):
1406
+ Output only. List of ratings for the safety
1407
+ of a response candidate.
1408
+ There is at most one rating per category.
1409
+ finish_message (str):
1410
+ Output only. Describes the reason the mode stopped
1411
+ generating tokens in more detail. This is only filled when
1412
+ ``finish_reason`` is set.
1413
+
1414
+ This field is a member of `oneof`_ ``_finish_message``.
1415
+ citation_metadata (google.cloud.aiplatform_v1.types.CitationMetadata):
1416
+ Output only. Source attribution of the
1417
+ generated content.
1418
+ grounding_metadata (google.cloud.aiplatform_v1.types.GroundingMetadata):
1419
+ Output only. Metadata specifies sources used
1420
+ to ground generated content.
1421
+ url_context_metadata (google.cloud.aiplatform_v1.types.UrlContextMetadata):
1422
+ Output only. Metadata related to url context
1423
+ retrieval tool.
1424
+ """
1425
+
1426
+ class FinishReason(proto.Enum):
1427
+ r"""The reason why the model stopped generating tokens.
1428
+ If empty, the model has not stopped generating the tokens.
1429
+
1430
+ Values:
1431
+ FINISH_REASON_UNSPECIFIED (0):
1432
+ The finish reason is unspecified.
1433
+ STOP (1):
1434
+ Token generation reached a natural stopping
1435
+ point or a configured stop sequence.
1436
+ MAX_TOKENS (2):
1437
+ Token generation reached the configured
1438
+ maximum output tokens.
1439
+ SAFETY (3):
1440
+ Token generation stopped because the content potentially
1441
+ contains safety violations. NOTE: When streaming,
1442
+ [content][google.cloud.aiplatform.v1.Candidate.content] is
1443
+ empty if content filters blocks the output.
1444
+ RECITATION (4):
1445
+ Token generation stopped because the content
1446
+ potentially contains copyright violations.
1447
+ OTHER (5):
1448
+ All other reasons that stopped the token
1449
+ generation.
1450
+ BLOCKLIST (6):
1451
+ Token generation stopped because the content
1452
+ contains forbidden terms.
1453
+ PROHIBITED_CONTENT (7):
1454
+ Token generation stopped for potentially
1455
+ containing prohibited content.
1456
+ SPII (8):
1457
+ Token generation stopped because the content
1458
+ potentially contains Sensitive Personally
1459
+ Identifiable Information (SPII).
1460
+ MALFORMED_FUNCTION_CALL (9):
1461
+ The function call generated by the model is
1462
+ invalid.
1463
+ MODEL_ARMOR (10):
1464
+ The model response was blocked by Model
1465
+ Armor.
1466
+ """
1467
+
1468
+ FINISH_REASON_UNSPECIFIED = 0
1469
+ STOP = 1
1470
+ MAX_TOKENS = 2
1471
+ SAFETY = 3
1472
+ RECITATION = 4
1473
+ OTHER = 5
1474
+ BLOCKLIST = 6
1475
+ PROHIBITED_CONTENT = 7
1476
+ SPII = 8
1477
+ MALFORMED_FUNCTION_CALL = 9
1478
+ MODEL_ARMOR = 10
1479
+
1480
+ index: int = proto.Field(
1481
+ proto.INT32,
1482
+ number=1,
1483
+ )
1484
+ content: "Content" = proto.Field(
1485
+ proto.MESSAGE,
1486
+ number=2,
1487
+ message="Content",
1488
+ )
1489
+ score: float = proto.Field(
1490
+ proto.DOUBLE,
1491
+ number=8,
1492
+ )
1493
+ avg_logprobs: float = proto.Field(
1494
+ proto.DOUBLE,
1495
+ number=9,
1496
+ )
1497
+ logprobs_result: "LogprobsResult" = proto.Field(
1498
+ proto.MESSAGE,
1499
+ number=10,
1500
+ message="LogprobsResult",
1501
+ )
1502
+ finish_reason: FinishReason = proto.Field(
1503
+ proto.ENUM,
1504
+ number=3,
1505
+ enum=FinishReason,
1506
+ )
1507
+ safety_ratings: MutableSequence["SafetyRating"] = proto.RepeatedField(
1508
+ proto.MESSAGE,
1509
+ number=4,
1510
+ message="SafetyRating",
1511
+ )
1512
+ finish_message: str = proto.Field(
1513
+ proto.STRING,
1514
+ number=5,
1515
+ optional=True,
1516
+ )
1517
+ citation_metadata: "CitationMetadata" = proto.Field(
1518
+ proto.MESSAGE,
1519
+ number=6,
1520
+ message="CitationMetadata",
1521
+ )
1522
+ grounding_metadata: "GroundingMetadata" = proto.Field(
1523
+ proto.MESSAGE,
1524
+ number=7,
1525
+ message="GroundingMetadata",
1526
+ )
1527
+ url_context_metadata: "UrlContextMetadata" = proto.Field(
1528
+ proto.MESSAGE,
1529
+ number=11,
1530
+ message="UrlContextMetadata",
1531
+ )
1532
+
1533
+
1534
+ class UrlContextMetadata(proto.Message):
1535
+ r"""Metadata related to url context retrieval tool.
1536
+
1537
+ Attributes:
1538
+ url_metadata (MutableSequence[google.cloud.aiplatform_v1.types.UrlMetadata]):
1539
+ Output only. List of url context.
1540
+ """
1541
+
1542
+ url_metadata: MutableSequence["UrlMetadata"] = proto.RepeatedField(
1543
+ proto.MESSAGE,
1544
+ number=1,
1545
+ message="UrlMetadata",
1546
+ )
1547
+
1548
+
1549
+ class UrlMetadata(proto.Message):
1550
+ r"""Context of the a single url retrieval.
1551
+
1552
+ Attributes:
1553
+ retrieved_url (str):
1554
+ Retrieved url by the tool.
1555
+ url_retrieval_status (google.cloud.aiplatform_v1.types.UrlMetadata.UrlRetrievalStatus):
1556
+ Status of the url retrieval.
1557
+ """
1558
+
1559
+ class UrlRetrievalStatus(proto.Enum):
1560
+ r"""Status of the url retrieval.
1561
+
1562
+ Values:
1563
+ URL_RETRIEVAL_STATUS_UNSPECIFIED (0):
1564
+ Default value. This value is unused.
1565
+ URL_RETRIEVAL_STATUS_SUCCESS (1):
1566
+ Url retrieval is successful.
1567
+ URL_RETRIEVAL_STATUS_ERROR (2):
1568
+ Url retrieval is failed due to error.
1569
+ """
1570
+
1571
+ URL_RETRIEVAL_STATUS_UNSPECIFIED = 0
1572
+ URL_RETRIEVAL_STATUS_SUCCESS = 1
1573
+ URL_RETRIEVAL_STATUS_ERROR = 2
1574
+
1575
+ retrieved_url: str = proto.Field(
1576
+ proto.STRING,
1577
+ number=1,
1578
+ )
1579
+ url_retrieval_status: UrlRetrievalStatus = proto.Field(
1580
+ proto.ENUM,
1581
+ number=2,
1582
+ enum=UrlRetrievalStatus,
1583
+ )
1584
+
1585
+
1586
+ class LogprobsResult(proto.Message):
1587
+ r"""Logprobs Result
1588
+
1589
+ Attributes:
1590
+ top_candidates (MutableSequence[google.cloud.aiplatform_v1.types.LogprobsResult.TopCandidates]):
1591
+ Length = total number of decoding steps.
1592
+ chosen_candidates (MutableSequence[google.cloud.aiplatform_v1.types.LogprobsResult.Candidate]):
1593
+ Length = total number of decoding steps. The chosen
1594
+ candidates may or may not be in top_candidates.
1595
+ """
1596
+
1597
+ class Candidate(proto.Message):
1598
+ r"""Candidate for the logprobs token and score.
1599
+
1600
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1601
+
1602
+ Attributes:
1603
+ token (str):
1604
+ The candidate’s token string value.
1605
+
1606
+ This field is a member of `oneof`_ ``_token``.
1607
+ token_id (int):
1608
+ The candidate’s token id value.
1609
+
1610
+ This field is a member of `oneof`_ ``_token_id``.
1611
+ log_probability (float):
1612
+ The candidate's log probability.
1613
+
1614
+ This field is a member of `oneof`_ ``_log_probability``.
1615
+ """
1616
+
1617
+ token: str = proto.Field(
1618
+ proto.STRING,
1619
+ number=1,
1620
+ optional=True,
1621
+ )
1622
+ token_id: int = proto.Field(
1623
+ proto.INT32,
1624
+ number=3,
1625
+ optional=True,
1626
+ )
1627
+ log_probability: float = proto.Field(
1628
+ proto.FLOAT,
1629
+ number=2,
1630
+ optional=True,
1631
+ )
1632
+
1633
+ class TopCandidates(proto.Message):
1634
+ r"""Candidates with top log probabilities at each decoding step.
1635
+
1636
+ Attributes:
1637
+ candidates (MutableSequence[google.cloud.aiplatform_v1.types.LogprobsResult.Candidate]):
1638
+ Sorted by log probability in descending
1639
+ order.
1640
+ """
1641
+
1642
+ candidates: MutableSequence["LogprobsResult.Candidate"] = proto.RepeatedField(
1643
+ proto.MESSAGE,
1644
+ number=1,
1645
+ message="LogprobsResult.Candidate",
1646
+ )
1647
+
1648
+ top_candidates: MutableSequence[TopCandidates] = proto.RepeatedField(
1649
+ proto.MESSAGE,
1650
+ number=1,
1651
+ message=TopCandidates,
1652
+ )
1653
+ chosen_candidates: MutableSequence[Candidate] = proto.RepeatedField(
1654
+ proto.MESSAGE,
1655
+ number=2,
1656
+ message=Candidate,
1657
+ )
1658
+
1659
+
1660
+ class Segment(proto.Message):
1661
+ r"""Segment of the content.
1662
+
1663
+ Attributes:
1664
+ part_index (int):
1665
+ Output only. The index of a Part object
1666
+ within its parent Content object.
1667
+ start_index (int):
1668
+ Output only. Start index in the given Part,
1669
+ measured in bytes. Offset from the start of the
1670
+ Part, inclusive, starting at zero.
1671
+ end_index (int):
1672
+ Output only. End index in the given Part,
1673
+ measured in bytes. Offset from the start of the
1674
+ Part, exclusive, starting at zero.
1675
+ text (str):
1676
+ Output only. The text corresponding to the
1677
+ segment from the response.
1678
+ """
1679
+
1680
+ part_index: int = proto.Field(
1681
+ proto.INT32,
1682
+ number=1,
1683
+ )
1684
+ start_index: int = proto.Field(
1685
+ proto.INT32,
1686
+ number=2,
1687
+ )
1688
+ end_index: int = proto.Field(
1689
+ proto.INT32,
1690
+ number=3,
1691
+ )
1692
+ text: str = proto.Field(
1693
+ proto.STRING,
1694
+ number=4,
1695
+ )
1696
+
1697
+
1698
+ class GroundingChunk(proto.Message):
1699
+ r"""Grounding chunk.
1700
+
1701
+ This message has `oneof`_ fields (mutually exclusive fields).
1702
+ For each oneof, at most one member field can be set at the same time.
1703
+ Setting any member of the oneof automatically clears all other
1704
+ members.
1705
+
1706
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1707
+
1708
+ Attributes:
1709
+ web (google.cloud.aiplatform_v1.types.GroundingChunk.Web):
1710
+ Grounding chunk from the web.
1711
+
1712
+ This field is a member of `oneof`_ ``chunk_type``.
1713
+ retrieved_context (google.cloud.aiplatform_v1.types.GroundingChunk.RetrievedContext):
1714
+ Grounding chunk from context retrieved by the
1715
+ retrieval tools.
1716
+
1717
+ This field is a member of `oneof`_ ``chunk_type``.
1718
+ maps (google.cloud.aiplatform_v1.types.GroundingChunk.Maps):
1719
+ Grounding chunk from Google Maps.
1720
+
1721
+ This field is a member of `oneof`_ ``chunk_type``.
1722
+ """
1723
+
1724
+ class Web(proto.Message):
1725
+ r"""Chunk from the web.
1726
+
1727
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1728
+
1729
+ Attributes:
1730
+ uri (str):
1731
+ URI reference of the chunk.
1732
+
1733
+ This field is a member of `oneof`_ ``_uri``.
1734
+ title (str):
1735
+ Title of the chunk.
1736
+
1737
+ This field is a member of `oneof`_ ``_title``.
1738
+ """
1739
+
1740
+ uri: str = proto.Field(
1741
+ proto.STRING,
1742
+ number=1,
1743
+ optional=True,
1744
+ )
1745
+ title: str = proto.Field(
1746
+ proto.STRING,
1747
+ number=2,
1748
+ optional=True,
1749
+ )
1750
+
1751
+ class RetrievedContext(proto.Message):
1752
+ r"""Chunk from context retrieved by the retrieval tools.
1753
+
1754
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1755
+
1756
+ Attributes:
1757
+ rag_chunk (google.cloud.aiplatform_v1.types.RagChunk):
1758
+ Additional context for the RAG retrieval
1759
+ result. This is only populated when using the
1760
+ RAG retrieval tool.
1761
+
1762
+ This field is a member of `oneof`_ ``context_details``.
1763
+ uri (str):
1764
+ URI reference of the attribution.
1765
+
1766
+ This field is a member of `oneof`_ ``_uri``.
1767
+ title (str):
1768
+ Title of the attribution.
1769
+
1770
+ This field is a member of `oneof`_ ``_title``.
1771
+ text (str):
1772
+ Text of the attribution.
1773
+
1774
+ This field is a member of `oneof`_ ``_text``.
1775
+ document_name (str):
1776
+ Output only. The full document name for the
1777
+ referenced Vertex AI Search document.
1778
+
1779
+ This field is a member of `oneof`_ ``_document_name``.
1780
+ """
1781
+
1782
+ rag_chunk: vertex_rag_data.RagChunk = proto.Field(
1783
+ proto.MESSAGE,
1784
+ number=4,
1785
+ oneof="context_details",
1786
+ message=vertex_rag_data.RagChunk,
1787
+ )
1788
+ uri: str = proto.Field(
1789
+ proto.STRING,
1790
+ number=1,
1791
+ optional=True,
1792
+ )
1793
+ title: str = proto.Field(
1794
+ proto.STRING,
1795
+ number=2,
1796
+ optional=True,
1797
+ )
1798
+ text: str = proto.Field(
1799
+ proto.STRING,
1800
+ number=3,
1801
+ optional=True,
1802
+ )
1803
+ document_name: str = proto.Field(
1804
+ proto.STRING,
1805
+ number=6,
1806
+ optional=True,
1807
+ )
1808
+
1809
+ class Maps(proto.Message):
1810
+ r"""Chunk from Google Maps.
1811
+
1812
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1813
+
1814
+ Attributes:
1815
+ uri (str):
1816
+ URI reference of the chunk.
1817
+
1818
+ This field is a member of `oneof`_ ``_uri``.
1819
+ title (str):
1820
+ Title of the chunk.
1821
+
1822
+ This field is a member of `oneof`_ ``_title``.
1823
+ text (str):
1824
+ Text of the chunk.
1825
+
1826
+ This field is a member of `oneof`_ ``_text``.
1827
+ place_id (str):
1828
+ This Place's resource name, in ``places/{place_id}`` format.
1829
+ Can be used to look up the Place.
1830
+
1831
+ This field is a member of `oneof`_ ``_place_id``.
1832
+ place_answer_sources (google.cloud.aiplatform_v1.types.GroundingChunk.Maps.PlaceAnswerSources):
1833
+ Sources used to generate the place answer.
1834
+ This includes review snippets and photos that
1835
+ were used to generate the answer, as well as
1836
+ uris to flag content.
1837
+ """
1838
+
1839
+ class PlaceAnswerSources(proto.Message):
1840
+ r"""
1841
+
1842
+ Attributes:
1843
+ review_snippets (MutableSequence[google.cloud.aiplatform_v1.types.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet]):
1844
+ Snippets of reviews that are used to generate
1845
+ the answer.
1846
+ """
1847
+
1848
+ class ReviewSnippet(proto.Message):
1849
+ r"""Encapsulates a review snippet.
1850
+
1851
+ Attributes:
1852
+ review_id (str):
1853
+ Id of the review referencing the place.
1854
+ google_maps_uri (str):
1855
+ A link to show the review on Google Maps.
1856
+ title (str):
1857
+ Title of the review.
1858
+ """
1859
+
1860
+ review_id: str = proto.Field(
1861
+ proto.STRING,
1862
+ number=1,
1863
+ )
1864
+ google_maps_uri: str = proto.Field(
1865
+ proto.STRING,
1866
+ number=2,
1867
+ )
1868
+ title: str = proto.Field(
1869
+ proto.STRING,
1870
+ number=3,
1871
+ )
1872
+
1873
+ review_snippets: MutableSequence[
1874
+ "GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet"
1875
+ ] = proto.RepeatedField(
1876
+ proto.MESSAGE,
1877
+ number=1,
1878
+ message="GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet",
1879
+ )
1880
+
1881
+ uri: str = proto.Field(
1882
+ proto.STRING,
1883
+ number=1,
1884
+ optional=True,
1885
+ )
1886
+ title: str = proto.Field(
1887
+ proto.STRING,
1888
+ number=2,
1889
+ optional=True,
1890
+ )
1891
+ text: str = proto.Field(
1892
+ proto.STRING,
1893
+ number=3,
1894
+ optional=True,
1895
+ )
1896
+ place_id: str = proto.Field(
1897
+ proto.STRING,
1898
+ number=4,
1899
+ optional=True,
1900
+ )
1901
+ place_answer_sources: "GroundingChunk.Maps.PlaceAnswerSources" = proto.Field(
1902
+ proto.MESSAGE,
1903
+ number=5,
1904
+ message="GroundingChunk.Maps.PlaceAnswerSources",
1905
+ )
1906
+
1907
+ web: Web = proto.Field(
1908
+ proto.MESSAGE,
1909
+ number=1,
1910
+ oneof="chunk_type",
1911
+ message=Web,
1912
+ )
1913
+ retrieved_context: RetrievedContext = proto.Field(
1914
+ proto.MESSAGE,
1915
+ number=2,
1916
+ oneof="chunk_type",
1917
+ message=RetrievedContext,
1918
+ )
1919
+ maps: Maps = proto.Field(
1920
+ proto.MESSAGE,
1921
+ number=3,
1922
+ oneof="chunk_type",
1923
+ message=Maps,
1924
+ )
1925
+
1926
+
1927
+ class GroundingSupport(proto.Message):
1928
+ r"""Grounding support.
1929
+
1930
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1931
+
1932
+ Attributes:
1933
+ segment (google.cloud.aiplatform_v1.types.Segment):
1934
+ Segment of the content this support belongs
1935
+ to.
1936
+
1937
+ This field is a member of `oneof`_ ``_segment``.
1938
+ grounding_chunk_indices (MutableSequence[int]):
1939
+ A list of indices (into 'grounding_chunk') specifying the
1940
+ citations associated with the claim. For instance [1,3,4]
1941
+ means that grounding_chunk[1], grounding_chunk[3],
1942
+ grounding_chunk[4] are the retrieved content attributed to
1943
+ the claim.
1944
+ confidence_scores (MutableSequence[float]):
1945
+ Confidence score of the support references. Ranges from 0 to
1946
+ 1. 1 is the most confident. This list must have the same
1947
+ size as the grounding_chunk_indices.
1948
+ """
1949
+
1950
+ segment: "Segment" = proto.Field(
1951
+ proto.MESSAGE,
1952
+ number=1,
1953
+ optional=True,
1954
+ message="Segment",
1955
+ )
1956
+ grounding_chunk_indices: MutableSequence[int] = proto.RepeatedField(
1957
+ proto.INT32,
1958
+ number=2,
1959
+ )
1960
+ confidence_scores: MutableSequence[float] = proto.RepeatedField(
1961
+ proto.FLOAT,
1962
+ number=3,
1963
+ )
1964
+
1965
+
1966
+ class GroundingMetadata(proto.Message):
1967
+ r"""Metadata returned to client when grounding is enabled.
1968
+
1969
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1970
+
1971
+ Attributes:
1972
+ web_search_queries (MutableSequence[str]):
1973
+ Optional. Web search queries for the
1974
+ following-up web search.
1975
+ search_entry_point (google.cloud.aiplatform_v1.types.SearchEntryPoint):
1976
+ Optional. Google search entry for the
1977
+ following-up web searches.
1978
+
1979
+ This field is a member of `oneof`_ ``_search_entry_point``.
1980
+ grounding_chunks (MutableSequence[google.cloud.aiplatform_v1.types.GroundingChunk]):
1981
+ List of supporting references retrieved from
1982
+ specified grounding source.
1983
+ grounding_supports (MutableSequence[google.cloud.aiplatform_v1.types.GroundingSupport]):
1984
+ Optional. List of grounding support.
1985
+ retrieval_metadata (google.cloud.aiplatform_v1.types.RetrievalMetadata):
1986
+ Optional. Output only. Retrieval metadata.
1987
+
1988
+ This field is a member of `oneof`_ ``_retrieval_metadata``.
1989
+ google_maps_widget_context_token (str):
1990
+ Optional. Output only. Resource name of the
1991
+ Google Maps widget context token to be used with
1992
+ the PlacesContextElement widget to render
1993
+ contextual data. This is populated only for
1994
+ Google Maps grounding.
1995
+
1996
+ This field is a member of `oneof`_ ``_google_maps_widget_context_token``.
1997
+ source_flagging_uris (MutableSequence[google.cloud.aiplatform_v1.types.GroundingMetadata.SourceFlaggingUri]):
1998
+ List of source flagging uris. This is
1999
+ currently populated only for Google Maps
2000
+ grounding.
2001
+ """
2002
+
2003
+ class SourceFlaggingUri(proto.Message):
2004
+ r"""Source content flagging uri for a place or review. This is
2005
+ currently populated only for Google Maps grounding.
2006
+
2007
+ Attributes:
2008
+ source_id (str):
2009
+ Id of the place or review.
2010
+ flag_content_uri (str):
2011
+ A link where users can flag a problem with
2012
+ the source (place or review). (-- The link is
2013
+ generated by Google and it does not contain
2014
+ information from the user query. It may contain
2015
+ information of the content it is flagging, which
2016
+ can be used to identify places. --)
2017
+ """
2018
+
2019
+ source_id: str = proto.Field(
2020
+ proto.STRING,
2021
+ number=1,
2022
+ )
2023
+ flag_content_uri: str = proto.Field(
2024
+ proto.STRING,
2025
+ number=2,
2026
+ )
2027
+
2028
+ web_search_queries: MutableSequence[str] = proto.RepeatedField(
2029
+ proto.STRING,
2030
+ number=1,
2031
+ )
2032
+ search_entry_point: "SearchEntryPoint" = proto.Field(
2033
+ proto.MESSAGE,
2034
+ number=4,
2035
+ optional=True,
2036
+ message="SearchEntryPoint",
2037
+ )
2038
+ grounding_chunks: MutableSequence["GroundingChunk"] = proto.RepeatedField(
2039
+ proto.MESSAGE,
2040
+ number=5,
2041
+ message="GroundingChunk",
2042
+ )
2043
+ grounding_supports: MutableSequence["GroundingSupport"] = proto.RepeatedField(
2044
+ proto.MESSAGE,
2045
+ number=6,
2046
+ message="GroundingSupport",
2047
+ )
2048
+ retrieval_metadata: "RetrievalMetadata" = proto.Field(
2049
+ proto.MESSAGE,
2050
+ number=7,
2051
+ optional=True,
2052
+ message="RetrievalMetadata",
2053
+ )
2054
+ google_maps_widget_context_token: str = proto.Field(
2055
+ proto.STRING,
2056
+ number=8,
2057
+ optional=True,
2058
+ )
2059
+ source_flagging_uris: MutableSequence[SourceFlaggingUri] = proto.RepeatedField(
2060
+ proto.MESSAGE,
2061
+ number=9,
2062
+ message=SourceFlaggingUri,
2063
+ )
2064
+
2065
+
2066
+ class SearchEntryPoint(proto.Message):
2067
+ r"""Google search entry point.
2068
+
2069
+ Attributes:
2070
+ rendered_content (str):
2071
+ Optional. Web content snippet that can be
2072
+ embedded in a web page or an app webview.
2073
+ sdk_blob (bytes):
2074
+ Optional. Base64 encoded JSON representing
2075
+ array of <search term, search url> tuple.
2076
+ """
2077
+
2078
+ rendered_content: str = proto.Field(
2079
+ proto.STRING,
2080
+ number=1,
2081
+ )
2082
+ sdk_blob: bytes = proto.Field(
2083
+ proto.BYTES,
2084
+ number=2,
2085
+ )
2086
+
2087
+
2088
+ class RetrievalMetadata(proto.Message):
2089
+ r"""Metadata related to retrieval in the grounding flow.
2090
+
2091
+ Attributes:
2092
+ google_search_dynamic_retrieval_score (float):
2093
+ Optional. Score indicating how likely information from
2094
+ Google Search could help answer the prompt. The score is in
2095
+ the range ``[0, 1]``, where 0 is the least likely and 1 is
2096
+ the most likely. This score is only populated when Google
2097
+ Search grounding and dynamic retrieval is enabled. It will
2098
+ be compared to the threshold to determine whether to trigger
2099
+ Google Search.
2100
+ """
2101
+
2102
+ google_search_dynamic_retrieval_score: float = proto.Field(
2103
+ proto.FLOAT,
2104
+ number=2,
2105
+ )
2106
+
2107
+
2108
+ class ModelArmorConfig(proto.Message):
2109
+ r"""Configuration for Model Armor integrations of prompt and
2110
+ responses.
2111
+
2112
+ Attributes:
2113
+ prompt_template_name (str):
2114
+ Optional. The name of the Model Armor
2115
+ template to use for prompt sanitization.
2116
+ response_template_name (str):
2117
+ Optional. The name of the Model Armor
2118
+ template to use for response sanitization.
2119
+ """
2120
+
2121
+ prompt_template_name: str = proto.Field(
2122
+ proto.STRING,
2123
+ number=1,
2124
+ )
2125
+ response_template_name: str = proto.Field(
2126
+ proto.STRING,
2127
+ number=2,
2128
+ )
2129
+
2130
+
2131
+ class ModalityTokenCount(proto.Message):
2132
+ r"""Represents token counting info for a single modality.
2133
+
2134
+ Attributes:
2135
+ modality (google.cloud.aiplatform_v1.types.Modality):
2136
+ The modality associated with this token
2137
+ count.
2138
+ token_count (int):
2139
+ Number of tokens.
2140
+ """
2141
+
2142
+ modality: "Modality" = proto.Field(
2143
+ proto.ENUM,
2144
+ number=1,
2145
+ enum="Modality",
2146
+ )
2147
+ token_count: int = proto.Field(
2148
+ proto.INT32,
2149
+ number=2,
2150
+ )
2151
+
2152
+
2153
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/custom_job.py ADDED
@@ -0,0 +1,644 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
23
+ from google.cloud.aiplatform_v1.types import env_var
24
+ from google.cloud.aiplatform_v1.types import io
25
+ from google.cloud.aiplatform_v1.types import job_state
26
+ from google.cloud.aiplatform_v1.types import machine_resources
27
+ from google.cloud.aiplatform_v1.types import service_networking
28
+ import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
29
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
30
+ import google.rpc.status_pb2 as status_pb2 # type: ignore
31
+
32
+
33
+ __protobuf__ = proto.module(
34
+ package="google.cloud.aiplatform.v1",
35
+ manifest={
36
+ "CustomJob",
37
+ "CustomJobSpec",
38
+ "WorkerPoolSpec",
39
+ "ContainerSpec",
40
+ "PythonPackageSpec",
41
+ "Scheduling",
42
+ },
43
+ )
44
+
45
+
46
+ class CustomJob(proto.Message):
47
+ r"""Represents a job that runs custom workloads such as a Docker
48
+ container or a Python package. A CustomJob can have multiple
49
+ worker pools and each worker pool can have its own machine and
50
+ input spec. A CustomJob will be cleaned up once the job enters
51
+ terminal state (failed or succeeded).
52
+
53
+ Attributes:
54
+ name (str):
55
+ Output only. Resource name of a CustomJob.
56
+ display_name (str):
57
+ Required. The display name of the CustomJob.
58
+ The name can be up to 128 characters long and
59
+ can consist of any UTF-8 characters.
60
+ job_spec (google.cloud.aiplatform_v1.types.CustomJobSpec):
61
+ Required. Job spec.
62
+ state (google.cloud.aiplatform_v1.types.JobState):
63
+ Output only. The detailed state of the job.
64
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
65
+ Output only. Time when the CustomJob was
66
+ created.
67
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
68
+ Output only. Time when the CustomJob for the first time
69
+ entered the ``JOB_STATE_RUNNING`` state.
70
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
71
+ Output only. Time when the CustomJob entered any of the
72
+ following states: ``JOB_STATE_SUCCEEDED``,
73
+ ``JOB_STATE_FAILED``, ``JOB_STATE_CANCELLED``.
74
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
75
+ Output only. Time when the CustomJob was most
76
+ recently updated.
77
+ error (google.rpc.status_pb2.Status):
78
+ Output only. Only populated when job's state is
79
+ ``JOB_STATE_FAILED`` or ``JOB_STATE_CANCELLED``.
80
+ labels (MutableMapping[str, str]):
81
+ The labels with user-defined metadata to
82
+ organize CustomJobs.
83
+ Label keys and values can be no longer than 64
84
+ characters (Unicode codepoints), can only
85
+ contain lowercase letters, numeric characters,
86
+ underscores and dashes. International characters
87
+ are allowed.
88
+
89
+ See https://goo.gl/xmQnxf for more information
90
+ and examples of labels.
91
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
92
+ Customer-managed encryption key options for a
93
+ CustomJob. If this is set, then all resources
94
+ created by the CustomJob will be encrypted with
95
+ the provided encryption key.
96
+ web_access_uris (MutableMapping[str, str]):
97
+ Output only. URIs for accessing `interactive
98
+ shells <https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell>`__
99
+ (one URI for each training node). Only available if
100
+ [job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access]
101
+ is ``true``.
102
+
103
+ The keys are names of each node in the training job; for
104
+ example, ``workerpool0-0`` for the primary node,
105
+ ``workerpool1-0`` for the first node in the second worker
106
+ pool, and ``workerpool1-1`` for the second node in the
107
+ second worker pool.
108
+
109
+ The values are the URIs for each node's interactive shell.
110
+ satisfies_pzs (bool):
111
+ Output only. Reserved for future use.
112
+ satisfies_pzi (bool):
113
+ Output only. Reserved for future use.
114
+ """
115
+
116
+ name: str = proto.Field(
117
+ proto.STRING,
118
+ number=1,
119
+ )
120
+ display_name: str = proto.Field(
121
+ proto.STRING,
122
+ number=2,
123
+ )
124
+ job_spec: "CustomJobSpec" = proto.Field(
125
+ proto.MESSAGE,
126
+ number=4,
127
+ message="CustomJobSpec",
128
+ )
129
+ state: job_state.JobState = proto.Field(
130
+ proto.ENUM,
131
+ number=5,
132
+ enum=job_state.JobState,
133
+ )
134
+ create_time: timestamp_pb2.Timestamp = proto.Field(
135
+ proto.MESSAGE,
136
+ number=6,
137
+ message=timestamp_pb2.Timestamp,
138
+ )
139
+ start_time: timestamp_pb2.Timestamp = proto.Field(
140
+ proto.MESSAGE,
141
+ number=7,
142
+ message=timestamp_pb2.Timestamp,
143
+ )
144
+ end_time: timestamp_pb2.Timestamp = proto.Field(
145
+ proto.MESSAGE,
146
+ number=8,
147
+ message=timestamp_pb2.Timestamp,
148
+ )
149
+ update_time: timestamp_pb2.Timestamp = proto.Field(
150
+ proto.MESSAGE,
151
+ number=9,
152
+ message=timestamp_pb2.Timestamp,
153
+ )
154
+ error: status_pb2.Status = proto.Field(
155
+ proto.MESSAGE,
156
+ number=10,
157
+ message=status_pb2.Status,
158
+ )
159
+ labels: MutableMapping[str, str] = proto.MapField(
160
+ proto.STRING,
161
+ proto.STRING,
162
+ number=11,
163
+ )
164
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
165
+ proto.MESSAGE,
166
+ number=12,
167
+ message=gca_encryption_spec.EncryptionSpec,
168
+ )
169
+ web_access_uris: MutableMapping[str, str] = proto.MapField(
170
+ proto.STRING,
171
+ proto.STRING,
172
+ number=16,
173
+ )
174
+ satisfies_pzs: bool = proto.Field(
175
+ proto.BOOL,
176
+ number=18,
177
+ )
178
+ satisfies_pzi: bool = proto.Field(
179
+ proto.BOOL,
180
+ number=19,
181
+ )
182
+
183
+
184
+ class CustomJobSpec(proto.Message):
185
+ r"""Represents the spec of a CustomJob.
186
+
187
+ Attributes:
188
+ persistent_resource_id (str):
189
+ Optional. The ID of the PersistentResource in
190
+ the same Project and Location which to run
191
+
192
+ If this is specified, the job will be run on
193
+ existing machines held by the PersistentResource
194
+ instead of on-demand short-live machines. The
195
+ network and CMEK configs on the job should be
196
+ consistent with those on the PersistentResource,
197
+ otherwise, the job will be rejected.
198
+ worker_pool_specs (MutableSequence[google.cloud.aiplatform_v1.types.WorkerPoolSpec]):
199
+ Required. The spec of the worker pools
200
+ including machine type and Docker image. All
201
+ worker pools except the first one are optional
202
+ and can be skipped by providing an empty value.
203
+ scheduling (google.cloud.aiplatform_v1.types.Scheduling):
204
+ Scheduling options for a CustomJob.
205
+ service_account (str):
206
+ Specifies the service account for workload run-as account.
207
+ Users submitting jobs must have act-as permission on this
208
+ run-as account. If unspecified, the `Vertex AI Custom Code
209
+ Service
210
+ Agent <https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents>`__
211
+ for the CustomJob's project is used.
212
+ network (str):
213
+ Optional. The full name of the Compute Engine
214
+ `network </compute/docs/networks-and-firewalls#networks>`__
215
+ to which the Job should be peered. For example,
216
+ ``projects/12345/global/networks/myVPC``.
217
+ `Format </compute/docs/reference/rest/v1/networks/insert>`__
218
+ is of the form
219
+ ``projects/{project}/global/networks/{network}``. Where
220
+ {project} is a project number, as in ``12345``, and
221
+ {network} is a network name.
222
+
223
+ To specify this field, you must have already `configured VPC
224
+ Network Peering for Vertex
225
+ AI <https://cloud.google.com/vertex-ai/docs/general/vpc-peering>`__.
226
+
227
+ If this field is left unspecified, the job is not peered
228
+ with any network.
229
+ reserved_ip_ranges (MutableSequence[str]):
230
+ Optional. A list of names for the reserved ip ranges under
231
+ the VPC network that can be used for this job.
232
+
233
+ If set, we will deploy the job within the provided ip
234
+ ranges. Otherwise, the job will be deployed to any ip ranges
235
+ under the provided VPC network.
236
+
237
+ Example: ['vertex-ai-ip-range'].
238
+ psc_interface_config (google.cloud.aiplatform_v1.types.PscInterfaceConfig):
239
+ Optional. Configuration for PSC-I for
240
+ CustomJob.
241
+ base_output_directory (google.cloud.aiplatform_v1.types.GcsDestination):
242
+ The Cloud Storage location to store the output of this
243
+ CustomJob or HyperparameterTuningJob. For
244
+ HyperparameterTuningJob, the baseOutputDirectory of each
245
+ child CustomJob backing a Trial is set to a subdirectory of
246
+ name [id][google.cloud.aiplatform.v1.Trial.id] under its
247
+ parent HyperparameterTuningJob's baseOutputDirectory.
248
+
249
+ The following Vertex AI environment variables will be passed
250
+ to containers or python modules when this field is set:
251
+
252
+ For CustomJob:
253
+
254
+ - AIP_MODEL_DIR = ``<base_output_directory>/model/``
255
+ - AIP_CHECKPOINT_DIR =
256
+ ``<base_output_directory>/checkpoints/``
257
+ - AIP_TENSORBOARD_LOG_DIR =
258
+ ``<base_output_directory>/logs/``
259
+
260
+ For CustomJob backing a Trial of HyperparameterTuningJob:
261
+
262
+ - AIP_MODEL_DIR =
263
+ ``<base_output_directory>/<trial_id>/model/``
264
+ - AIP_CHECKPOINT_DIR =
265
+ ``<base_output_directory>/<trial_id>/checkpoints/``
266
+ - AIP_TENSORBOARD_LOG_DIR =
267
+ ``<base_output_directory>/<trial_id>/logs/``
268
+ protected_artifact_location_id (str):
269
+ The ID of the location to store protected
270
+ artifacts. e.g. us-central1. Populate only when
271
+ the location is different than CustomJob
272
+ location. List of supported locations:
273
+
274
+ https://cloud.google.com/vertex-ai/docs/general/locations
275
+ tensorboard (str):
276
+ Optional. The name of a Vertex AI
277
+ [Tensorboard][google.cloud.aiplatform.v1.Tensorboard]
278
+ resource to which this CustomJob will upload Tensorboard
279
+ logs. Format:
280
+ ``projects/{project}/locations/{location}/tensorboards/{tensorboard}``
281
+ enable_web_access (bool):
282
+ Optional. Whether you want Vertex AI to enable `interactive
283
+ shell
284
+ access <https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell>`__
285
+ to training containers.
286
+
287
+ If set to ``true``, you can access interactive shells at the
288
+ URIs given by
289
+ [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris]
290
+ or
291
+ [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris]
292
+ (within
293
+ [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]).
294
+ enable_dashboard_access (bool):
295
+ Optional. Whether you want Vertex AI to enable access to the
296
+ customized dashboard in training chief container.
297
+
298
+ If set to ``true``, you can access the dashboard at the URIs
299
+ given by
300
+ [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris]
301
+ or
302
+ [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris]
303
+ (within
304
+ [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]).
305
+ experiment (str):
306
+ Optional. The Experiment associated with this job. Format:
307
+ ``projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}``
308
+ experiment_run (str):
309
+ Optional. The Experiment Run associated with this job.
310
+ Format:
311
+ ``projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}``
312
+ models (MutableSequence[str]):
313
+ Optional. The name of the Model resources for which to
314
+ generate a mapping to artifact URIs. Applicable only to some
315
+ of the Google-provided custom jobs. Format:
316
+ ``projects/{project}/locations/{location}/models/{model}``
317
+
318
+ In order to retrieve a specific version of the model, also
319
+ provide the version ID or version alias. Example:
320
+ ``projects/{project}/locations/{location}/models/{model}@2``
321
+ or
322
+ ``projects/{project}/locations/{location}/models/{model}@golden``
323
+ If no version ID or alias is specified, the "default"
324
+ version will be returned. The "default" version alias is
325
+ created for the first version of the model, and can be moved
326
+ to other versions later on. There will be exactly one
327
+ default version.
328
+ """
329
+
330
+ persistent_resource_id: str = proto.Field(
331
+ proto.STRING,
332
+ number=14,
333
+ )
334
+ worker_pool_specs: MutableSequence["WorkerPoolSpec"] = proto.RepeatedField(
335
+ proto.MESSAGE,
336
+ number=1,
337
+ message="WorkerPoolSpec",
338
+ )
339
+ scheduling: "Scheduling" = proto.Field(
340
+ proto.MESSAGE,
341
+ number=3,
342
+ message="Scheduling",
343
+ )
344
+ service_account: str = proto.Field(
345
+ proto.STRING,
346
+ number=4,
347
+ )
348
+ network: str = proto.Field(
349
+ proto.STRING,
350
+ number=5,
351
+ )
352
+ reserved_ip_ranges: MutableSequence[str] = proto.RepeatedField(
353
+ proto.STRING,
354
+ number=13,
355
+ )
356
+ psc_interface_config: service_networking.PscInterfaceConfig = proto.Field(
357
+ proto.MESSAGE,
358
+ number=21,
359
+ message=service_networking.PscInterfaceConfig,
360
+ )
361
+ base_output_directory: io.GcsDestination = proto.Field(
362
+ proto.MESSAGE,
363
+ number=6,
364
+ message=io.GcsDestination,
365
+ )
366
+ protected_artifact_location_id: str = proto.Field(
367
+ proto.STRING,
368
+ number=19,
369
+ )
370
+ tensorboard: str = proto.Field(
371
+ proto.STRING,
372
+ number=7,
373
+ )
374
+ enable_web_access: bool = proto.Field(
375
+ proto.BOOL,
376
+ number=10,
377
+ )
378
+ enable_dashboard_access: bool = proto.Field(
379
+ proto.BOOL,
380
+ number=16,
381
+ )
382
+ experiment: str = proto.Field(
383
+ proto.STRING,
384
+ number=17,
385
+ )
386
+ experiment_run: str = proto.Field(
387
+ proto.STRING,
388
+ number=18,
389
+ )
390
+ models: MutableSequence[str] = proto.RepeatedField(
391
+ proto.STRING,
392
+ number=20,
393
+ )
394
+
395
+
396
+ class WorkerPoolSpec(proto.Message):
397
+ r"""Represents the spec of a worker pool in a job.
398
+
399
+ This message has `oneof`_ fields (mutually exclusive fields).
400
+ For each oneof, at most one member field can be set at the same time.
401
+ Setting any member of the oneof automatically clears all other
402
+ members.
403
+
404
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
405
+
406
+ Attributes:
407
+ container_spec (google.cloud.aiplatform_v1.types.ContainerSpec):
408
+ The custom container task.
409
+
410
+ This field is a member of `oneof`_ ``task``.
411
+ python_package_spec (google.cloud.aiplatform_v1.types.PythonPackageSpec):
412
+ The Python packaged task.
413
+
414
+ This field is a member of `oneof`_ ``task``.
415
+ machine_spec (google.cloud.aiplatform_v1.types.MachineSpec):
416
+ Optional. Immutable. The specification of a
417
+ single machine.
418
+ replica_count (int):
419
+ Optional. The number of worker replicas to
420
+ use for this worker pool.
421
+ nfs_mounts (MutableSequence[google.cloud.aiplatform_v1.types.NfsMount]):
422
+ Optional. List of NFS mount spec.
423
+ lustre_mounts (MutableSequence[google.cloud.aiplatform_v1.types.LustreMount]):
424
+ Optional. List of Lustre mounts.
425
+ disk_spec (google.cloud.aiplatform_v1.types.DiskSpec):
426
+ Disk spec.
427
+ """
428
+
429
+ container_spec: "ContainerSpec" = proto.Field(
430
+ proto.MESSAGE,
431
+ number=6,
432
+ oneof="task",
433
+ message="ContainerSpec",
434
+ )
435
+ python_package_spec: "PythonPackageSpec" = proto.Field(
436
+ proto.MESSAGE,
437
+ number=7,
438
+ oneof="task",
439
+ message="PythonPackageSpec",
440
+ )
441
+ machine_spec: machine_resources.MachineSpec = proto.Field(
442
+ proto.MESSAGE,
443
+ number=1,
444
+ message=machine_resources.MachineSpec,
445
+ )
446
+ replica_count: int = proto.Field(
447
+ proto.INT64,
448
+ number=2,
449
+ )
450
+ nfs_mounts: MutableSequence[machine_resources.NfsMount] = proto.RepeatedField(
451
+ proto.MESSAGE,
452
+ number=4,
453
+ message=machine_resources.NfsMount,
454
+ )
455
+ lustre_mounts: MutableSequence[machine_resources.LustreMount] = proto.RepeatedField(
456
+ proto.MESSAGE,
457
+ number=9,
458
+ message=machine_resources.LustreMount,
459
+ )
460
+ disk_spec: machine_resources.DiskSpec = proto.Field(
461
+ proto.MESSAGE,
462
+ number=5,
463
+ message=machine_resources.DiskSpec,
464
+ )
465
+
466
+
467
+ class ContainerSpec(proto.Message):
468
+ r"""The spec of a Container.
469
+
470
+ Attributes:
471
+ image_uri (str):
472
+ Required. The URI of a container image in the
473
+ Container Registry that is to be run on each
474
+ worker replica.
475
+ command (MutableSequence[str]):
476
+ The command to be invoked when the container
477
+ is started. It overrides the entrypoint
478
+ instruction in Dockerfile when provided.
479
+ args (MutableSequence[str]):
480
+ The arguments to be passed when starting the
481
+ container.
482
+ env (MutableSequence[google.cloud.aiplatform_v1.types.EnvVar]):
483
+ Environment variables to be passed to the
484
+ container. Maximum limit is 100.
485
+ """
486
+
487
+ image_uri: str = proto.Field(
488
+ proto.STRING,
489
+ number=1,
490
+ )
491
+ command: MutableSequence[str] = proto.RepeatedField(
492
+ proto.STRING,
493
+ number=2,
494
+ )
495
+ args: MutableSequence[str] = proto.RepeatedField(
496
+ proto.STRING,
497
+ number=3,
498
+ )
499
+ env: MutableSequence[env_var.EnvVar] = proto.RepeatedField(
500
+ proto.MESSAGE,
501
+ number=4,
502
+ message=env_var.EnvVar,
503
+ )
504
+
505
+
506
+ class PythonPackageSpec(proto.Message):
507
+ r"""The spec of a Python packaged code.
508
+
509
+ Attributes:
510
+ executor_image_uri (str):
511
+ Required. The URI of a container image in Artifact Registry
512
+ that will run the provided Python package. Vertex AI
513
+ provides a wide range of executor images with pre-installed
514
+ packages to meet users' various use cases. See the list of
515
+ `pre-built containers for
516
+ training <https://cloud.google.com/vertex-ai/docs/training/pre-built-containers>`__.
517
+ You must use an image from this list.
518
+ package_uris (MutableSequence[str]):
519
+ Required. The Google Cloud Storage location
520
+ of the Python package files which are the
521
+ training program and its dependent packages. The
522
+ maximum number of package URIs is 100.
523
+ python_module (str):
524
+ Required. The Python module name to run after
525
+ installing the packages.
526
+ args (MutableSequence[str]):
527
+ Command line arguments to be passed to the
528
+ Python task.
529
+ env (MutableSequence[google.cloud.aiplatform_v1.types.EnvVar]):
530
+ Environment variables to be passed to the
531
+ python module. Maximum limit is 100.
532
+ """
533
+
534
+ executor_image_uri: str = proto.Field(
535
+ proto.STRING,
536
+ number=1,
537
+ )
538
+ package_uris: MutableSequence[str] = proto.RepeatedField(
539
+ proto.STRING,
540
+ number=2,
541
+ )
542
+ python_module: str = proto.Field(
543
+ proto.STRING,
544
+ number=3,
545
+ )
546
+ args: MutableSequence[str] = proto.RepeatedField(
547
+ proto.STRING,
548
+ number=4,
549
+ )
550
+ env: MutableSequence[env_var.EnvVar] = proto.RepeatedField(
551
+ proto.MESSAGE,
552
+ number=5,
553
+ message=env_var.EnvVar,
554
+ )
555
+
556
+
557
+ class Scheduling(proto.Message):
558
+ r"""All parameters related to queuing and scheduling of custom
559
+ jobs.
560
+
561
+ Attributes:
562
+ timeout (google.protobuf.duration_pb2.Duration):
563
+ Optional. The maximum job running time. The
564
+ default is 7 days.
565
+ restart_job_on_worker_restart (bool):
566
+ Optional. Restarts the entire CustomJob if a
567
+ worker gets restarted. This feature can be used
568
+ by distributed training jobs that are not
569
+ resilient to workers leaving and joining a job.
570
+ strategy (google.cloud.aiplatform_v1.types.Scheduling.Strategy):
571
+ Optional. This determines which type of
572
+ scheduling strategy to use.
573
+ disable_retries (bool):
574
+ Optional. Indicates if the job should retry for internal
575
+ errors after the job starts running. If true, overrides
576
+ ``Scheduling.restart_job_on_worker_restart`` to false.
577
+ max_wait_duration (google.protobuf.duration_pb2.Duration):
578
+ Optional. This is the maximum duration that a job will wait
579
+ for the requested resources to be provisioned if the
580
+ scheduling strategy is set to [Strategy.DWS_FLEX_START]. If
581
+ set to 0, the job will wait indefinitely. The default is 24
582
+ hours.
583
+ """
584
+
585
+ class Strategy(proto.Enum):
586
+ r"""Optional. This determines which type of scheduling strategy
587
+ to use. Right now users have two options such as STANDARD which
588
+ will use regular on demand resources to schedule the job, the
589
+ other is SPOT which would leverage spot resources alongwith
590
+ regular resources to schedule the job.
591
+
592
+ Values:
593
+ STRATEGY_UNSPECIFIED (0):
594
+ Strategy will default to STANDARD.
595
+ ON_DEMAND (1):
596
+ Deprecated. Regular on-demand provisioning
597
+ strategy.
598
+ LOW_COST (2):
599
+ Deprecated. Low cost by making potential use
600
+ of spot resources.
601
+ STANDARD (3):
602
+ Standard provisioning strategy uses regular
603
+ on-demand resources.
604
+ SPOT (4):
605
+ Spot provisioning strategy uses spot
606
+ resources.
607
+ FLEX_START (6):
608
+ Flex Start strategy uses DWS to queue for
609
+ resources.
610
+ """
611
+
612
+ STRATEGY_UNSPECIFIED = 0
613
+ ON_DEMAND = 1
614
+ LOW_COST = 2
615
+ STANDARD = 3
616
+ SPOT = 4
617
+ FLEX_START = 6
618
+
619
+ timeout: duration_pb2.Duration = proto.Field(
620
+ proto.MESSAGE,
621
+ number=1,
622
+ message=duration_pb2.Duration,
623
+ )
624
+ restart_job_on_worker_restart: bool = proto.Field(
625
+ proto.BOOL,
626
+ number=3,
627
+ )
628
+ strategy: Strategy = proto.Field(
629
+ proto.ENUM,
630
+ number=4,
631
+ enum=Strategy,
632
+ )
633
+ disable_retries: bool = proto.Field(
634
+ proto.BOOL,
635
+ number=5,
636
+ )
637
+ max_wait_duration: duration_pb2.Duration = proto.Field(
638
+ proto.MESSAGE,
639
+ number=6,
640
+ message=duration_pb2.Duration,
641
+ )
642
+
643
+
644
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/data_foundry_service.py ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import content as gca_content
23
+
24
+
25
+ __protobuf__ = proto.module(
26
+ package="google.cloud.aiplatform.v1",
27
+ manifest={
28
+ "GenerateSyntheticDataRequest",
29
+ "SyntheticField",
30
+ "SyntheticExample",
31
+ "OutputFieldSpec",
32
+ "TaskDescriptionStrategy",
33
+ "GenerateSyntheticDataResponse",
34
+ },
35
+ )
36
+
37
+
38
+ class GenerateSyntheticDataRequest(proto.Message):
39
+ r"""Request message for DataFoundryService.GenerateSyntheticData.
40
+
41
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
42
+
43
+ Attributes:
44
+ task_description (google.cloud.aiplatform_v1.types.TaskDescriptionStrategy):
45
+ Generate data from a high-level task
46
+ description.
47
+
48
+ This field is a member of `oneof`_ ``strategy``.
49
+ location (str):
50
+ Required. The resource name of the Location to run the job.
51
+ Format: ``projects/{project}/locations/{location}``
52
+ count (int):
53
+ Required. The number of synthetic examples to
54
+ generate. For this stateless API, the count is
55
+ limited to a small number.
56
+ output_field_specs (MutableSequence[google.cloud.aiplatform_v1.types.OutputFieldSpec]):
57
+ Required. The schema of the desired output,
58
+ defined by a list of fields.
59
+ examples (MutableSequence[google.cloud.aiplatform_v1.types.SyntheticExample]):
60
+ Optional. A list of few-shot examples to
61
+ guide the model's output style and format.
62
+ """
63
+
64
+ task_description: "TaskDescriptionStrategy" = proto.Field(
65
+ proto.MESSAGE,
66
+ number=3,
67
+ oneof="strategy",
68
+ message="TaskDescriptionStrategy",
69
+ )
70
+ location: str = proto.Field(
71
+ proto.STRING,
72
+ number=1,
73
+ )
74
+ count: int = proto.Field(
75
+ proto.INT32,
76
+ number=2,
77
+ )
78
+ output_field_specs: MutableSequence["OutputFieldSpec"] = proto.RepeatedField(
79
+ proto.MESSAGE,
80
+ number=4,
81
+ message="OutputFieldSpec",
82
+ )
83
+ examples: MutableSequence["SyntheticExample"] = proto.RepeatedField(
84
+ proto.MESSAGE,
85
+ number=5,
86
+ message="SyntheticExample",
87
+ )
88
+
89
+
90
+ class SyntheticField(proto.Message):
91
+ r"""Represents a single named field within a SyntheticExample.
92
+
93
+ Attributes:
94
+ field_name (str):
95
+ Optional. The name of the field.
96
+ content (google.cloud.aiplatform_v1.types.Content):
97
+ Required. The content of the field.
98
+ """
99
+
100
+ field_name: str = proto.Field(
101
+ proto.STRING,
102
+ number=1,
103
+ )
104
+ content: gca_content.Content = proto.Field(
105
+ proto.MESSAGE,
106
+ number=2,
107
+ message=gca_content.Content,
108
+ )
109
+
110
+
111
+ class SyntheticExample(proto.Message):
112
+ r"""Represents a single synthetic example, composed of multiple
113
+ fields. Used for providing few-shot examples in the request and
114
+ for returning generated examples in the response.
115
+
116
+ Attributes:
117
+ fields (MutableSequence[google.cloud.aiplatform_v1.types.SyntheticField]):
118
+ Required. A list of fields that constitute an
119
+ example.
120
+ """
121
+
122
+ fields: MutableSequence["SyntheticField"] = proto.RepeatedField(
123
+ proto.MESSAGE,
124
+ number=1,
125
+ message="SyntheticField",
126
+ )
127
+
128
+
129
+ class OutputFieldSpec(proto.Message):
130
+ r"""Defines a specification for a single output field.
131
+
132
+ Attributes:
133
+ field_name (str):
134
+ Required. The name of the output field.
135
+ guidance (str):
136
+ Optional. Optional, but recommended.
137
+ Additional guidance specific to this field to
138
+ provide targeted instructions for the LLM to
139
+ generate the content of a single output field.
140
+ While the LLM can sometimes infer content from
141
+ the field name, providing explicit guidance is
142
+ preferred.
143
+ field_type (google.cloud.aiplatform_v1.types.OutputFieldSpec.FieldType):
144
+ Optional. The data type of the field.
145
+ Defaults to CONTENT if not set.
146
+ """
147
+
148
+ class FieldType(proto.Enum):
149
+ r"""The data type of the field.
150
+
151
+ Values:
152
+ FIELD_TYPE_UNSPECIFIED (0):
153
+ Field type is unspecified.
154
+ CONTENT (1):
155
+ Arbitrary content field type.
156
+ TEXT (2):
157
+ Text field type.
158
+ IMAGE (3):
159
+ Image field type.
160
+ AUDIO (4):
161
+ Audio field type.
162
+ """
163
+
164
+ FIELD_TYPE_UNSPECIFIED = 0
165
+ CONTENT = 1
166
+ TEXT = 2
167
+ IMAGE = 3
168
+ AUDIO = 4
169
+
170
+ field_name: str = proto.Field(
171
+ proto.STRING,
172
+ number=1,
173
+ )
174
+ guidance: str = proto.Field(
175
+ proto.STRING,
176
+ number=2,
177
+ )
178
+ field_type: FieldType = proto.Field(
179
+ proto.ENUM,
180
+ number=3,
181
+ enum=FieldType,
182
+ )
183
+
184
+
185
+ class TaskDescriptionStrategy(proto.Message):
186
+ r"""Defines a generation strategy based on a high-level task
187
+ description.
188
+
189
+ Attributes:
190
+ task_description (str):
191
+ Required. A high-level description of the
192
+ synthetic data to be generated.
193
+ """
194
+
195
+ task_description: str = proto.Field(
196
+ proto.STRING,
197
+ number=1,
198
+ )
199
+
200
+
201
+ class GenerateSyntheticDataResponse(proto.Message):
202
+ r"""The response containing the generated data.
203
+
204
+ Attributes:
205
+ synthetic_examples (MutableSequence[google.cloud.aiplatform_v1.types.SyntheticExample]):
206
+ A list of generated synthetic examples.
207
+ """
208
+
209
+ synthetic_examples: MutableSequence["SyntheticExample"] = proto.RepeatedField(
210
+ proto.MESSAGE,
211
+ number=1,
212
+ message="SyntheticExample",
213
+ )
214
+
215
+
216
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/data_item.py ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
23
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "DataItem",
30
+ },
31
+ )
32
+
33
+
34
+ class DataItem(proto.Message):
35
+ r"""A piece of data in a Dataset. Could be an image, a video, a
36
+ document or plain text.
37
+
38
+ Attributes:
39
+ name (str):
40
+ Output only. The resource name of the
41
+ DataItem.
42
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
43
+ Output only. Timestamp when this DataItem was
44
+ created.
45
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
46
+ Output only. Timestamp when this DataItem was
47
+ last updated.
48
+ labels (MutableMapping[str, str]):
49
+ Optional. The labels with user-defined
50
+ metadata to organize your DataItems.
51
+ Label keys and values can be no longer than 64
52
+ characters (Unicode codepoints), can only
53
+ contain lowercase letters, numeric characters,
54
+ underscores and dashes. International characters
55
+ are allowed. No more than 64 user labels can be
56
+ associated with one DataItem(System labels are
57
+ excluded).
58
+
59
+ See https://goo.gl/xmQnxf for more information
60
+ and examples of labels. System reserved label
61
+ keys are prefixed with
62
+ "aiplatform.googleapis.com/" and are immutable.
63
+ payload (google.protobuf.struct_pb2.Value):
64
+ Required. The data that the DataItem represents (for
65
+ example, an image or a text snippet). The schema of the
66
+ payload is stored in the parent Dataset's [metadata
67
+ schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri]
68
+ dataItemSchemaUri field.
69
+ etag (str):
70
+ Optional. Used to perform consistent
71
+ read-modify-write updates. If not set, a blind
72
+ "overwrite" update happens.
73
+ satisfies_pzs (bool):
74
+ Output only. Reserved for future use.
75
+ satisfies_pzi (bool):
76
+ Output only. Reserved for future use.
77
+ """
78
+
79
+ name: str = proto.Field(
80
+ proto.STRING,
81
+ number=1,
82
+ )
83
+ create_time: timestamp_pb2.Timestamp = proto.Field(
84
+ proto.MESSAGE,
85
+ number=2,
86
+ message=timestamp_pb2.Timestamp,
87
+ )
88
+ update_time: timestamp_pb2.Timestamp = proto.Field(
89
+ proto.MESSAGE,
90
+ number=6,
91
+ message=timestamp_pb2.Timestamp,
92
+ )
93
+ labels: MutableMapping[str, str] = proto.MapField(
94
+ proto.STRING,
95
+ proto.STRING,
96
+ number=3,
97
+ )
98
+ payload: struct_pb2.Value = proto.Field(
99
+ proto.MESSAGE,
100
+ number=4,
101
+ message=struct_pb2.Value,
102
+ )
103
+ etag: str = proto.Field(
104
+ proto.STRING,
105
+ number=7,
106
+ )
107
+ satisfies_pzs: bool = proto.Field(
108
+ proto.BOOL,
109
+ number=10,
110
+ )
111
+ satisfies_pzi: bool = proto.Field(
112
+ proto.BOOL,
113
+ number=11,
114
+ )
115
+
116
+
117
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/data_labeling_job.py ADDED
@@ -0,0 +1,363 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
23
+ from google.cloud.aiplatform_v1.types import job_state
24
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
25
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
26
+ import google.rpc.status_pb2 as status_pb2 # type: ignore
27
+ import google.type.money_pb2 as money_pb2 # type: ignore
28
+
29
+
30
+ __protobuf__ = proto.module(
31
+ package="google.cloud.aiplatform.v1",
32
+ manifest={
33
+ "DataLabelingJob",
34
+ "ActiveLearningConfig",
35
+ "SampleConfig",
36
+ "TrainingConfig",
37
+ },
38
+ )
39
+
40
+
41
+ class DataLabelingJob(proto.Message):
42
+ r"""DataLabelingJob is used to trigger a human labeling job on
43
+ unlabeled data from the following Dataset:
44
+
45
+ Attributes:
46
+ name (str):
47
+ Output only. Resource name of the
48
+ DataLabelingJob.
49
+ display_name (str):
50
+ Required. The user-defined name of the
51
+ DataLabelingJob. The name can be up to 128
52
+ characters long and can consist of any UTF-8
53
+ characters.
54
+ Display name of a DataLabelingJob.
55
+ datasets (MutableSequence[str]):
56
+ Required. Dataset resource names. Right now we only support
57
+ labeling from a single Dataset. Format:
58
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
59
+ annotation_labels (MutableMapping[str, str]):
60
+ Labels to assign to annotations generated by
61
+ this DataLabelingJob.
62
+ Label keys and values can be no longer than 64
63
+ characters (Unicode codepoints), can only
64
+ contain lowercase letters, numeric characters,
65
+ underscores and dashes. International characters
66
+ are allowed. See https://goo.gl/xmQnxf for more
67
+ information and examples of labels. System
68
+ reserved label keys are prefixed with
69
+ "aiplatform.googleapis.com/" and are immutable.
70
+ labeler_count (int):
71
+ Required. Number of labelers to work on each
72
+ DataItem.
73
+ instruction_uri (str):
74
+ Required. The Google Cloud Storage location
75
+ of the instruction pdf. This pdf is shared with
76
+ labelers, and provides detailed description on
77
+ how to label DataItems in Datasets.
78
+ inputs_schema_uri (str):
79
+ Required. Points to a YAML file stored on
80
+ Google Cloud Storage describing the config for a
81
+ specific type of DataLabelingJob. The schema
82
+ files that can be used here are found in the
83
+ https://storage.googleapis.com/google-cloud-aiplatform
84
+ bucket in the /schema/datalabelingjob/inputs/
85
+ folder.
86
+ inputs (google.protobuf.struct_pb2.Value):
87
+ Required. Input config parameters for the
88
+ DataLabelingJob.
89
+ state (google.cloud.aiplatform_v1.types.JobState):
90
+ Output only. The detailed state of the job.
91
+ labeling_progress (int):
92
+ Output only. Current labeling job progress percentage scaled
93
+ in interval [0, 100], indicating the percentage of DataItems
94
+ that has been finished.
95
+ current_spend (google.type.money_pb2.Money):
96
+ Output only. Estimated cost(in US dollars)
97
+ that the DataLabelingJob has incurred to date.
98
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
99
+ Output only. Timestamp when this
100
+ DataLabelingJob was created.
101
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
102
+ Output only. Timestamp when this
103
+ DataLabelingJob was updated most recently.
104
+ error (google.rpc.status_pb2.Status):
105
+ Output only. DataLabelingJob errors. It is only populated
106
+ when job's state is ``JOB_STATE_FAILED`` or
107
+ ``JOB_STATE_CANCELLED``.
108
+ labels (MutableMapping[str, str]):
109
+ The labels with user-defined metadata to organize your
110
+ DataLabelingJobs.
111
+
112
+ Label keys and values can be no longer than 64 characters
113
+ (Unicode codepoints), can only contain lowercase letters,
114
+ numeric characters, underscores and dashes. International
115
+ characters are allowed.
116
+
117
+ See https://goo.gl/xmQnxf for more information and examples
118
+ of labels. System reserved label keys are prefixed with
119
+ "aiplatform.googleapis.com/" and are immutable. Following
120
+ system labels exist for each DataLabelingJob:
121
+
122
+ - "aiplatform.googleapis.com/schema": output only, its value
123
+ is the
124
+ [inputs_schema][google.cloud.aiplatform.v1.DataLabelingJob.inputs_schema_uri]'s
125
+ title.
126
+ specialist_pools (MutableSequence[str]):
127
+ The SpecialistPools' resource names
128
+ associated with this job.
129
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
130
+ Customer-managed encryption key spec for a
131
+ DataLabelingJob. If set, this DataLabelingJob
132
+ will be secured by this key.
133
+
134
+ Note: Annotations created in the DataLabelingJob
135
+ are associated with the EncryptionSpec of the
136
+ Dataset they are exported to.
137
+ active_learning_config (google.cloud.aiplatform_v1.types.ActiveLearningConfig):
138
+ Parameters that configure the active learning
139
+ pipeline. Active learning will label the data
140
+ incrementally via several iterations. For every
141
+ iteration, it will select a batch of data based
142
+ on the sampling strategy.
143
+ """
144
+
145
+ name: str = proto.Field(
146
+ proto.STRING,
147
+ number=1,
148
+ )
149
+ display_name: str = proto.Field(
150
+ proto.STRING,
151
+ number=2,
152
+ )
153
+ datasets: MutableSequence[str] = proto.RepeatedField(
154
+ proto.STRING,
155
+ number=3,
156
+ )
157
+ annotation_labels: MutableMapping[str, str] = proto.MapField(
158
+ proto.STRING,
159
+ proto.STRING,
160
+ number=12,
161
+ )
162
+ labeler_count: int = proto.Field(
163
+ proto.INT32,
164
+ number=4,
165
+ )
166
+ instruction_uri: str = proto.Field(
167
+ proto.STRING,
168
+ number=5,
169
+ )
170
+ inputs_schema_uri: str = proto.Field(
171
+ proto.STRING,
172
+ number=6,
173
+ )
174
+ inputs: struct_pb2.Value = proto.Field(
175
+ proto.MESSAGE,
176
+ number=7,
177
+ message=struct_pb2.Value,
178
+ )
179
+ state: job_state.JobState = proto.Field(
180
+ proto.ENUM,
181
+ number=8,
182
+ enum=job_state.JobState,
183
+ )
184
+ labeling_progress: int = proto.Field(
185
+ proto.INT32,
186
+ number=13,
187
+ )
188
+ current_spend: money_pb2.Money = proto.Field(
189
+ proto.MESSAGE,
190
+ number=14,
191
+ message=money_pb2.Money,
192
+ )
193
+ create_time: timestamp_pb2.Timestamp = proto.Field(
194
+ proto.MESSAGE,
195
+ number=9,
196
+ message=timestamp_pb2.Timestamp,
197
+ )
198
+ update_time: timestamp_pb2.Timestamp = proto.Field(
199
+ proto.MESSAGE,
200
+ number=10,
201
+ message=timestamp_pb2.Timestamp,
202
+ )
203
+ error: status_pb2.Status = proto.Field(
204
+ proto.MESSAGE,
205
+ number=22,
206
+ message=status_pb2.Status,
207
+ )
208
+ labels: MutableMapping[str, str] = proto.MapField(
209
+ proto.STRING,
210
+ proto.STRING,
211
+ number=11,
212
+ )
213
+ specialist_pools: MutableSequence[str] = proto.RepeatedField(
214
+ proto.STRING,
215
+ number=16,
216
+ )
217
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
218
+ proto.MESSAGE,
219
+ number=20,
220
+ message=gca_encryption_spec.EncryptionSpec,
221
+ )
222
+ active_learning_config: "ActiveLearningConfig" = proto.Field(
223
+ proto.MESSAGE,
224
+ number=21,
225
+ message="ActiveLearningConfig",
226
+ )
227
+
228
+
229
+ class ActiveLearningConfig(proto.Message):
230
+ r"""Parameters that configure the active learning pipeline.
231
+ Active learning will label the data incrementally by several
232
+ iterations. For every iteration, it will select a batch of data
233
+ based on the sampling strategy.
234
+
235
+ This message has `oneof`_ fields (mutually exclusive fields).
236
+ For each oneof, at most one member field can be set at the same time.
237
+ Setting any member of the oneof automatically clears all other
238
+ members.
239
+
240
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
241
+
242
+ Attributes:
243
+ max_data_item_count (int):
244
+ Max number of human labeled DataItems.
245
+
246
+ This field is a member of `oneof`_ ``human_labeling_budget``.
247
+ max_data_item_percentage (int):
248
+ Max percent of total DataItems for human
249
+ labeling.
250
+
251
+ This field is a member of `oneof`_ ``human_labeling_budget``.
252
+ sample_config (google.cloud.aiplatform_v1.types.SampleConfig):
253
+ Active learning data sampling config. For
254
+ every active learning labeling iteration, it
255
+ will select a batch of data based on the
256
+ sampling strategy.
257
+ training_config (google.cloud.aiplatform_v1.types.TrainingConfig):
258
+ CMLE training config. For every active
259
+ learning labeling iteration, system will train a
260
+ machine learning model on CMLE. The trained
261
+ model will be used by data sampling algorithm to
262
+ select DataItems.
263
+ """
264
+
265
+ max_data_item_count: int = proto.Field(
266
+ proto.INT64,
267
+ number=1,
268
+ oneof="human_labeling_budget",
269
+ )
270
+ max_data_item_percentage: int = proto.Field(
271
+ proto.INT32,
272
+ number=2,
273
+ oneof="human_labeling_budget",
274
+ )
275
+ sample_config: "SampleConfig" = proto.Field(
276
+ proto.MESSAGE,
277
+ number=3,
278
+ message="SampleConfig",
279
+ )
280
+ training_config: "TrainingConfig" = proto.Field(
281
+ proto.MESSAGE,
282
+ number=4,
283
+ message="TrainingConfig",
284
+ )
285
+
286
+
287
+ class SampleConfig(proto.Message):
288
+ r"""Active learning data sampling config. For every active
289
+ learning labeling iteration, it will select a batch of data
290
+ based on the sampling strategy.
291
+
292
+
293
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
294
+
295
+ Attributes:
296
+ initial_batch_sample_percentage (int):
297
+ The percentage of data needed to be labeled
298
+ in the first batch.
299
+
300
+ This field is a member of `oneof`_ ``initial_batch_sample_size``.
301
+ following_batch_sample_percentage (int):
302
+ The percentage of data needed to be labeled
303
+ in each following batch (except the first
304
+ batch).
305
+
306
+ This field is a member of `oneof`_ ``following_batch_sample_size``.
307
+ sample_strategy (google.cloud.aiplatform_v1.types.SampleConfig.SampleStrategy):
308
+ Field to choose sampling strategy. Sampling
309
+ strategy will decide which data should be
310
+ selected for human labeling in every batch.
311
+ """
312
+
313
+ class SampleStrategy(proto.Enum):
314
+ r"""Sample strategy decides which subset of DataItems should be
315
+ selected for human labeling in every batch.
316
+
317
+ Values:
318
+ SAMPLE_STRATEGY_UNSPECIFIED (0):
319
+ Default will be treated as UNCERTAINTY.
320
+ UNCERTAINTY (1):
321
+ Sample the most uncertain data to label.
322
+ """
323
+
324
+ SAMPLE_STRATEGY_UNSPECIFIED = 0
325
+ UNCERTAINTY = 1
326
+
327
+ initial_batch_sample_percentage: int = proto.Field(
328
+ proto.INT32,
329
+ number=1,
330
+ oneof="initial_batch_sample_size",
331
+ )
332
+ following_batch_sample_percentage: int = proto.Field(
333
+ proto.INT32,
334
+ number=3,
335
+ oneof="following_batch_sample_size",
336
+ )
337
+ sample_strategy: SampleStrategy = proto.Field(
338
+ proto.ENUM,
339
+ number=5,
340
+ enum=SampleStrategy,
341
+ )
342
+
343
+
344
+ class TrainingConfig(proto.Message):
345
+ r"""CMLE training config. For every active learning labeling
346
+ iteration, system will train a machine learning model on CMLE.
347
+ The trained model will be used by data sampling algorithm to
348
+ select DataItems.
349
+
350
+ Attributes:
351
+ timeout_training_milli_hours (int):
352
+ The timeout hours for the CMLE training job,
353
+ expressed in milli hours i.e. 1,000 value in
354
+ this field means 1 hour.
355
+ """
356
+
357
+ timeout_training_milli_hours: int = proto.Field(
358
+ proto.INT64,
359
+ number=1,
360
+ )
361
+
362
+
363
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/dataset_service.py ADDED
@@ -0,0 +1,1134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import annotation
23
+ from google.cloud.aiplatform_v1.types import data_item as gca_data_item
24
+ from google.cloud.aiplatform_v1.types import dataset as gca_dataset
25
+ from google.cloud.aiplatform_v1.types import dataset_version as gca_dataset_version
26
+ from google.cloud.aiplatform_v1.types import model
27
+ from google.cloud.aiplatform_v1.types import operation
28
+ from google.cloud.aiplatform_v1.types import saved_query as gca_saved_query
29
+ import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
30
+
31
+
32
+ __protobuf__ = proto.module(
33
+ package="google.cloud.aiplatform.v1",
34
+ manifest={
35
+ "CreateDatasetRequest",
36
+ "CreateDatasetOperationMetadata",
37
+ "GetDatasetRequest",
38
+ "UpdateDatasetRequest",
39
+ "UpdateDatasetVersionRequest",
40
+ "ListDatasetsRequest",
41
+ "ListDatasetsResponse",
42
+ "DeleteDatasetRequest",
43
+ "ImportDataRequest",
44
+ "ImportDataResponse",
45
+ "ImportDataOperationMetadata",
46
+ "ExportDataRequest",
47
+ "ExportDataResponse",
48
+ "ExportDataOperationMetadata",
49
+ "CreateDatasetVersionRequest",
50
+ "CreateDatasetVersionOperationMetadata",
51
+ "DeleteDatasetVersionRequest",
52
+ "GetDatasetVersionRequest",
53
+ "ListDatasetVersionsRequest",
54
+ "ListDatasetVersionsResponse",
55
+ "RestoreDatasetVersionRequest",
56
+ "RestoreDatasetVersionOperationMetadata",
57
+ "ListDataItemsRequest",
58
+ "ListDataItemsResponse",
59
+ "SearchDataItemsRequest",
60
+ "SearchDataItemsResponse",
61
+ "DataItemView",
62
+ "ListSavedQueriesRequest",
63
+ "ListSavedQueriesResponse",
64
+ "DeleteSavedQueryRequest",
65
+ "GetAnnotationSpecRequest",
66
+ "ListAnnotationsRequest",
67
+ "ListAnnotationsResponse",
68
+ },
69
+ )
70
+
71
+
72
+ class CreateDatasetRequest(proto.Message):
73
+ r"""Request message for
74
+ [DatasetService.CreateDataset][google.cloud.aiplatform.v1.DatasetService.CreateDataset].
75
+
76
+ Attributes:
77
+ parent (str):
78
+ Required. The resource name of the Location to create the
79
+ Dataset in. Format:
80
+ ``projects/{project}/locations/{location}``
81
+ dataset (google.cloud.aiplatform_v1.types.Dataset):
82
+ Required. The Dataset to create.
83
+ """
84
+
85
+ parent: str = proto.Field(
86
+ proto.STRING,
87
+ number=1,
88
+ )
89
+ dataset: gca_dataset.Dataset = proto.Field(
90
+ proto.MESSAGE,
91
+ number=2,
92
+ message=gca_dataset.Dataset,
93
+ )
94
+
95
+
96
+ class CreateDatasetOperationMetadata(proto.Message):
97
+ r"""Runtime operation information for
98
+ [DatasetService.CreateDataset][google.cloud.aiplatform.v1.DatasetService.CreateDataset].
99
+
100
+ Attributes:
101
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
102
+ The operation generic information.
103
+ """
104
+
105
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
106
+ proto.MESSAGE,
107
+ number=1,
108
+ message=operation.GenericOperationMetadata,
109
+ )
110
+
111
+
112
+ class GetDatasetRequest(proto.Message):
113
+ r"""Request message for
114
+ [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
115
+
116
+ Attributes:
117
+ name (str):
118
+ Required. The name of the Dataset resource.
119
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
120
+ Mask specifying which fields to read.
121
+ """
122
+
123
+ name: str = proto.Field(
124
+ proto.STRING,
125
+ number=1,
126
+ )
127
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
128
+ proto.MESSAGE,
129
+ number=2,
130
+ message=field_mask_pb2.FieldMask,
131
+ )
132
+
133
+
134
+ class UpdateDatasetRequest(proto.Message):
135
+ r"""Request message for
136
+ [DatasetService.UpdateDataset][google.cloud.aiplatform.v1.DatasetService.UpdateDataset].
137
+
138
+ Attributes:
139
+ dataset (google.cloud.aiplatform_v1.types.Dataset):
140
+ Required. The Dataset which replaces the
141
+ resource on the server.
142
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
143
+ Required. The update mask applies to the resource. For the
144
+ ``FieldMask`` definition, see
145
+ [google.protobuf.FieldMask][google.protobuf.FieldMask].
146
+ Updatable fields:
147
+
148
+ - ``display_name``
149
+ - ``description``
150
+ - ``labels``
151
+ """
152
+
153
+ dataset: gca_dataset.Dataset = proto.Field(
154
+ proto.MESSAGE,
155
+ number=1,
156
+ message=gca_dataset.Dataset,
157
+ )
158
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
159
+ proto.MESSAGE,
160
+ number=2,
161
+ message=field_mask_pb2.FieldMask,
162
+ )
163
+
164
+
165
+ class UpdateDatasetVersionRequest(proto.Message):
166
+ r"""Request message for
167
+ [DatasetService.UpdateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.UpdateDatasetVersion].
168
+
169
+ Attributes:
170
+ dataset_version (google.cloud.aiplatform_v1.types.DatasetVersion):
171
+ Required. The DatasetVersion which replaces
172
+ the resource on the server.
173
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
174
+ Required. The update mask applies to the resource. For the
175
+ ``FieldMask`` definition, see
176
+ [google.protobuf.FieldMask][google.protobuf.FieldMask].
177
+ Updatable fields:
178
+
179
+ - ``display_name``
180
+ """
181
+
182
+ dataset_version: gca_dataset_version.DatasetVersion = proto.Field(
183
+ proto.MESSAGE,
184
+ number=1,
185
+ message=gca_dataset_version.DatasetVersion,
186
+ )
187
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
188
+ proto.MESSAGE,
189
+ number=2,
190
+ message=field_mask_pb2.FieldMask,
191
+ )
192
+
193
+
194
+ class ListDatasetsRequest(proto.Message):
195
+ r"""Request message for
196
+ [DatasetService.ListDatasets][google.cloud.aiplatform.v1.DatasetService.ListDatasets].
197
+
198
+ Attributes:
199
+ parent (str):
200
+ Required. The name of the Dataset's parent resource. Format:
201
+ ``projects/{project}/locations/{location}``
202
+ filter (str):
203
+ An expression for filtering the results of the request. For
204
+ field names both snake_case and camelCase are supported.
205
+
206
+ - ``display_name``: supports = and !=
207
+ - ``metadata_schema_uri``: supports = and !=
208
+ - ``labels`` supports general map functions that is:
209
+
210
+ - ``labels.key=value`` - key:value equality
211
+ - \`labels.key:\* or labels:key - key existence
212
+ - A key including a space must be quoted.
213
+ ``labels."a key"``.
214
+
215
+ Some examples:
216
+
217
+ - ``displayName="myDisplayName"``
218
+ - ``labels.myKey="myValue"``
219
+ page_size (int):
220
+ The standard list page size.
221
+ page_token (str):
222
+ The standard list page token.
223
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
224
+ Mask specifying which fields to read.
225
+ order_by (str):
226
+ A comma-separated list of fields to order by, sorted in
227
+ ascending order. Use "desc" after a field name for
228
+ descending. Supported fields:
229
+
230
+ - ``display_name``
231
+ - ``create_time``
232
+ - ``update_time``
233
+ """
234
+
235
+ parent: str = proto.Field(
236
+ proto.STRING,
237
+ number=1,
238
+ )
239
+ filter: str = proto.Field(
240
+ proto.STRING,
241
+ number=2,
242
+ )
243
+ page_size: int = proto.Field(
244
+ proto.INT32,
245
+ number=3,
246
+ )
247
+ page_token: str = proto.Field(
248
+ proto.STRING,
249
+ number=4,
250
+ )
251
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
252
+ proto.MESSAGE,
253
+ number=5,
254
+ message=field_mask_pb2.FieldMask,
255
+ )
256
+ order_by: str = proto.Field(
257
+ proto.STRING,
258
+ number=6,
259
+ )
260
+
261
+
262
+ class ListDatasetsResponse(proto.Message):
263
+ r"""Response message for
264
+ [DatasetService.ListDatasets][google.cloud.aiplatform.v1.DatasetService.ListDatasets].
265
+
266
+ Attributes:
267
+ datasets (MutableSequence[google.cloud.aiplatform_v1.types.Dataset]):
268
+ A list of Datasets that matches the specified
269
+ filter in the request.
270
+ next_page_token (str):
271
+ The standard List next-page token.
272
+ """
273
+
274
+ @property
275
+ def raw_page(self):
276
+ return self
277
+
278
+ datasets: MutableSequence[gca_dataset.Dataset] = proto.RepeatedField(
279
+ proto.MESSAGE,
280
+ number=1,
281
+ message=gca_dataset.Dataset,
282
+ )
283
+ next_page_token: str = proto.Field(
284
+ proto.STRING,
285
+ number=2,
286
+ )
287
+
288
+
289
+ class DeleteDatasetRequest(proto.Message):
290
+ r"""Request message for
291
+ [DatasetService.DeleteDataset][google.cloud.aiplatform.v1.DatasetService.DeleteDataset].
292
+
293
+ Attributes:
294
+ name (str):
295
+ Required. The resource name of the Dataset to delete.
296
+ Format:
297
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
298
+ """
299
+
300
+ name: str = proto.Field(
301
+ proto.STRING,
302
+ number=1,
303
+ )
304
+
305
+
306
+ class ImportDataRequest(proto.Message):
307
+ r"""Request message for
308
+ [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData].
309
+
310
+ Attributes:
311
+ name (str):
312
+ Required. The name of the Dataset resource. Format:
313
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
314
+ import_configs (MutableSequence[google.cloud.aiplatform_v1.types.ImportDataConfig]):
315
+ Required. The desired input locations. The
316
+ contents of all input locations will be imported
317
+ in one batch.
318
+ """
319
+
320
+ name: str = proto.Field(
321
+ proto.STRING,
322
+ number=1,
323
+ )
324
+ import_configs: MutableSequence[gca_dataset.ImportDataConfig] = proto.RepeatedField(
325
+ proto.MESSAGE,
326
+ number=2,
327
+ message=gca_dataset.ImportDataConfig,
328
+ )
329
+
330
+
331
+ class ImportDataResponse(proto.Message):
332
+ r"""Response message for
333
+ [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData].
334
+
335
+ """
336
+
337
+
338
+ class ImportDataOperationMetadata(proto.Message):
339
+ r"""Runtime operation information for
340
+ [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData].
341
+
342
+ Attributes:
343
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
344
+ The common part of the operation metadata.
345
+ """
346
+
347
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
348
+ proto.MESSAGE,
349
+ number=1,
350
+ message=operation.GenericOperationMetadata,
351
+ )
352
+
353
+
354
+ class ExportDataRequest(proto.Message):
355
+ r"""Request message for
356
+ [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData].
357
+
358
+ Attributes:
359
+ name (str):
360
+ Required. The name of the Dataset resource. Format:
361
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
362
+ export_config (google.cloud.aiplatform_v1.types.ExportDataConfig):
363
+ Required. The desired output location.
364
+ """
365
+
366
+ name: str = proto.Field(
367
+ proto.STRING,
368
+ number=1,
369
+ )
370
+ export_config: gca_dataset.ExportDataConfig = proto.Field(
371
+ proto.MESSAGE,
372
+ number=2,
373
+ message=gca_dataset.ExportDataConfig,
374
+ )
375
+
376
+
377
+ class ExportDataResponse(proto.Message):
378
+ r"""Response message for
379
+ [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData].
380
+
381
+ Attributes:
382
+ exported_files (MutableSequence[str]):
383
+ All of the files that are exported in this export operation.
384
+ For custom code training export, only three (training,
385
+ validation and test) Cloud Storage paths in wildcard format
386
+ are populated (for example, gs://.../training-\*).
387
+ data_stats (google.cloud.aiplatform_v1.types.Model.DataStats):
388
+ Only present for custom code training export
389
+ use case. Records data stats, i.e.,
390
+ train/validation/test item/annotation counts
391
+ calculated during the export operation.
392
+ """
393
+
394
+ exported_files: MutableSequence[str] = proto.RepeatedField(
395
+ proto.STRING,
396
+ number=1,
397
+ )
398
+ data_stats: model.Model.DataStats = proto.Field(
399
+ proto.MESSAGE,
400
+ number=2,
401
+ message=model.Model.DataStats,
402
+ )
403
+
404
+
405
+ class ExportDataOperationMetadata(proto.Message):
406
+ r"""Runtime operation information for
407
+ [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData].
408
+
409
+ Attributes:
410
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
411
+ The common part of the operation metadata.
412
+ gcs_output_directory (str):
413
+ A Google Cloud Storage directory which path
414
+ ends with '/'. The exported data is stored in
415
+ the directory.
416
+ """
417
+
418
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
419
+ proto.MESSAGE,
420
+ number=1,
421
+ message=operation.GenericOperationMetadata,
422
+ )
423
+ gcs_output_directory: str = proto.Field(
424
+ proto.STRING,
425
+ number=2,
426
+ )
427
+
428
+
429
+ class CreateDatasetVersionRequest(proto.Message):
430
+ r"""Request message for
431
+ [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion].
432
+
433
+ Attributes:
434
+ parent (str):
435
+ Required. The name of the Dataset resource. Format:
436
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
437
+ dataset_version (google.cloud.aiplatform_v1.types.DatasetVersion):
438
+ Required. The version to be created. The same
439
+ CMEK policies with the original Dataset will be
440
+ applied the dataset version. So here we don't
441
+ need to specify the EncryptionSpecType here.
442
+ """
443
+
444
+ parent: str = proto.Field(
445
+ proto.STRING,
446
+ number=1,
447
+ )
448
+ dataset_version: gca_dataset_version.DatasetVersion = proto.Field(
449
+ proto.MESSAGE,
450
+ number=2,
451
+ message=gca_dataset_version.DatasetVersion,
452
+ )
453
+
454
+
455
+ class CreateDatasetVersionOperationMetadata(proto.Message):
456
+ r"""Runtime operation information for
457
+ [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion].
458
+
459
+ Attributes:
460
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
461
+ The common part of the operation metadata.
462
+ """
463
+
464
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
465
+ proto.MESSAGE,
466
+ number=1,
467
+ message=operation.GenericOperationMetadata,
468
+ )
469
+
470
+
471
+ class DeleteDatasetVersionRequest(proto.Message):
472
+ r"""Request message for
473
+ [DatasetService.DeleteDatasetVersion][google.cloud.aiplatform.v1.DatasetService.DeleteDatasetVersion].
474
+
475
+ Attributes:
476
+ name (str):
477
+ Required. The resource name of the Dataset version to
478
+ delete. Format:
479
+ ``projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}``
480
+ """
481
+
482
+ name: str = proto.Field(
483
+ proto.STRING,
484
+ number=1,
485
+ )
486
+
487
+
488
+ class GetDatasetVersionRequest(proto.Message):
489
+ r"""Request message for
490
+ [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
491
+
492
+ Attributes:
493
+ name (str):
494
+ Required. The resource name of the Dataset version to
495
+ delete. Format:
496
+ ``projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}``
497
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
498
+ Mask specifying which fields to read.
499
+ """
500
+
501
+ name: str = proto.Field(
502
+ proto.STRING,
503
+ number=1,
504
+ )
505
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
506
+ proto.MESSAGE,
507
+ number=2,
508
+ message=field_mask_pb2.FieldMask,
509
+ )
510
+
511
+
512
+ class ListDatasetVersionsRequest(proto.Message):
513
+ r"""Request message for
514
+ [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions].
515
+
516
+ Attributes:
517
+ parent (str):
518
+ Required. The resource name of the Dataset to list
519
+ DatasetVersions from. Format:
520
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
521
+ filter (str):
522
+ Optional. The standard list filter.
523
+ page_size (int):
524
+ Optional. The standard list page size.
525
+ page_token (str):
526
+ Optional. The standard list page token.
527
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
528
+ Optional. Mask specifying which fields to
529
+ read.
530
+ order_by (str):
531
+ Optional. A comma-separated list of fields to
532
+ order by, sorted in ascending order. Use "desc"
533
+ after a field name for descending.
534
+ """
535
+
536
+ parent: str = proto.Field(
537
+ proto.STRING,
538
+ number=1,
539
+ )
540
+ filter: str = proto.Field(
541
+ proto.STRING,
542
+ number=2,
543
+ )
544
+ page_size: int = proto.Field(
545
+ proto.INT32,
546
+ number=3,
547
+ )
548
+ page_token: str = proto.Field(
549
+ proto.STRING,
550
+ number=4,
551
+ )
552
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
553
+ proto.MESSAGE,
554
+ number=5,
555
+ message=field_mask_pb2.FieldMask,
556
+ )
557
+ order_by: str = proto.Field(
558
+ proto.STRING,
559
+ number=6,
560
+ )
561
+
562
+
563
+ class ListDatasetVersionsResponse(proto.Message):
564
+ r"""Response message for
565
+ [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions].
566
+
567
+ Attributes:
568
+ dataset_versions (MutableSequence[google.cloud.aiplatform_v1.types.DatasetVersion]):
569
+ A list of DatasetVersions that matches the
570
+ specified filter in the request.
571
+ next_page_token (str):
572
+ The standard List next-page token.
573
+ """
574
+
575
+ @property
576
+ def raw_page(self):
577
+ return self
578
+
579
+ dataset_versions: MutableSequence[gca_dataset_version.DatasetVersion] = (
580
+ proto.RepeatedField(
581
+ proto.MESSAGE,
582
+ number=1,
583
+ message=gca_dataset_version.DatasetVersion,
584
+ )
585
+ )
586
+ next_page_token: str = proto.Field(
587
+ proto.STRING,
588
+ number=2,
589
+ )
590
+
591
+
592
+ class RestoreDatasetVersionRequest(proto.Message):
593
+ r"""Request message for
594
+ [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion].
595
+
596
+ Attributes:
597
+ name (str):
598
+ Required. The name of the DatasetVersion resource. Format:
599
+ ``projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}``
600
+ """
601
+
602
+ name: str = proto.Field(
603
+ proto.STRING,
604
+ number=1,
605
+ )
606
+
607
+
608
+ class RestoreDatasetVersionOperationMetadata(proto.Message):
609
+ r"""Runtime operation information for
610
+ [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion].
611
+
612
+ Attributes:
613
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
614
+ The common part of the operation metadata.
615
+ """
616
+
617
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
618
+ proto.MESSAGE,
619
+ number=1,
620
+ message=operation.GenericOperationMetadata,
621
+ )
622
+
623
+
624
+ class ListDataItemsRequest(proto.Message):
625
+ r"""Request message for
626
+ [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems].
627
+
628
+ Attributes:
629
+ parent (str):
630
+ Required. The resource name of the Dataset to list DataItems
631
+ from. Format:
632
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
633
+ filter (str):
634
+ The standard list filter.
635
+ page_size (int):
636
+ The standard list page size.
637
+ page_token (str):
638
+ The standard list page token.
639
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
640
+ Mask specifying which fields to read.
641
+ order_by (str):
642
+ A comma-separated list of fields to order by,
643
+ sorted in ascending order. Use "desc" after a
644
+ field name for descending.
645
+ """
646
+
647
+ parent: str = proto.Field(
648
+ proto.STRING,
649
+ number=1,
650
+ )
651
+ filter: str = proto.Field(
652
+ proto.STRING,
653
+ number=2,
654
+ )
655
+ page_size: int = proto.Field(
656
+ proto.INT32,
657
+ number=3,
658
+ )
659
+ page_token: str = proto.Field(
660
+ proto.STRING,
661
+ number=4,
662
+ )
663
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
664
+ proto.MESSAGE,
665
+ number=5,
666
+ message=field_mask_pb2.FieldMask,
667
+ )
668
+ order_by: str = proto.Field(
669
+ proto.STRING,
670
+ number=6,
671
+ )
672
+
673
+
674
+ class ListDataItemsResponse(proto.Message):
675
+ r"""Response message for
676
+ [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems].
677
+
678
+ Attributes:
679
+ data_items (MutableSequence[google.cloud.aiplatform_v1.types.DataItem]):
680
+ A list of DataItems that matches the
681
+ specified filter in the request.
682
+ next_page_token (str):
683
+ The standard List next-page token.
684
+ """
685
+
686
+ @property
687
+ def raw_page(self):
688
+ return self
689
+
690
+ data_items: MutableSequence[gca_data_item.DataItem] = proto.RepeatedField(
691
+ proto.MESSAGE,
692
+ number=1,
693
+ message=gca_data_item.DataItem,
694
+ )
695
+ next_page_token: str = proto.Field(
696
+ proto.STRING,
697
+ number=2,
698
+ )
699
+
700
+
701
+ class SearchDataItemsRequest(proto.Message):
702
+ r"""Request message for
703
+ [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems].
704
+
705
+ This message has `oneof`_ fields (mutually exclusive fields).
706
+ For each oneof, at most one member field can be set at the same time.
707
+ Setting any member of the oneof automatically clears all other
708
+ members.
709
+
710
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
711
+
712
+ Attributes:
713
+ order_by_data_item (str):
714
+ A comma-separated list of data item fields to
715
+ order by, sorted in ascending order. Use "desc"
716
+ after a field name for descending.
717
+
718
+ This field is a member of `oneof`_ ``order``.
719
+ order_by_annotation (google.cloud.aiplatform_v1.types.SearchDataItemsRequest.OrderByAnnotation):
720
+ Expression that allows ranking results based
721
+ on annotation's property.
722
+
723
+ This field is a member of `oneof`_ ``order``.
724
+ dataset (str):
725
+ Required. The resource name of the Dataset from which to
726
+ search DataItems. Format:
727
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
728
+ saved_query (str):
729
+ The resource name of a SavedQuery(annotation set in UI).
730
+ Format:
731
+ ``projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}``
732
+ All of the search will be done in the context of this
733
+ SavedQuery.
734
+ data_labeling_job (str):
735
+ The resource name of a DataLabelingJob. Format:
736
+ ``projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}``
737
+ If this field is set, all of the search will be done in the
738
+ context of this DataLabelingJob.
739
+ data_item_filter (str):
740
+ An expression for filtering the DataItem that will be
741
+ returned.
742
+
743
+ - ``data_item_id`` - for = or !=.
744
+ - ``labeled`` - for = or !=.
745
+ - ``has_annotation(ANNOTATION_SPEC_ID)`` - true only for
746
+ DataItem that have at least one annotation with
747
+ annotation_spec_id = ``ANNOTATION_SPEC_ID`` in the context
748
+ of SavedQuery or DataLabelingJob.
749
+
750
+ For example:
751
+
752
+ - ``data_item=1``
753
+ - ``has_annotation(5)``
754
+ annotations_filter (str):
755
+ An expression for filtering the Annotations that will be
756
+ returned per DataItem.
757
+
758
+ - ``annotation_spec_id`` - for = or !=.
759
+ annotation_filters (MutableSequence[str]):
760
+ An expression that specifies what Annotations will be
761
+ returned per DataItem. Annotations satisfied either of the
762
+ conditions will be returned.
763
+
764
+ - ``annotation_spec_id`` - for = or !=. Must specify
765
+ ``saved_query_id=`` - saved query id that annotations
766
+ should belong to.
767
+ field_mask (google.protobuf.field_mask_pb2.FieldMask):
768
+ Mask specifying which fields of
769
+ [DataItemView][google.cloud.aiplatform.v1.DataItemView] to
770
+ read.
771
+ annotations_limit (int):
772
+ If set, only up to this many of Annotations
773
+ will be returned per DataItemView. The maximum
774
+ value is 1000. If not set, the maximum value
775
+ will be used.
776
+ page_size (int):
777
+ Requested page size. Server may return fewer
778
+ results than requested. Default and maximum page
779
+ size is 100.
780
+ order_by (str):
781
+ A comma-separated list of fields to order by,
782
+ sorted in ascending order. Use "desc" after a
783
+ field name for descending.
784
+ page_token (str):
785
+ A token identifying a page of results for the server to
786
+ return Typically obtained via
787
+ [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token]
788
+ of the previous
789
+ [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems]
790
+ call.
791
+ """
792
+
793
+ class OrderByAnnotation(proto.Message):
794
+ r"""Expression that allows ranking results based on annotation's
795
+ property.
796
+
797
+ Attributes:
798
+ saved_query (str):
799
+ Required. Saved query of the Annotation. Only
800
+ Annotations belong to this saved query will be
801
+ considered for ordering.
802
+ order_by (str):
803
+ A comma-separated list of annotation fields to order by,
804
+ sorted in ascending order. Use "desc" after a field name for
805
+ descending. Must also specify saved_query.
806
+ """
807
+
808
+ saved_query: str = proto.Field(
809
+ proto.STRING,
810
+ number=1,
811
+ )
812
+ order_by: str = proto.Field(
813
+ proto.STRING,
814
+ number=2,
815
+ )
816
+
817
+ order_by_data_item: str = proto.Field(
818
+ proto.STRING,
819
+ number=12,
820
+ oneof="order",
821
+ )
822
+ order_by_annotation: OrderByAnnotation = proto.Field(
823
+ proto.MESSAGE,
824
+ number=13,
825
+ oneof="order",
826
+ message=OrderByAnnotation,
827
+ )
828
+ dataset: str = proto.Field(
829
+ proto.STRING,
830
+ number=1,
831
+ )
832
+ saved_query: str = proto.Field(
833
+ proto.STRING,
834
+ number=2,
835
+ )
836
+ data_labeling_job: str = proto.Field(
837
+ proto.STRING,
838
+ number=3,
839
+ )
840
+ data_item_filter: str = proto.Field(
841
+ proto.STRING,
842
+ number=4,
843
+ )
844
+ annotations_filter: str = proto.Field(
845
+ proto.STRING,
846
+ number=5,
847
+ )
848
+ annotation_filters: MutableSequence[str] = proto.RepeatedField(
849
+ proto.STRING,
850
+ number=11,
851
+ )
852
+ field_mask: field_mask_pb2.FieldMask = proto.Field(
853
+ proto.MESSAGE,
854
+ number=6,
855
+ message=field_mask_pb2.FieldMask,
856
+ )
857
+ annotations_limit: int = proto.Field(
858
+ proto.INT32,
859
+ number=7,
860
+ )
861
+ page_size: int = proto.Field(
862
+ proto.INT32,
863
+ number=8,
864
+ )
865
+ order_by: str = proto.Field(
866
+ proto.STRING,
867
+ number=9,
868
+ )
869
+ page_token: str = proto.Field(
870
+ proto.STRING,
871
+ number=10,
872
+ )
873
+
874
+
875
+ class SearchDataItemsResponse(proto.Message):
876
+ r"""Response message for
877
+ [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems].
878
+
879
+ Attributes:
880
+ data_item_views (MutableSequence[google.cloud.aiplatform_v1.types.DataItemView]):
881
+ The DataItemViews read.
882
+ next_page_token (str):
883
+ A token to retrieve next page of results. Pass to
884
+ [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token]
885
+ to obtain that page.
886
+ """
887
+
888
+ @property
889
+ def raw_page(self):
890
+ return self
891
+
892
+ data_item_views: MutableSequence["DataItemView"] = proto.RepeatedField(
893
+ proto.MESSAGE,
894
+ number=1,
895
+ message="DataItemView",
896
+ )
897
+ next_page_token: str = proto.Field(
898
+ proto.STRING,
899
+ number=2,
900
+ )
901
+
902
+
903
+ class DataItemView(proto.Message):
904
+ r"""A container for a single DataItem and Annotations on it.
905
+
906
+ Attributes:
907
+ data_item (google.cloud.aiplatform_v1.types.DataItem):
908
+ The DataItem.
909
+ annotations (MutableSequence[google.cloud.aiplatform_v1.types.Annotation]):
910
+ The Annotations on the DataItem. If too many Annotations
911
+ should be returned for the DataItem, this field will be
912
+ truncated per annotations_limit in request. If it was, then
913
+ the has_truncated_annotations will be set to true.
914
+ has_truncated_annotations (bool):
915
+ True if and only if the Annotations field has been
916
+ truncated. It happens if more Annotations for this DataItem
917
+ met the request's annotation_filter than are allowed to be
918
+ returned by annotations_limit. Note that if Annotations
919
+ field is not being returned due to field mask, then this
920
+ field will not be set to true no matter how many Annotations
921
+ are there.
922
+ """
923
+
924
+ data_item: gca_data_item.DataItem = proto.Field(
925
+ proto.MESSAGE,
926
+ number=1,
927
+ message=gca_data_item.DataItem,
928
+ )
929
+ annotations: MutableSequence[annotation.Annotation] = proto.RepeatedField(
930
+ proto.MESSAGE,
931
+ number=2,
932
+ message=annotation.Annotation,
933
+ )
934
+ has_truncated_annotations: bool = proto.Field(
935
+ proto.BOOL,
936
+ number=3,
937
+ )
938
+
939
+
940
+ class ListSavedQueriesRequest(proto.Message):
941
+ r"""Request message for
942
+ [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries].
943
+
944
+ Attributes:
945
+ parent (str):
946
+ Required. The resource name of the Dataset to list
947
+ SavedQueries from. Format:
948
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
949
+ filter (str):
950
+ The standard list filter.
951
+ page_size (int):
952
+ The standard list page size.
953
+ page_token (str):
954
+ The standard list page token.
955
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
956
+ Mask specifying which fields to read.
957
+ order_by (str):
958
+ A comma-separated list of fields to order by,
959
+ sorted in ascending order. Use "desc" after a
960
+ field name for descending.
961
+ """
962
+
963
+ parent: str = proto.Field(
964
+ proto.STRING,
965
+ number=1,
966
+ )
967
+ filter: str = proto.Field(
968
+ proto.STRING,
969
+ number=2,
970
+ )
971
+ page_size: int = proto.Field(
972
+ proto.INT32,
973
+ number=3,
974
+ )
975
+ page_token: str = proto.Field(
976
+ proto.STRING,
977
+ number=4,
978
+ )
979
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
980
+ proto.MESSAGE,
981
+ number=5,
982
+ message=field_mask_pb2.FieldMask,
983
+ )
984
+ order_by: str = proto.Field(
985
+ proto.STRING,
986
+ number=6,
987
+ )
988
+
989
+
990
+ class ListSavedQueriesResponse(proto.Message):
991
+ r"""Response message for
992
+ [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries].
993
+
994
+ Attributes:
995
+ saved_queries (MutableSequence[google.cloud.aiplatform_v1.types.SavedQuery]):
996
+ A list of SavedQueries that match the
997
+ specified filter in the request.
998
+ next_page_token (str):
999
+ The standard List next-page token.
1000
+ """
1001
+
1002
+ @property
1003
+ def raw_page(self):
1004
+ return self
1005
+
1006
+ saved_queries: MutableSequence[gca_saved_query.SavedQuery] = proto.RepeatedField(
1007
+ proto.MESSAGE,
1008
+ number=1,
1009
+ message=gca_saved_query.SavedQuery,
1010
+ )
1011
+ next_page_token: str = proto.Field(
1012
+ proto.STRING,
1013
+ number=2,
1014
+ )
1015
+
1016
+
1017
+ class DeleteSavedQueryRequest(proto.Message):
1018
+ r"""Request message for
1019
+ [DatasetService.DeleteSavedQuery][google.cloud.aiplatform.v1.DatasetService.DeleteSavedQuery].
1020
+
1021
+ Attributes:
1022
+ name (str):
1023
+ Required. The resource name of the SavedQuery to delete.
1024
+ Format:
1025
+ ``projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}``
1026
+ """
1027
+
1028
+ name: str = proto.Field(
1029
+ proto.STRING,
1030
+ number=1,
1031
+ )
1032
+
1033
+
1034
+ class GetAnnotationSpecRequest(proto.Message):
1035
+ r"""Request message for
1036
+ [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1.DatasetService.GetAnnotationSpec].
1037
+
1038
+ Attributes:
1039
+ name (str):
1040
+ Required. The name of the AnnotationSpec resource. Format:
1041
+ ``projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}``
1042
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
1043
+ Mask specifying which fields to read.
1044
+ """
1045
+
1046
+ name: str = proto.Field(
1047
+ proto.STRING,
1048
+ number=1,
1049
+ )
1050
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
1051
+ proto.MESSAGE,
1052
+ number=2,
1053
+ message=field_mask_pb2.FieldMask,
1054
+ )
1055
+
1056
+
1057
+ class ListAnnotationsRequest(proto.Message):
1058
+ r"""Request message for
1059
+ [DatasetService.ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations].
1060
+
1061
+ Attributes:
1062
+ parent (str):
1063
+ Required. The resource name of the DataItem to list
1064
+ Annotations from. Format:
1065
+ ``projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}``
1066
+ filter (str):
1067
+ The standard list filter.
1068
+ page_size (int):
1069
+ The standard list page size.
1070
+ page_token (str):
1071
+ The standard list page token.
1072
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
1073
+ Mask specifying which fields to read.
1074
+ order_by (str):
1075
+ A comma-separated list of fields to order by,
1076
+ sorted in ascending order. Use "desc" after a
1077
+ field name for descending.
1078
+ """
1079
+
1080
+ parent: str = proto.Field(
1081
+ proto.STRING,
1082
+ number=1,
1083
+ )
1084
+ filter: str = proto.Field(
1085
+ proto.STRING,
1086
+ number=2,
1087
+ )
1088
+ page_size: int = proto.Field(
1089
+ proto.INT32,
1090
+ number=3,
1091
+ )
1092
+ page_token: str = proto.Field(
1093
+ proto.STRING,
1094
+ number=4,
1095
+ )
1096
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
1097
+ proto.MESSAGE,
1098
+ number=5,
1099
+ message=field_mask_pb2.FieldMask,
1100
+ )
1101
+ order_by: str = proto.Field(
1102
+ proto.STRING,
1103
+ number=6,
1104
+ )
1105
+
1106
+
1107
+ class ListAnnotationsResponse(proto.Message):
1108
+ r"""Response message for
1109
+ [DatasetService.ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations].
1110
+
1111
+ Attributes:
1112
+ annotations (MutableSequence[google.cloud.aiplatform_v1.types.Annotation]):
1113
+ A list of Annotations that matches the
1114
+ specified filter in the request.
1115
+ next_page_token (str):
1116
+ The standard List next-page token.
1117
+ """
1118
+
1119
+ @property
1120
+ def raw_page(self):
1121
+ return self
1122
+
1123
+ annotations: MutableSequence[annotation.Annotation] = proto.RepeatedField(
1124
+ proto.MESSAGE,
1125
+ number=1,
1126
+ message=annotation.Annotation,
1127
+ )
1128
+ next_page_token: str = proto.Field(
1129
+ proto.STRING,
1130
+ number=2,
1131
+ )
1132
+
1133
+
1134
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/dataset_version.py ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
23
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "DatasetVersion",
30
+ },
31
+ )
32
+
33
+
34
+ class DatasetVersion(proto.Message):
35
+ r"""Describes the dataset version.
36
+
37
+ Attributes:
38
+ name (str):
39
+ Output only. Identifier. The resource name of the
40
+ DatasetVersion. Format:
41
+ ``projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}``
42
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
43
+ Output only. Timestamp when this
44
+ DatasetVersion was created.
45
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
46
+ Output only. Timestamp when this
47
+ DatasetVersion was last updated.
48
+ etag (str):
49
+ Used to perform consistent read-modify-write
50
+ updates. If not set, a blind "overwrite" update
51
+ happens.
52
+ big_query_dataset_name (str):
53
+ Output only. Name of the associated BigQuery
54
+ dataset.
55
+ display_name (str):
56
+ The user-defined name of the DatasetVersion.
57
+ The name can be up to 128 characters long and
58
+ can consist of any UTF-8 characters.
59
+ metadata (google.protobuf.struct_pb2.Value):
60
+ Required. Output only. Additional information
61
+ about the DatasetVersion.
62
+ model_reference (str):
63
+ Output only. Reference to the public base
64
+ model last used by the dataset version. Only set
65
+ for prompt dataset versions.
66
+ satisfies_pzs (bool):
67
+ Output only. Reserved for future use.
68
+ satisfies_pzi (bool):
69
+ Output only. Reserved for future use.
70
+ """
71
+
72
+ name: str = proto.Field(
73
+ proto.STRING,
74
+ number=1,
75
+ )
76
+ create_time: timestamp_pb2.Timestamp = proto.Field(
77
+ proto.MESSAGE,
78
+ number=2,
79
+ message=timestamp_pb2.Timestamp,
80
+ )
81
+ update_time: timestamp_pb2.Timestamp = proto.Field(
82
+ proto.MESSAGE,
83
+ number=6,
84
+ message=timestamp_pb2.Timestamp,
85
+ )
86
+ etag: str = proto.Field(
87
+ proto.STRING,
88
+ number=3,
89
+ )
90
+ big_query_dataset_name: str = proto.Field(
91
+ proto.STRING,
92
+ number=4,
93
+ )
94
+ display_name: str = proto.Field(
95
+ proto.STRING,
96
+ number=7,
97
+ )
98
+ metadata: struct_pb2.Value = proto.Field(
99
+ proto.MESSAGE,
100
+ number=8,
101
+ message=struct_pb2.Value,
102
+ )
103
+ model_reference: str = proto.Field(
104
+ proto.STRING,
105
+ number=9,
106
+ )
107
+ satisfies_pzs: bool = proto.Field(
108
+ proto.BOOL,
109
+ number=10,
110
+ )
111
+ satisfies_pzi: bool = proto.Field(
112
+ proto.BOOL,
113
+ number=11,
114
+ )
115
+
116
+
117
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/deployed_model_ref.py ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+
23
+ __protobuf__ = proto.module(
24
+ package="google.cloud.aiplatform.v1",
25
+ manifest={
26
+ "DeployedModelRef",
27
+ },
28
+ )
29
+
30
+
31
+ class DeployedModelRef(proto.Message):
32
+ r"""Points to a DeployedModel.
33
+
34
+ Attributes:
35
+ endpoint (str):
36
+ Immutable. A resource name of an Endpoint.
37
+ deployed_model_id (str):
38
+ Immutable. An ID of a DeployedModel in the
39
+ above Endpoint.
40
+ """
41
+
42
+ endpoint: str = proto.Field(
43
+ proto.STRING,
44
+ number=1,
45
+ )
46
+ deployed_model_id: str = proto.Field(
47
+ proto.STRING,
48
+ number=2,
49
+ )
50
+
51
+
52
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/deployment_resource_pool_service.py ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import deployed_model_ref
23
+ from google.cloud.aiplatform_v1.types import (
24
+ deployment_resource_pool as gca_deployment_resource_pool,
25
+ )
26
+ from google.cloud.aiplatform_v1.types import endpoint
27
+ from google.cloud.aiplatform_v1.types import operation
28
+ import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
29
+
30
+
31
+ __protobuf__ = proto.module(
32
+ package="google.cloud.aiplatform.v1",
33
+ manifest={
34
+ "CreateDeploymentResourcePoolRequest",
35
+ "CreateDeploymentResourcePoolOperationMetadata",
36
+ "GetDeploymentResourcePoolRequest",
37
+ "ListDeploymentResourcePoolsRequest",
38
+ "ListDeploymentResourcePoolsResponse",
39
+ "UpdateDeploymentResourcePoolRequest",
40
+ "UpdateDeploymentResourcePoolOperationMetadata",
41
+ "DeleteDeploymentResourcePoolRequest",
42
+ "QueryDeployedModelsRequest",
43
+ "QueryDeployedModelsResponse",
44
+ },
45
+ )
46
+
47
+
48
+ class CreateDeploymentResourcePoolRequest(proto.Message):
49
+ r"""Request message for CreateDeploymentResourcePool method.
50
+
51
+ Attributes:
52
+ parent (str):
53
+ Required. The parent location resource where this
54
+ DeploymentResourcePool will be created. Format:
55
+ ``projects/{project}/locations/{location}``
56
+ deployment_resource_pool (google.cloud.aiplatform_v1.types.DeploymentResourcePool):
57
+ Required. The DeploymentResourcePool to
58
+ create.
59
+ deployment_resource_pool_id (str):
60
+ Required. The ID to use for the DeploymentResourcePool,
61
+ which will become the final component of the
62
+ DeploymentResourcePool's resource name.
63
+
64
+ The maximum length is 63 characters, and valid characters
65
+ are ``/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/``.
66
+ """
67
+
68
+ parent: str = proto.Field(
69
+ proto.STRING,
70
+ number=1,
71
+ )
72
+ deployment_resource_pool: gca_deployment_resource_pool.DeploymentResourcePool = (
73
+ proto.Field(
74
+ proto.MESSAGE,
75
+ number=2,
76
+ message=gca_deployment_resource_pool.DeploymentResourcePool,
77
+ )
78
+ )
79
+ deployment_resource_pool_id: str = proto.Field(
80
+ proto.STRING,
81
+ number=3,
82
+ )
83
+
84
+
85
+ class CreateDeploymentResourcePoolOperationMetadata(proto.Message):
86
+ r"""Runtime operation information for
87
+ CreateDeploymentResourcePool method.
88
+
89
+ Attributes:
90
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
91
+ The operation generic information.
92
+ """
93
+
94
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
95
+ proto.MESSAGE,
96
+ number=1,
97
+ message=operation.GenericOperationMetadata,
98
+ )
99
+
100
+
101
+ class GetDeploymentResourcePoolRequest(proto.Message):
102
+ r"""Request message for GetDeploymentResourcePool method.
103
+
104
+ Attributes:
105
+ name (str):
106
+ Required. The name of the DeploymentResourcePool to
107
+ retrieve. Format:
108
+ ``projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}``
109
+ """
110
+
111
+ name: str = proto.Field(
112
+ proto.STRING,
113
+ number=1,
114
+ )
115
+
116
+
117
+ class ListDeploymentResourcePoolsRequest(proto.Message):
118
+ r"""Request message for ListDeploymentResourcePools method.
119
+
120
+ Attributes:
121
+ parent (str):
122
+ Required. The parent Location which owns this collection of
123
+ DeploymentResourcePools. Format:
124
+ ``projects/{project}/locations/{location}``
125
+ page_size (int):
126
+ The maximum number of DeploymentResourcePools
127
+ to return. The service may return fewer than
128
+ this value.
129
+ page_token (str):
130
+ A page token, received from a previous
131
+ ``ListDeploymentResourcePools`` call. Provide this to
132
+ retrieve the subsequent page.
133
+
134
+ When paginating, all other parameters provided to
135
+ ``ListDeploymentResourcePools`` must match the call that
136
+ provided the page token.
137
+ """
138
+
139
+ parent: str = proto.Field(
140
+ proto.STRING,
141
+ number=1,
142
+ )
143
+ page_size: int = proto.Field(
144
+ proto.INT32,
145
+ number=2,
146
+ )
147
+ page_token: str = proto.Field(
148
+ proto.STRING,
149
+ number=3,
150
+ )
151
+
152
+
153
+ class ListDeploymentResourcePoolsResponse(proto.Message):
154
+ r"""Response message for ListDeploymentResourcePools method.
155
+
156
+ Attributes:
157
+ deployment_resource_pools (MutableSequence[google.cloud.aiplatform_v1.types.DeploymentResourcePool]):
158
+ The DeploymentResourcePools from the
159
+ specified location.
160
+ next_page_token (str):
161
+ A token, which can be sent as ``page_token`` to retrieve the
162
+ next page. If this field is omitted, there are no subsequent
163
+ pages.
164
+ """
165
+
166
+ @property
167
+ def raw_page(self):
168
+ return self
169
+
170
+ deployment_resource_pools: MutableSequence[
171
+ gca_deployment_resource_pool.DeploymentResourcePool
172
+ ] = proto.RepeatedField(
173
+ proto.MESSAGE,
174
+ number=1,
175
+ message=gca_deployment_resource_pool.DeploymentResourcePool,
176
+ )
177
+ next_page_token: str = proto.Field(
178
+ proto.STRING,
179
+ number=2,
180
+ )
181
+
182
+
183
+ class UpdateDeploymentResourcePoolRequest(proto.Message):
184
+ r"""Request message for UpdateDeploymentResourcePool method.
185
+
186
+ Attributes:
187
+ deployment_resource_pool (google.cloud.aiplatform_v1.types.DeploymentResourcePool):
188
+ Required. The DeploymentResourcePool to update.
189
+
190
+ The DeploymentResourcePool's ``name`` field is used to
191
+ identify the DeploymentResourcePool to update. Format:
192
+ ``projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}``
193
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
194
+ Required. The list of fields to update.
195
+ """
196
+
197
+ deployment_resource_pool: gca_deployment_resource_pool.DeploymentResourcePool = (
198
+ proto.Field(
199
+ proto.MESSAGE,
200
+ number=1,
201
+ message=gca_deployment_resource_pool.DeploymentResourcePool,
202
+ )
203
+ )
204
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
205
+ proto.MESSAGE,
206
+ number=2,
207
+ message=field_mask_pb2.FieldMask,
208
+ )
209
+
210
+
211
+ class UpdateDeploymentResourcePoolOperationMetadata(proto.Message):
212
+ r"""Runtime operation information for
213
+ UpdateDeploymentResourcePool method.
214
+
215
+ Attributes:
216
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
217
+ The operation generic information.
218
+ """
219
+
220
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
221
+ proto.MESSAGE,
222
+ number=1,
223
+ message=operation.GenericOperationMetadata,
224
+ )
225
+
226
+
227
+ class DeleteDeploymentResourcePoolRequest(proto.Message):
228
+ r"""Request message for DeleteDeploymentResourcePool method.
229
+
230
+ Attributes:
231
+ name (str):
232
+ Required. The name of the DeploymentResourcePool to delete.
233
+ Format:
234
+ ``projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}``
235
+ """
236
+
237
+ name: str = proto.Field(
238
+ proto.STRING,
239
+ number=1,
240
+ )
241
+
242
+
243
+ class QueryDeployedModelsRequest(proto.Message):
244
+ r"""Request message for QueryDeployedModels method.
245
+
246
+ Attributes:
247
+ deployment_resource_pool (str):
248
+ Required. The name of the target DeploymentResourcePool to
249
+ query. Format:
250
+ ``projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}``
251
+ page_size (int):
252
+ The maximum number of DeployedModels to
253
+ return. The service may return fewer than this
254
+ value.
255
+ page_token (str):
256
+ A page token, received from a previous
257
+ ``QueryDeployedModels`` call. Provide this to retrieve the
258
+ subsequent page.
259
+
260
+ When paginating, all other parameters provided to
261
+ ``QueryDeployedModels`` must match the call that provided
262
+ the page token.
263
+ """
264
+
265
+ deployment_resource_pool: str = proto.Field(
266
+ proto.STRING,
267
+ number=1,
268
+ )
269
+ page_size: int = proto.Field(
270
+ proto.INT32,
271
+ number=2,
272
+ )
273
+ page_token: str = proto.Field(
274
+ proto.STRING,
275
+ number=3,
276
+ )
277
+
278
+
279
+ class QueryDeployedModelsResponse(proto.Message):
280
+ r"""Response message for QueryDeployedModels method.
281
+
282
+ Attributes:
283
+ deployed_models (MutableSequence[google.cloud.aiplatform_v1.types.DeployedModel]):
284
+ DEPRECATED Use deployed_model_refs instead.
285
+ next_page_token (str):
286
+ A token, which can be sent as ``page_token`` to retrieve the
287
+ next page. If this field is omitted, there are no subsequent
288
+ pages.
289
+ deployed_model_refs (MutableSequence[google.cloud.aiplatform_v1.types.DeployedModelRef]):
290
+ References to the DeployedModels that share
291
+ the specified deploymentResourcePool.
292
+ total_deployed_model_count (int):
293
+ The total number of DeployedModels on this
294
+ DeploymentResourcePool.
295
+ total_endpoint_count (int):
296
+ The total number of Endpoints that have
297
+ DeployedModels on this DeploymentResourcePool.
298
+ """
299
+
300
+ @property
301
+ def raw_page(self):
302
+ return self
303
+
304
+ deployed_models: MutableSequence[endpoint.DeployedModel] = proto.RepeatedField(
305
+ proto.MESSAGE,
306
+ number=1,
307
+ message=endpoint.DeployedModel,
308
+ )
309
+ next_page_token: str = proto.Field(
310
+ proto.STRING,
311
+ number=2,
312
+ )
313
+ deployed_model_refs: MutableSequence[deployed_model_ref.DeployedModelRef] = (
314
+ proto.RepeatedField(
315
+ proto.MESSAGE,
316
+ number=3,
317
+ message=deployed_model_ref.DeployedModelRef,
318
+ )
319
+ )
320
+ total_deployed_model_count: int = proto.Field(
321
+ proto.INT32,
322
+ number=4,
323
+ )
324
+ total_endpoint_count: int = proto.Field(
325
+ proto.INT32,
326
+ number=5,
327
+ )
328
+
329
+
330
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/deployment_stage.py ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+
23
+ __protobuf__ = proto.module(
24
+ package="google.cloud.aiplatform.v1",
25
+ manifest={
26
+ "DeploymentStage",
27
+ },
28
+ )
29
+
30
+
31
+ class DeploymentStage(proto.Enum):
32
+ r"""Stage field indicating the current progress of a deployment.
33
+
34
+ Values:
35
+ DEPLOYMENT_STAGE_UNSPECIFIED (0):
36
+ Default value. This value is unused.
37
+ STARTING_DEPLOYMENT (5):
38
+ The deployment is initializing and setting up
39
+ the environment.
40
+ PREPARING_MODEL (6):
41
+ The deployment is preparing the model assets.
42
+ CREATING_SERVING_CLUSTER (7):
43
+ The deployment is creating the underlying
44
+ serving cluster.
45
+ ADDING_NODES_TO_CLUSTER (8):
46
+ The deployment is adding nodes to the serving
47
+ cluster.
48
+ GETTING_CONTAINER_IMAGE (9):
49
+ The deployment is getting the container image
50
+ for the model server.
51
+ STARTING_MODEL_SERVER (3):
52
+ The deployment is starting the model server.
53
+ FINISHING_UP (4):
54
+ The deployment is performing finalization
55
+ steps.
56
+ DEPLOYMENT_TERMINATED (10):
57
+ The deployment has terminated.
58
+ SUCCESSFULLY_DEPLOYED (11):
59
+ The deployment has succeeded.
60
+ FAILED_TO_DEPLOY (12):
61
+ The deployment has failed.
62
+ """
63
+
64
+ DEPLOYMENT_STAGE_UNSPECIFIED = 0
65
+ STARTING_DEPLOYMENT = 5
66
+ PREPARING_MODEL = 6
67
+ CREATING_SERVING_CLUSTER = 7
68
+ ADDING_NODES_TO_CLUSTER = 8
69
+ GETTING_CONTAINER_IMAGE = 9
70
+ STARTING_MODEL_SERVER = 3
71
+ FINISHING_UP = 4
72
+ DEPLOYMENT_TERMINATED = 10
73
+ SUCCESSFULLY_DEPLOYED = 11
74
+ FAILED_TO_DEPLOY = 12
75
+
76
+
77
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/encryption_spec.py ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+
23
+ __protobuf__ = proto.module(
24
+ package="google.cloud.aiplatform.v1",
25
+ manifest={
26
+ "EncryptionSpec",
27
+ },
28
+ )
29
+
30
+
31
+ class EncryptionSpec(proto.Message):
32
+ r"""Represents a customer-managed encryption key spec that can be
33
+ applied to a top-level resource.
34
+
35
+ Attributes:
36
+ kms_key_name (str):
37
+ Required. The Cloud KMS resource identifier of the customer
38
+ managed encryption key used to protect a resource. Has the
39
+ form:
40
+ ``projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key``.
41
+ The key needs to be in the same region as where the compute
42
+ resource is created.
43
+ """
44
+
45
+ kms_key_name: str = proto.Field(
46
+ proto.STRING,
47
+ number=1,
48
+ )
49
+
50
+
51
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/endpoint.py ADDED
@@ -0,0 +1,754 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
23
+ from google.cloud.aiplatform_v1.types import explanation
24
+ from google.cloud.aiplatform_v1.types import io
25
+ from google.cloud.aiplatform_v1.types import machine_resources
26
+ from google.cloud.aiplatform_v1.types import service_networking
27
+ import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
28
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
29
+
30
+
31
+ __protobuf__ = proto.module(
32
+ package="google.cloud.aiplatform.v1",
33
+ manifest={
34
+ "Endpoint",
35
+ "DeployedModel",
36
+ "PrivateEndpoints",
37
+ "PredictRequestResponseLoggingConfig",
38
+ "ClientConnectionConfig",
39
+ "FasterDeploymentConfig",
40
+ "GenAiAdvancedFeaturesConfig",
41
+ "SpeculativeDecodingSpec",
42
+ },
43
+ )
44
+
45
+
46
+ class Endpoint(proto.Message):
47
+ r"""Models are deployed into it, and afterwards Endpoint is
48
+ called to obtain predictions and explanations.
49
+
50
+ Attributes:
51
+ name (str):
52
+ Output only. The resource name of the
53
+ Endpoint.
54
+ display_name (str):
55
+ Required. The display name of the Endpoint.
56
+ The name can be up to 128 characters long and
57
+ can consist of any UTF-8 characters.
58
+ description (str):
59
+ The description of the Endpoint.
60
+ deployed_models (MutableSequence[google.cloud.aiplatform_v1.types.DeployedModel]):
61
+ Output only. The models deployed in this Endpoint. To add or
62
+ remove DeployedModels use
63
+ [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]
64
+ and
65
+ [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]
66
+ respectively.
67
+ traffic_split (MutableMapping[str, int]):
68
+ A map from a DeployedModel's ID to the
69
+ percentage of this Endpoint's traffic that
70
+ should be forwarded to that DeployedModel.
71
+
72
+ If a DeployedModel's ID is not listed in this
73
+ map, then it receives no traffic.
74
+
75
+ The traffic percentage values must add up to
76
+ 100, or map must be empty if the Endpoint is to
77
+ not accept any traffic at a moment.
78
+ etag (str):
79
+ Used to perform consistent read-modify-write
80
+ updates. If not set, a blind "overwrite" update
81
+ happens.
82
+ labels (MutableMapping[str, str]):
83
+ The labels with user-defined metadata to
84
+ organize your Endpoints.
85
+ Label keys and values can be no longer than 64
86
+ characters (Unicode codepoints), can only
87
+ contain lowercase letters, numeric characters,
88
+ underscores and dashes. International characters
89
+ are allowed.
90
+
91
+ See https://goo.gl/xmQnxf for more information
92
+ and examples of labels.
93
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
94
+ Output only. Timestamp when this Endpoint was
95
+ created.
96
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
97
+ Output only. Timestamp when this Endpoint was
98
+ last updated.
99
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
100
+ Customer-managed encryption key spec for an
101
+ Endpoint. If set, this Endpoint and all
102
+ sub-resources of this Endpoint will be secured
103
+ by this key.
104
+ network (str):
105
+ Optional. The full name of the Google Compute Engine
106
+ `network <https://cloud.google.com//compute/docs/networks-and-firewalls#networks>`__
107
+ to which the Endpoint should be peered.
108
+
109
+ Private services access must already be configured for the
110
+ network. If left unspecified, the Endpoint is not peered
111
+ with any network.
112
+
113
+ Only one of the fields,
114
+ [network][google.cloud.aiplatform.v1.Endpoint.network] or
115
+ [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect],
116
+ can be set.
117
+
118
+ `Format <https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert>`__:
119
+ ``projects/{project}/global/networks/{network}``. Where
120
+ ``{project}`` is a project number, as in ``12345``, and
121
+ ``{network}`` is network name.
122
+ enable_private_service_connect (bool):
123
+ Deprecated: If true, expose the Endpoint via private service
124
+ connect.
125
+
126
+ Only one of the fields,
127
+ [network][google.cloud.aiplatform.v1.Endpoint.network] or
128
+ [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect],
129
+ can be set.
130
+ private_service_connect_config (google.cloud.aiplatform_v1.types.PrivateServiceConnectConfig):
131
+ Optional. Configuration for private service connect.
132
+
133
+ [network][google.cloud.aiplatform.v1.Endpoint.network] and
134
+ [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
135
+ are mutually exclusive.
136
+ model_deployment_monitoring_job (str):
137
+ Output only. Resource name of the Model Monitoring job
138
+ associated with this Endpoint if monitoring is enabled by
139
+ [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob].
140
+ Format:
141
+ ``projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}``
142
+ predict_request_response_logging_config (google.cloud.aiplatform_v1.types.PredictRequestResponseLoggingConfig):
143
+ Configures the request-response logging for
144
+ online prediction.
145
+ dedicated_endpoint_enabled (bool):
146
+ If true, the endpoint will be exposed through a dedicated
147
+ DNS [Endpoint.dedicated_endpoint_dns]. Your request to the
148
+ dedicated DNS will be isolated from other users' traffic and
149
+ will have better performance and reliability. Note: Once you
150
+ enabled dedicated endpoint, you won't be able to send
151
+ request to the shared DNS
152
+ {region}-aiplatform.googleapis.com. The limitation will be
153
+ removed soon.
154
+ dedicated_endpoint_dns (str):
155
+ Output only. DNS of the dedicated endpoint. Will only be
156
+ populated if dedicated_endpoint_enabled is true. Depending
157
+ on the features enabled, uid might be a random number or a
158
+ string. For example, if fast_tryout is enabled, uid will be
159
+ fasttryout. Format:
160
+ ``https://{endpoint_id}.{region}-{uid}.prediction.vertexai.goog``.
161
+ client_connection_config (google.cloud.aiplatform_v1.types.ClientConnectionConfig):
162
+ Configurations that are applied to the
163
+ endpoint for online prediction.
164
+ satisfies_pzs (bool):
165
+ Output only. Reserved for future use.
166
+ satisfies_pzi (bool):
167
+ Output only. Reserved for future use.
168
+ gen_ai_advanced_features_config (google.cloud.aiplatform_v1.types.GenAiAdvancedFeaturesConfig):
169
+ Optional. Configuration for
170
+ GenAiAdvancedFeatures. If the endpoint is
171
+ serving GenAI models, advanced features like
172
+ native RAG integration can be configured.
173
+ Currently, only Model Garden models are
174
+ supported.
175
+ private_model_server_enabled (bool):
176
+ If true, the model server will be isolated
177
+ from the external internet.
178
+ """
179
+
180
+ name: str = proto.Field(
181
+ proto.STRING,
182
+ number=1,
183
+ )
184
+ display_name: str = proto.Field(
185
+ proto.STRING,
186
+ number=2,
187
+ )
188
+ description: str = proto.Field(
189
+ proto.STRING,
190
+ number=3,
191
+ )
192
+ deployed_models: MutableSequence["DeployedModel"] = proto.RepeatedField(
193
+ proto.MESSAGE,
194
+ number=4,
195
+ message="DeployedModel",
196
+ )
197
+ traffic_split: MutableMapping[str, int] = proto.MapField(
198
+ proto.STRING,
199
+ proto.INT32,
200
+ number=5,
201
+ )
202
+ etag: str = proto.Field(
203
+ proto.STRING,
204
+ number=6,
205
+ )
206
+ labels: MutableMapping[str, str] = proto.MapField(
207
+ proto.STRING,
208
+ proto.STRING,
209
+ number=7,
210
+ )
211
+ create_time: timestamp_pb2.Timestamp = proto.Field(
212
+ proto.MESSAGE,
213
+ number=8,
214
+ message=timestamp_pb2.Timestamp,
215
+ )
216
+ update_time: timestamp_pb2.Timestamp = proto.Field(
217
+ proto.MESSAGE,
218
+ number=9,
219
+ message=timestamp_pb2.Timestamp,
220
+ )
221
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
222
+ proto.MESSAGE,
223
+ number=10,
224
+ message=gca_encryption_spec.EncryptionSpec,
225
+ )
226
+ network: str = proto.Field(
227
+ proto.STRING,
228
+ number=13,
229
+ )
230
+ enable_private_service_connect: bool = proto.Field(
231
+ proto.BOOL,
232
+ number=17,
233
+ )
234
+ private_service_connect_config: service_networking.PrivateServiceConnectConfig = (
235
+ proto.Field(
236
+ proto.MESSAGE,
237
+ number=21,
238
+ message=service_networking.PrivateServiceConnectConfig,
239
+ )
240
+ )
241
+ model_deployment_monitoring_job: str = proto.Field(
242
+ proto.STRING,
243
+ number=14,
244
+ )
245
+ predict_request_response_logging_config: "PredictRequestResponseLoggingConfig" = (
246
+ proto.Field(
247
+ proto.MESSAGE,
248
+ number=18,
249
+ message="PredictRequestResponseLoggingConfig",
250
+ )
251
+ )
252
+ dedicated_endpoint_enabled: bool = proto.Field(
253
+ proto.BOOL,
254
+ number=24,
255
+ )
256
+ dedicated_endpoint_dns: str = proto.Field(
257
+ proto.STRING,
258
+ number=25,
259
+ )
260
+ client_connection_config: "ClientConnectionConfig" = proto.Field(
261
+ proto.MESSAGE,
262
+ number=23,
263
+ message="ClientConnectionConfig",
264
+ )
265
+ satisfies_pzs: bool = proto.Field(
266
+ proto.BOOL,
267
+ number=27,
268
+ )
269
+ satisfies_pzi: bool = proto.Field(
270
+ proto.BOOL,
271
+ number=28,
272
+ )
273
+ gen_ai_advanced_features_config: "GenAiAdvancedFeaturesConfig" = proto.Field(
274
+ proto.MESSAGE,
275
+ number=29,
276
+ message="GenAiAdvancedFeaturesConfig",
277
+ )
278
+ private_model_server_enabled: bool = proto.Field(
279
+ proto.BOOL,
280
+ number=30,
281
+ )
282
+
283
+
284
+ class DeployedModel(proto.Message):
285
+ r"""A deployment of a Model. Endpoints contain one or more
286
+ DeployedModels.
287
+
288
+ This message has `oneof`_ fields (mutually exclusive fields).
289
+ For each oneof, at most one member field can be set at the same time.
290
+ Setting any member of the oneof automatically clears all other
291
+ members.
292
+
293
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
294
+
295
+ Attributes:
296
+ dedicated_resources (google.cloud.aiplatform_v1.types.DedicatedResources):
297
+ A description of resources that are dedicated
298
+ to the DeployedModel, and that need a higher
299
+ degree of manual configuration.
300
+
301
+ This field is a member of `oneof`_ ``prediction_resources``.
302
+ automatic_resources (google.cloud.aiplatform_v1.types.AutomaticResources):
303
+ A description of resources that to large
304
+ degree are decided by Vertex AI, and require
305
+ only a modest additional configuration.
306
+
307
+ This field is a member of `oneof`_ ``prediction_resources``.
308
+ shared_resources (str):
309
+ The resource name of the shared DeploymentResourcePool to
310
+ deploy on. Format:
311
+ ``projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}``
312
+
313
+ This field is a member of `oneof`_ ``prediction_resources``.
314
+ id (str):
315
+ Immutable. The ID of the DeployedModel. If not provided upon
316
+ deployment, Vertex AI will generate a value for this ID.
317
+
318
+ This value should be 1-10 characters, and valid characters
319
+ are ``/[0-9]/``.
320
+ model (str):
321
+ The resource name of the Model that this is the deployment
322
+ of. Note that the Model may be in a different location than
323
+ the DeployedModel's Endpoint.
324
+
325
+ The resource name may contain version id or version alias to
326
+ specify the version. Example:
327
+ ``projects/{project}/locations/{location}/models/{model}@2``
328
+ or
329
+ ``projects/{project}/locations/{location}/models/{model}@golden``
330
+ if no version is specified, the default version will be
331
+ deployed.
332
+ model_version_id (str):
333
+ Output only. The version ID of the model that
334
+ is deployed.
335
+ display_name (str):
336
+ The display name of the DeployedModel. If not provided upon
337
+ creation, the Model's display_name is used.
338
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
339
+ Output only. Timestamp when the DeployedModel
340
+ was created.
341
+ explanation_spec (google.cloud.aiplatform_v1.types.ExplanationSpec):
342
+ Explanation configuration for this DeployedModel.
343
+
344
+ When deploying a Model using
345
+ [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
346
+ this value overrides the value of
347
+ [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
348
+ All fields of
349
+ [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
350
+ are optional in the request. If a field of
351
+ [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
352
+ is not populated, the value of the same field of
353
+ [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
354
+ is inherited. If the corresponding
355
+ [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
356
+ is not populated, all fields of the
357
+ [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
358
+ will be used for the explanation configuration.
359
+ disable_explanations (bool):
360
+ If true, deploy the model without explainable feature,
361
+ regardless the existence of
362
+ [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
363
+ or
364
+ [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec].
365
+ service_account (str):
366
+ The service account that the DeployedModel's container runs
367
+ as. Specify the email address of the service account. If
368
+ this service account is not specified, the container runs as
369
+ a service account that doesn't have access to the resource
370
+ project.
371
+
372
+ Users deploying the Model must have the
373
+ ``iam.serviceAccounts.actAs`` permission on this service
374
+ account.
375
+ disable_container_logging (bool):
376
+ For custom-trained Models and AutoML Tabular Models, the
377
+ container of the DeployedModel instances will send
378
+ ``stderr`` and ``stdout`` streams to Cloud Logging by
379
+ default. Please note that the logs incur cost, which are
380
+ subject to `Cloud Logging
381
+ pricing <https://cloud.google.com/logging/pricing>`__.
382
+
383
+ User can disable container logging by setting this flag to
384
+ true.
385
+ enable_access_logging (bool):
386
+ If true, online prediction access logs are
387
+ sent to Cloud Logging.
388
+ These logs are like standard server access logs,
389
+ containing information like timestamp and
390
+ latency for each prediction request.
391
+
392
+ Note that logs may incur a cost, especially if
393
+ your project receives prediction requests at a
394
+ high queries per second rate (QPS). Estimate
395
+ your costs before enabling this option.
396
+ private_endpoints (google.cloud.aiplatform_v1.types.PrivateEndpoints):
397
+ Output only. Provide paths for users to send
398
+ predict/explain/health requests directly to the deployed
399
+ model services running on Cloud via private services access.
400
+ This field is populated if
401
+ [network][google.cloud.aiplatform.v1.Endpoint.network] is
402
+ configured.
403
+ faster_deployment_config (google.cloud.aiplatform_v1.types.FasterDeploymentConfig):
404
+ Configuration for faster model deployment.
405
+ status (google.cloud.aiplatform_v1.types.DeployedModel.Status):
406
+ Output only. Runtime status of the deployed
407
+ model.
408
+ system_labels (MutableMapping[str, str]):
409
+ System labels to apply to Model Garden
410
+ deployments. System labels are managed by Google
411
+ for internal use only.
412
+ checkpoint_id (str):
413
+ The checkpoint id of the model.
414
+ speculative_decoding_spec (google.cloud.aiplatform_v1.types.SpeculativeDecodingSpec):
415
+ Optional. Spec for configuring speculative
416
+ decoding.
417
+ """
418
+
419
+ class Status(proto.Message):
420
+ r"""Runtime status of the deployed model.
421
+
422
+ Attributes:
423
+ message (str):
424
+ Output only. The latest deployed model's
425
+ status message (if any).
426
+ last_update_time (google.protobuf.timestamp_pb2.Timestamp):
427
+ Output only. The time at which the status was
428
+ last updated.
429
+ available_replica_count (int):
430
+ Output only. The number of available replicas
431
+ of the deployed model.
432
+ """
433
+
434
+ message: str = proto.Field(
435
+ proto.STRING,
436
+ number=1,
437
+ )
438
+ last_update_time: timestamp_pb2.Timestamp = proto.Field(
439
+ proto.MESSAGE,
440
+ number=2,
441
+ message=timestamp_pb2.Timestamp,
442
+ )
443
+ available_replica_count: int = proto.Field(
444
+ proto.INT32,
445
+ number=3,
446
+ )
447
+
448
+ dedicated_resources: machine_resources.DedicatedResources = proto.Field(
449
+ proto.MESSAGE,
450
+ number=7,
451
+ oneof="prediction_resources",
452
+ message=machine_resources.DedicatedResources,
453
+ )
454
+ automatic_resources: machine_resources.AutomaticResources = proto.Field(
455
+ proto.MESSAGE,
456
+ number=8,
457
+ oneof="prediction_resources",
458
+ message=machine_resources.AutomaticResources,
459
+ )
460
+ shared_resources: str = proto.Field(
461
+ proto.STRING,
462
+ number=17,
463
+ oneof="prediction_resources",
464
+ )
465
+ id: str = proto.Field(
466
+ proto.STRING,
467
+ number=1,
468
+ )
469
+ model: str = proto.Field(
470
+ proto.STRING,
471
+ number=2,
472
+ )
473
+ model_version_id: str = proto.Field(
474
+ proto.STRING,
475
+ number=18,
476
+ )
477
+ display_name: str = proto.Field(
478
+ proto.STRING,
479
+ number=3,
480
+ )
481
+ create_time: timestamp_pb2.Timestamp = proto.Field(
482
+ proto.MESSAGE,
483
+ number=6,
484
+ message=timestamp_pb2.Timestamp,
485
+ )
486
+ explanation_spec: explanation.ExplanationSpec = proto.Field(
487
+ proto.MESSAGE,
488
+ number=9,
489
+ message=explanation.ExplanationSpec,
490
+ )
491
+ disable_explanations: bool = proto.Field(
492
+ proto.BOOL,
493
+ number=19,
494
+ )
495
+ service_account: str = proto.Field(
496
+ proto.STRING,
497
+ number=11,
498
+ )
499
+ disable_container_logging: bool = proto.Field(
500
+ proto.BOOL,
501
+ number=15,
502
+ )
503
+ enable_access_logging: bool = proto.Field(
504
+ proto.BOOL,
505
+ number=13,
506
+ )
507
+ private_endpoints: "PrivateEndpoints" = proto.Field(
508
+ proto.MESSAGE,
509
+ number=14,
510
+ message="PrivateEndpoints",
511
+ )
512
+ faster_deployment_config: "FasterDeploymentConfig" = proto.Field(
513
+ proto.MESSAGE,
514
+ number=23,
515
+ message="FasterDeploymentConfig",
516
+ )
517
+ status: Status = proto.Field(
518
+ proto.MESSAGE,
519
+ number=26,
520
+ message=Status,
521
+ )
522
+ system_labels: MutableMapping[str, str] = proto.MapField(
523
+ proto.STRING,
524
+ proto.STRING,
525
+ number=28,
526
+ )
527
+ checkpoint_id: str = proto.Field(
528
+ proto.STRING,
529
+ number=29,
530
+ )
531
+ speculative_decoding_spec: "SpeculativeDecodingSpec" = proto.Field(
532
+ proto.MESSAGE,
533
+ number=30,
534
+ message="SpeculativeDecodingSpec",
535
+ )
536
+
537
+
538
+ class PrivateEndpoints(proto.Message):
539
+ r"""PrivateEndpoints proto is used to provide paths for users to send
540
+ requests privately. To send request via private service access, use
541
+ predict_http_uri, explain_http_uri or health_http_uri. To send
542
+ request via private service connect, use service_attachment.
543
+
544
+ Attributes:
545
+ predict_http_uri (str):
546
+ Output only. Http(s) path to send prediction
547
+ requests.
548
+ explain_http_uri (str):
549
+ Output only. Http(s) path to send explain
550
+ requests.
551
+ health_http_uri (str):
552
+ Output only. Http(s) path to send health
553
+ check requests.
554
+ service_attachment (str):
555
+ Output only. The name of the service
556
+ attachment resource. Populated if private
557
+ service connect is enabled.
558
+ """
559
+
560
+ predict_http_uri: str = proto.Field(
561
+ proto.STRING,
562
+ number=1,
563
+ )
564
+ explain_http_uri: str = proto.Field(
565
+ proto.STRING,
566
+ number=2,
567
+ )
568
+ health_http_uri: str = proto.Field(
569
+ proto.STRING,
570
+ number=3,
571
+ )
572
+ service_attachment: str = proto.Field(
573
+ proto.STRING,
574
+ number=4,
575
+ )
576
+
577
+
578
+ class PredictRequestResponseLoggingConfig(proto.Message):
579
+ r"""Configuration for logging request-response to a BigQuery
580
+ table.
581
+
582
+ Attributes:
583
+ enabled (bool):
584
+ If logging is enabled or not.
585
+ sampling_rate (float):
586
+ Percentage of requests to be logged, expressed as a fraction
587
+ in range(0,1].
588
+ bigquery_destination (google.cloud.aiplatform_v1.types.BigQueryDestination):
589
+ BigQuery table for logging. If only given a project, a new
590
+ dataset will be created with name
591
+ ``logging_<endpoint-display-name>_<endpoint-id>`` where will
592
+ be made BigQuery-dataset-name compatible (e.g. most special
593
+ characters will become underscores). If no table name is
594
+ given, a new table will be created with name
595
+ ``request_response_logging``
596
+ """
597
+
598
+ enabled: bool = proto.Field(
599
+ proto.BOOL,
600
+ number=1,
601
+ )
602
+ sampling_rate: float = proto.Field(
603
+ proto.DOUBLE,
604
+ number=2,
605
+ )
606
+ bigquery_destination: io.BigQueryDestination = proto.Field(
607
+ proto.MESSAGE,
608
+ number=3,
609
+ message=io.BigQueryDestination,
610
+ )
611
+
612
+
613
+ class ClientConnectionConfig(proto.Message):
614
+ r"""Configurations (e.g. inference timeout) that are applied on
615
+ your endpoints.
616
+
617
+ Attributes:
618
+ inference_timeout (google.protobuf.duration_pb2.Duration):
619
+ Customizable online prediction request
620
+ timeout.
621
+ """
622
+
623
+ inference_timeout: duration_pb2.Duration = proto.Field(
624
+ proto.MESSAGE,
625
+ number=1,
626
+ message=duration_pb2.Duration,
627
+ )
628
+
629
+
630
+ class FasterDeploymentConfig(proto.Message):
631
+ r"""Configuration for faster model deployment.
632
+
633
+ Attributes:
634
+ fast_tryout_enabled (bool):
635
+ If true, enable fast tryout feature for this
636
+ deployed model.
637
+ """
638
+
639
+ fast_tryout_enabled: bool = proto.Field(
640
+ proto.BOOL,
641
+ number=2,
642
+ )
643
+
644
+
645
+ class GenAiAdvancedFeaturesConfig(proto.Message):
646
+ r"""Configuration for GenAiAdvancedFeatures.
647
+
648
+ Attributes:
649
+ rag_config (google.cloud.aiplatform_v1.types.GenAiAdvancedFeaturesConfig.RagConfig):
650
+ Configuration for Retrieval Augmented
651
+ Generation feature.
652
+ """
653
+
654
+ class RagConfig(proto.Message):
655
+ r"""Configuration for Retrieval Augmented Generation feature.
656
+
657
+ Attributes:
658
+ enable_rag (bool):
659
+ If true, enable Retrieval Augmented
660
+ Generation in ChatCompletion request. Once
661
+ enabled, the endpoint will be identified as
662
+ GenAI endpoint and Arthedain router will be
663
+ used.
664
+ """
665
+
666
+ enable_rag: bool = proto.Field(
667
+ proto.BOOL,
668
+ number=1,
669
+ )
670
+
671
+ rag_config: RagConfig = proto.Field(
672
+ proto.MESSAGE,
673
+ number=1,
674
+ message=RagConfig,
675
+ )
676
+
677
+
678
+ class SpeculativeDecodingSpec(proto.Message):
679
+ r"""Configuration for Speculative Decoding.
680
+
681
+ This message has `oneof`_ fields (mutually exclusive fields).
682
+ For each oneof, at most one member field can be set at the same time.
683
+ Setting any member of the oneof automatically clears all other
684
+ members.
685
+
686
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
687
+
688
+ Attributes:
689
+ draft_model_speculation (google.cloud.aiplatform_v1.types.SpeculativeDecodingSpec.DraftModelSpeculation):
690
+ draft model speculation.
691
+
692
+ This field is a member of `oneof`_ ``speculation``.
693
+ ngram_speculation (google.cloud.aiplatform_v1.types.SpeculativeDecodingSpec.NgramSpeculation):
694
+ N-Gram speculation.
695
+
696
+ This field is a member of `oneof`_ ``speculation``.
697
+ speculative_token_count (int):
698
+ The number of speculative tokens to generate
699
+ at each step.
700
+ """
701
+
702
+ class DraftModelSpeculation(proto.Message):
703
+ r"""Draft model speculation works by using the smaller model to
704
+ generate candidate tokens for speculative decoding.
705
+
706
+ Attributes:
707
+ draft_model (str):
708
+ Required. The resource name of the draft
709
+ model.
710
+ """
711
+
712
+ draft_model: str = proto.Field(
713
+ proto.STRING,
714
+ number=1,
715
+ )
716
+
717
+ class NgramSpeculation(proto.Message):
718
+ r"""N-Gram speculation works by trying to find matching tokens in
719
+ the previous prompt sequence and use those as speculation for
720
+ generating new tokens.
721
+
722
+ Attributes:
723
+ ngram_size (int):
724
+ The number of last N input tokens used as
725
+ ngram to search/match against the previous
726
+ prompt sequence. This is equal to the N in
727
+ N-Gram.
728
+ The default value is 3 if not specified.
729
+ """
730
+
731
+ ngram_size: int = proto.Field(
732
+ proto.INT32,
733
+ number=1,
734
+ )
735
+
736
+ draft_model_speculation: DraftModelSpeculation = proto.Field(
737
+ proto.MESSAGE,
738
+ number=2,
739
+ oneof="speculation",
740
+ message=DraftModelSpeculation,
741
+ )
742
+ ngram_speculation: NgramSpeculation = proto.Field(
743
+ proto.MESSAGE,
744
+ number=3,
745
+ oneof="speculation",
746
+ message=NgramSpeculation,
747
+ )
748
+ speculative_token_count: int = proto.Field(
749
+ proto.INT32,
750
+ number=1,
751
+ )
752
+
753
+
754
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/entity_type.py ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import featurestore_monitoring
23
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "EntityType",
30
+ },
31
+ )
32
+
33
+
34
+ class EntityType(proto.Message):
35
+ r"""An entity type is a type of object in a system that needs to
36
+ be modeled and have stored information about. For example,
37
+ driver is an entity type, and driver0 is an instance of an
38
+ entity type driver.
39
+
40
+ Attributes:
41
+ name (str):
42
+ Immutable. Name of the EntityType. Format:
43
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}``
44
+
45
+ The last part entity_type is assigned by the client. The
46
+ entity_type can be up to 64 characters long and can consist
47
+ only of ASCII Latin letters A-Z and a-z and underscore(\_),
48
+ and ASCII digits 0-9 starting with a letter. The value will
49
+ be unique given a featurestore.
50
+ description (str):
51
+ Optional. Description of the EntityType.
52
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
53
+ Output only. Timestamp when this EntityType
54
+ was created.
55
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
56
+ Output only. Timestamp when this EntityType
57
+ was most recently updated.
58
+ labels (MutableMapping[str, str]):
59
+ Optional. The labels with user-defined
60
+ metadata to organize your EntityTypes.
61
+
62
+ Label keys and values can be no longer than 64
63
+ characters (Unicode codepoints), can only
64
+ contain lowercase letters, numeric characters,
65
+ underscores and dashes. International characters
66
+ are allowed.
67
+
68
+ See https://goo.gl/xmQnxf for more information
69
+ on and examples of labels. No more than 64 user
70
+ labels can be associated with one EntityType
71
+ (System labels are excluded)."
72
+ System reserved label keys are prefixed with
73
+ "aiplatform.googleapis.com/" and are immutable.
74
+ etag (str):
75
+ Optional. Used to perform a consistent
76
+ read-modify-write updates. If not set, a blind
77
+ "overwrite" update happens.
78
+ monitoring_config (google.cloud.aiplatform_v1.types.FeaturestoreMonitoringConfig):
79
+ Optional. The default monitoring configuration for all
80
+ Features with value type
81
+ ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType])
82
+ BOOL, STRING, DOUBLE or INT64 under this EntityType.
83
+
84
+ If this is populated with
85
+ [FeaturestoreMonitoringConfig.monitoring_interval]
86
+ specified, snapshot analysis monitoring is enabled.
87
+ Otherwise, snapshot analysis monitoring is disabled.
88
+ offline_storage_ttl_days (int):
89
+ Optional. Config for data retention policy in offline
90
+ storage. TTL in days for feature values that will be stored
91
+ in offline storage. The Feature Store offline storage
92
+ periodically removes obsolete feature values older than
93
+ ``offline_storage_ttl_days`` since the feature generation
94
+ time. If unset (or explicitly set to 0), default to 4000
95
+ days TTL.
96
+ satisfies_pzs (bool):
97
+ Output only. Reserved for future use.
98
+ satisfies_pzi (bool):
99
+ Output only. Reserved for future use.
100
+ """
101
+
102
+ name: str = proto.Field(
103
+ proto.STRING,
104
+ number=1,
105
+ )
106
+ description: str = proto.Field(
107
+ proto.STRING,
108
+ number=2,
109
+ )
110
+ create_time: timestamp_pb2.Timestamp = proto.Field(
111
+ proto.MESSAGE,
112
+ number=3,
113
+ message=timestamp_pb2.Timestamp,
114
+ )
115
+ update_time: timestamp_pb2.Timestamp = proto.Field(
116
+ proto.MESSAGE,
117
+ number=4,
118
+ message=timestamp_pb2.Timestamp,
119
+ )
120
+ labels: MutableMapping[str, str] = proto.MapField(
121
+ proto.STRING,
122
+ proto.STRING,
123
+ number=6,
124
+ )
125
+ etag: str = proto.Field(
126
+ proto.STRING,
127
+ number=7,
128
+ )
129
+ monitoring_config: featurestore_monitoring.FeaturestoreMonitoringConfig = (
130
+ proto.Field(
131
+ proto.MESSAGE,
132
+ number=8,
133
+ message=featurestore_monitoring.FeaturestoreMonitoringConfig,
134
+ )
135
+ )
136
+ offline_storage_ttl_days: int = proto.Field(
137
+ proto.INT32,
138
+ number=10,
139
+ )
140
+ satisfies_pzs: bool = proto.Field(
141
+ proto.BOOL,
142
+ number=11,
143
+ )
144
+ satisfies_pzi: bool = proto.Field(
145
+ proto.BOOL,
146
+ number=12,
147
+ )
148
+
149
+
150
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/env_var.py ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+
23
+ __protobuf__ = proto.module(
24
+ package="google.cloud.aiplatform.v1",
25
+ manifest={
26
+ "EnvVar",
27
+ "SecretRef",
28
+ "SecretEnvVar",
29
+ },
30
+ )
31
+
32
+
33
+ class EnvVar(proto.Message):
34
+ r"""Represents an environment variable present in a Container or
35
+ Python Module.
36
+
37
+ Attributes:
38
+ name (str):
39
+ Required. Name of the environment variable.
40
+ Must be a valid C identifier.
41
+ value (str):
42
+ Required. Variables that reference a $(VAR_NAME) are
43
+ expanded using the previous defined environment variables in
44
+ the container and any service environment variables. If a
45
+ variable cannot be resolved, the reference in the input
46
+ string will be unchanged. The $(VAR_NAME) syntax can be
47
+ escaped with a double $$, ie: $$(VAR_NAME). Escaped
48
+ references will never be expanded, regardless of whether the
49
+ variable exists or not.
50
+ """
51
+
52
+ name: str = proto.Field(
53
+ proto.STRING,
54
+ number=1,
55
+ )
56
+ value: str = proto.Field(
57
+ proto.STRING,
58
+ number=2,
59
+ )
60
+
61
+
62
+ class SecretRef(proto.Message):
63
+ r"""Reference to a secret stored in the Cloud Secret Manager that
64
+ will provide the value for this environment variable.
65
+
66
+ Attributes:
67
+ secret (str):
68
+ Required. The name of the secret in Cloud Secret Manager.
69
+ Format: {secret_name}.
70
+ version (str):
71
+ The Cloud Secret Manager secret version.
72
+ Can be 'latest' for the latest version, an
73
+ integer for a specific version, or a version
74
+ alias.
75
+ """
76
+
77
+ secret: str = proto.Field(
78
+ proto.STRING,
79
+ number=1,
80
+ )
81
+ version: str = proto.Field(
82
+ proto.STRING,
83
+ number=2,
84
+ )
85
+
86
+
87
+ class SecretEnvVar(proto.Message):
88
+ r"""Represents an environment variable where the value is a
89
+ secret in Cloud Secret Manager.
90
+
91
+ Attributes:
92
+ name (str):
93
+ Required. Name of the secret environment
94
+ variable.
95
+ secret_ref (google.cloud.aiplatform_v1.types.SecretRef):
96
+ Required. Reference to a secret stored in the
97
+ Cloud Secret Manager that will provide the value
98
+ for this environment variable.
99
+ """
100
+
101
+ name: str = proto.Field(
102
+ proto.STRING,
103
+ number=1,
104
+ )
105
+ secret_ref: "SecretRef" = proto.Field(
106
+ proto.MESSAGE,
107
+ number=2,
108
+ message="SecretRef",
109
+ )
110
+
111
+
112
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/evaluation_service.py ADDED
The diff for this file is too large to render. See raw diff
 
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/explanation.py ADDED
@@ -0,0 +1,1058 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import explanation_metadata
23
+ from google.cloud.aiplatform_v1.types import io
24
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
25
+
26
+
27
+ __protobuf__ = proto.module(
28
+ package="google.cloud.aiplatform.v1",
29
+ manifest={
30
+ "Explanation",
31
+ "ModelExplanation",
32
+ "Attribution",
33
+ "Neighbor",
34
+ "ExplanationSpec",
35
+ "ExplanationParameters",
36
+ "SampledShapleyAttribution",
37
+ "IntegratedGradientsAttribution",
38
+ "XraiAttribution",
39
+ "SmoothGradConfig",
40
+ "FeatureNoiseSigma",
41
+ "BlurBaselineConfig",
42
+ "Examples",
43
+ "Presets",
44
+ "ExplanationSpecOverride",
45
+ "ExplanationMetadataOverride",
46
+ "ExamplesOverride",
47
+ "ExamplesRestrictionsNamespace",
48
+ },
49
+ )
50
+
51
+
52
+ class Explanation(proto.Message):
53
+ r"""Explanation of a prediction (provided in
54
+ [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions])
55
+ produced by the Model on a given
56
+ [instance][google.cloud.aiplatform.v1.ExplainRequest.instances].
57
+
58
+ Attributes:
59
+ attributions (MutableSequence[google.cloud.aiplatform_v1.types.Attribution]):
60
+ Output only. Feature attributions grouped by predicted
61
+ outputs.
62
+
63
+ For Models that predict only one output, such as regression
64
+ Models that predict only one score, there is only one
65
+ attibution that explains the predicted output. For Models
66
+ that predict multiple outputs, such as multiclass Models
67
+ that predict multiple classes, each element explains one
68
+ specific item.
69
+ [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index]
70
+ can be used to identify which output this attribution is
71
+ explaining.
72
+
73
+ By default, we provide Shapley values for the predicted
74
+ class. However, you can configure the explanation request to
75
+ generate Shapley values for any other classes too. For
76
+ example, if a model predicts a probability of ``0.4`` for
77
+ approving a loan application, the model's decision is to
78
+ reject the application since
79
+ ``p(reject) = 0.6 > p(approve) = 0.4``, and the default
80
+ Shapley values would be computed for rejection decision and
81
+ not approval, even though the latter might be the positive
82
+ class.
83
+
84
+ If users set
85
+ [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k],
86
+ the attributions are sorted by
87
+ [instance_output_value][google.cloud.aiplatform.v1.Attribution.instance_output_value]
88
+ in descending order. If
89
+ [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices]
90
+ is specified, the attributions are stored by
91
+ [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index]
92
+ in the same order as they appear in the output_indices.
93
+ neighbors (MutableSequence[google.cloud.aiplatform_v1.types.Neighbor]):
94
+ Output only. List of the nearest neighbors
95
+ for example-based explanations.
96
+ For models deployed with the examples
97
+ explanations feature enabled, the attributions
98
+ field is empty and instead the neighbors field
99
+ is populated.
100
+ """
101
+
102
+ attributions: MutableSequence["Attribution"] = proto.RepeatedField(
103
+ proto.MESSAGE,
104
+ number=1,
105
+ message="Attribution",
106
+ )
107
+ neighbors: MutableSequence["Neighbor"] = proto.RepeatedField(
108
+ proto.MESSAGE,
109
+ number=2,
110
+ message="Neighbor",
111
+ )
112
+
113
+
114
+ class ModelExplanation(proto.Message):
115
+ r"""Aggregated explanation metrics for a Model over a set of
116
+ instances.
117
+
118
+ Attributes:
119
+ mean_attributions (MutableSequence[google.cloud.aiplatform_v1.types.Attribution]):
120
+ Output only. Aggregated attributions explaining the Model's
121
+ prediction outputs over the set of instances. The
122
+ attributions are grouped by outputs.
123
+
124
+ For Models that predict only one output, such as regression
125
+ Models that predict only one score, there is only one
126
+ attibution that explains the predicted output. For Models
127
+ that predict multiple outputs, such as multiclass Models
128
+ that predict multiple classes, each element explains one
129
+ specific item.
130
+ [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index]
131
+ can be used to identify which output this attribution is
132
+ explaining.
133
+
134
+ The
135
+ [baselineOutputValue][google.cloud.aiplatform.v1.Attribution.baseline_output_value],
136
+ [instanceOutputValue][google.cloud.aiplatform.v1.Attribution.instance_output_value]
137
+ and
138
+ [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]
139
+ fields are averaged over the test data.
140
+
141
+ NOTE: Currently AutoML tabular classification Models produce
142
+ only one attribution, which averages attributions over all
143
+ the classes it predicts.
144
+ [Attribution.approximation_error][google.cloud.aiplatform.v1.Attribution.approximation_error]
145
+ is not populated.
146
+ """
147
+
148
+ mean_attributions: MutableSequence["Attribution"] = proto.RepeatedField(
149
+ proto.MESSAGE,
150
+ number=1,
151
+ message="Attribution",
152
+ )
153
+
154
+
155
+ class Attribution(proto.Message):
156
+ r"""Attribution that explains a particular prediction output.
157
+
158
+ Attributes:
159
+ baseline_output_value (float):
160
+ Output only. Model predicted output if the input instance is
161
+ constructed from the baselines of all the features defined
162
+ in
163
+ [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs].
164
+ The field name of the output is determined by the key in
165
+ [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs].
166
+
167
+ If the Model's predicted output has multiple dimensions
168
+ (rank > 1), this is the value in the output located by
169
+ [output_index][google.cloud.aiplatform.v1.Attribution.output_index].
170
+
171
+ If there are multiple baselines, their output values are
172
+ averaged.
173
+ instance_output_value (float):
174
+ Output only. Model predicted output on the corresponding
175
+ [explanation instance][ExplainRequest.instances]. The field
176
+ name of the output is determined by the key in
177
+ [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs].
178
+
179
+ If the Model predicted output has multiple dimensions, this
180
+ is the value in the output located by
181
+ [output_index][google.cloud.aiplatform.v1.Attribution.output_index].
182
+ feature_attributions (google.protobuf.struct_pb2.Value):
183
+ Output only. Attributions of each explained feature.
184
+ Features are extracted from the [prediction
185
+ instances][google.cloud.aiplatform.v1.ExplainRequest.instances]
186
+ according to [explanation metadata for
187
+ inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs].
188
+
189
+ The value is a struct, whose keys are the name of the
190
+ feature. The values are how much the feature in the
191
+ [instance][google.cloud.aiplatform.v1.ExplainRequest.instances]
192
+ contributed to the predicted result.
193
+
194
+ The format of the value is determined by the feature's input
195
+ format:
196
+
197
+ - If the feature is a scalar value, the attribution value is
198
+ a [floating number][google.protobuf.Value.number_value].
199
+
200
+ - If the feature is an array of scalar values, the
201
+ attribution value is an
202
+ [array][google.protobuf.Value.list_value].
203
+
204
+ - If the feature is a struct, the attribution value is a
205
+ [struct][google.protobuf.Value.struct_value]. The keys in
206
+ the attribution value struct are the same as the keys in
207
+ the feature struct. The formats of the values in the
208
+ attribution struct are determined by the formats of the
209
+ values in the feature struct.
210
+
211
+ The
212
+ [ExplanationMetadata.feature_attributions_schema_uri][google.cloud.aiplatform.v1.ExplanationMetadata.feature_attributions_schema_uri]
213
+ field, pointed to by the
214
+ [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec]
215
+ field of the
216
+ [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models]
217
+ object, points to the schema file that describes the
218
+ features and their attribution values (if it is populated).
219
+ output_index (MutableSequence[int]):
220
+ Output only. The index that locates the explained prediction
221
+ output.
222
+
223
+ If the prediction output is a scalar value, output_index is
224
+ not populated. If the prediction output has multiple
225
+ dimensions, the length of the output_index list is the same
226
+ as the number of dimensions of the output. The i-th element
227
+ in output_index is the element index of the i-th dimension
228
+ of the output vector. Indices start from 0.
229
+ output_display_name (str):
230
+ Output only. The display name of the output identified by
231
+ [output_index][google.cloud.aiplatform.v1.Attribution.output_index].
232
+ For example, the predicted class name by a
233
+ multi-classification Model.
234
+
235
+ This field is only populated iff the Model predicts display
236
+ names as a separate field along with the explained output.
237
+ The predicted display name must has the same shape of the
238
+ explained output, and can be located using output_index.
239
+ approximation_error (float):
240
+ Output only. Error of
241
+ [feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]
242
+ caused by approximation used in the explanation method.
243
+ Lower value means more precise attributions.
244
+
245
+ - For Sampled Shapley
246
+ [attribution][google.cloud.aiplatform.v1.ExplanationParameters.sampled_shapley_attribution],
247
+ increasing
248
+ [path_count][google.cloud.aiplatform.v1.SampledShapleyAttribution.path_count]
249
+ might reduce the error.
250
+ - For Integrated Gradients
251
+ [attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution],
252
+ increasing
253
+ [step_count][google.cloud.aiplatform.v1.IntegratedGradientsAttribution.step_count]
254
+ might reduce the error.
255
+ - For [XRAI
256
+ attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution],
257
+ increasing
258
+ [step_count][google.cloud.aiplatform.v1.XraiAttribution.step_count]
259
+ might reduce the error.
260
+
261
+ See `this
262
+ introduction </vertex-ai/docs/explainable-ai/overview>`__
263
+ for more information.
264
+ output_name (str):
265
+ Output only. Name of the explain output. Specified as the
266
+ key in
267
+ [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs].
268
+ """
269
+
270
+ baseline_output_value: float = proto.Field(
271
+ proto.DOUBLE,
272
+ number=1,
273
+ )
274
+ instance_output_value: float = proto.Field(
275
+ proto.DOUBLE,
276
+ number=2,
277
+ )
278
+ feature_attributions: struct_pb2.Value = proto.Field(
279
+ proto.MESSAGE,
280
+ number=3,
281
+ message=struct_pb2.Value,
282
+ )
283
+ output_index: MutableSequence[int] = proto.RepeatedField(
284
+ proto.INT32,
285
+ number=4,
286
+ )
287
+ output_display_name: str = proto.Field(
288
+ proto.STRING,
289
+ number=5,
290
+ )
291
+ approximation_error: float = proto.Field(
292
+ proto.DOUBLE,
293
+ number=6,
294
+ )
295
+ output_name: str = proto.Field(
296
+ proto.STRING,
297
+ number=7,
298
+ )
299
+
300
+
301
+ class Neighbor(proto.Message):
302
+ r"""Neighbors for example-based explanations.
303
+
304
+ Attributes:
305
+ neighbor_id (str):
306
+ Output only. The neighbor id.
307
+ neighbor_distance (float):
308
+ Output only. The neighbor distance.
309
+ """
310
+
311
+ neighbor_id: str = proto.Field(
312
+ proto.STRING,
313
+ number=1,
314
+ )
315
+ neighbor_distance: float = proto.Field(
316
+ proto.DOUBLE,
317
+ number=2,
318
+ )
319
+
320
+
321
+ class ExplanationSpec(proto.Message):
322
+ r"""Specification of Model explanation.
323
+
324
+ Attributes:
325
+ parameters (google.cloud.aiplatform_v1.types.ExplanationParameters):
326
+ Required. Parameters that configure
327
+ explaining of the Model's predictions.
328
+ metadata (google.cloud.aiplatform_v1.types.ExplanationMetadata):
329
+ Optional. Metadata describing the Model's
330
+ input and output for explanation.
331
+ """
332
+
333
+ parameters: "ExplanationParameters" = proto.Field(
334
+ proto.MESSAGE,
335
+ number=1,
336
+ message="ExplanationParameters",
337
+ )
338
+ metadata: explanation_metadata.ExplanationMetadata = proto.Field(
339
+ proto.MESSAGE,
340
+ number=2,
341
+ message=explanation_metadata.ExplanationMetadata,
342
+ )
343
+
344
+
345
+ class ExplanationParameters(proto.Message):
346
+ r"""Parameters to configure explaining for Model's predictions.
347
+
348
+ This message has `oneof`_ fields (mutually exclusive fields).
349
+ For each oneof, at most one member field can be set at the same time.
350
+ Setting any member of the oneof automatically clears all other
351
+ members.
352
+
353
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
354
+
355
+ Attributes:
356
+ sampled_shapley_attribution (google.cloud.aiplatform_v1.types.SampledShapleyAttribution):
357
+ An attribution method that approximates
358
+ Shapley values for features that contribute to
359
+ the label being predicted. A sampling strategy
360
+ is used to approximate the value rather than
361
+ considering all subsets of features. Refer to
362
+ this paper for model details:
363
+ https://arxiv.org/abs/1306.4265.
364
+
365
+ This field is a member of `oneof`_ ``method``.
366
+ integrated_gradients_attribution (google.cloud.aiplatform_v1.types.IntegratedGradientsAttribution):
367
+ An attribution method that computes
368
+ Aumann-Shapley values taking advantage of the
369
+ model's fully differentiable structure. Refer to
370
+ this paper for more details:
371
+ https://arxiv.org/abs/1703.01365
372
+
373
+ This field is a member of `oneof`_ ``method``.
374
+ xrai_attribution (google.cloud.aiplatform_v1.types.XraiAttribution):
375
+ An attribution method that redistributes
376
+ Integrated Gradients attribution to segmented
377
+ regions, taking advantage of the model's fully
378
+ differentiable structure. Refer to this paper
379
+ for more details:
380
+ https://arxiv.org/abs/1906.02825
381
+
382
+ XRAI currently performs better on natural
383
+ images, like a picture of a house or an animal.
384
+ If the images are taken in artificial
385
+ environments, like a lab or manufacturing line,
386
+ or from diagnostic equipment, like x-rays or
387
+ quality-control cameras, use Integrated
388
+ Gradients instead.
389
+
390
+ This field is a member of `oneof`_ ``method``.
391
+ examples (google.cloud.aiplatform_v1.types.Examples):
392
+ Example-based explanations that returns the
393
+ nearest neighbors from the provided dataset.
394
+
395
+ This field is a member of `oneof`_ ``method``.
396
+ top_k (int):
397
+ If populated, returns attributions for top K
398
+ indices of outputs (defaults to 1). Only applies
399
+ to Models that predicts more than one outputs
400
+ (e,g, multi-class Models). When set to -1,
401
+ returns explanations for all outputs.
402
+ output_indices (google.protobuf.struct_pb2.ListValue):
403
+ If populated, only returns attributions that have
404
+ [output_index][google.cloud.aiplatform.v1.Attribution.output_index]
405
+ contained in output_indices. It must be an ndarray of
406
+ integers, with the same shape of the output it's explaining.
407
+
408
+ If not populated, returns attributions for
409
+ [top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k]
410
+ indices of outputs. If neither top_k nor output_indices is
411
+ populated, returns the argmax index of the outputs.
412
+
413
+ Only applicable to Models that predict multiple outputs
414
+ (e,g, multi-class Models that predict multiple classes).
415
+ """
416
+
417
+ sampled_shapley_attribution: "SampledShapleyAttribution" = proto.Field(
418
+ proto.MESSAGE,
419
+ number=1,
420
+ oneof="method",
421
+ message="SampledShapleyAttribution",
422
+ )
423
+ integrated_gradients_attribution: "IntegratedGradientsAttribution" = proto.Field(
424
+ proto.MESSAGE,
425
+ number=2,
426
+ oneof="method",
427
+ message="IntegratedGradientsAttribution",
428
+ )
429
+ xrai_attribution: "XraiAttribution" = proto.Field(
430
+ proto.MESSAGE,
431
+ number=3,
432
+ oneof="method",
433
+ message="XraiAttribution",
434
+ )
435
+ examples: "Examples" = proto.Field(
436
+ proto.MESSAGE,
437
+ number=7,
438
+ oneof="method",
439
+ message="Examples",
440
+ )
441
+ top_k: int = proto.Field(
442
+ proto.INT32,
443
+ number=4,
444
+ )
445
+ output_indices: struct_pb2.ListValue = proto.Field(
446
+ proto.MESSAGE,
447
+ number=5,
448
+ message=struct_pb2.ListValue,
449
+ )
450
+
451
+
452
+ class SampledShapleyAttribution(proto.Message):
453
+ r"""An attribution method that approximates Shapley values for
454
+ features that contribute to the label being predicted. A
455
+ sampling strategy is used to approximate the value rather than
456
+ considering all subsets of features.
457
+
458
+ Attributes:
459
+ path_count (int):
460
+ Required. The number of feature permutations to consider
461
+ when approximating the Shapley values.
462
+
463
+ Valid range of its value is [1, 50], inclusively.
464
+ """
465
+
466
+ path_count: int = proto.Field(
467
+ proto.INT32,
468
+ number=1,
469
+ )
470
+
471
+
472
+ class IntegratedGradientsAttribution(proto.Message):
473
+ r"""An attribution method that computes the Aumann-Shapley value
474
+ taking advantage of the model's fully differentiable structure.
475
+ Refer to this paper for more details:
476
+ https://arxiv.org/abs/1703.01365
477
+
478
+ Attributes:
479
+ step_count (int):
480
+ Required. The number of steps for approximating the path
481
+ integral. A good value to start is 50 and gradually increase
482
+ until the sum to diff property is within the desired error
483
+ range.
484
+
485
+ Valid range of its value is [1, 100], inclusively.
486
+ smooth_grad_config (google.cloud.aiplatform_v1.types.SmoothGradConfig):
487
+ Config for SmoothGrad approximation of
488
+ gradients.
489
+ When enabled, the gradients are approximated by
490
+ averaging the gradients from noisy samples in
491
+ the vicinity of the inputs. Adding noise can
492
+ help improve the computed gradients. Refer to
493
+ this paper for more details:
494
+ https://arxiv.org/pdf/1706.03825.pdf
495
+ blur_baseline_config (google.cloud.aiplatform_v1.types.BlurBaselineConfig):
496
+ Config for IG with blur baseline.
497
+
498
+ When enabled, a linear path from the maximally
499
+ blurred image to the input image is created.
500
+ Using a blurred baseline instead of zero (black
501
+ image) is motivated by the BlurIG approach
502
+ explained here:
503
+
504
+ https://arxiv.org/abs/2004.03383
505
+ """
506
+
507
+ step_count: int = proto.Field(
508
+ proto.INT32,
509
+ number=1,
510
+ )
511
+ smooth_grad_config: "SmoothGradConfig" = proto.Field(
512
+ proto.MESSAGE,
513
+ number=2,
514
+ message="SmoothGradConfig",
515
+ )
516
+ blur_baseline_config: "BlurBaselineConfig" = proto.Field(
517
+ proto.MESSAGE,
518
+ number=3,
519
+ message="BlurBaselineConfig",
520
+ )
521
+
522
+
523
+ class XraiAttribution(proto.Message):
524
+ r"""An explanation method that redistributes Integrated Gradients
525
+ attributions to segmented regions, taking advantage of the
526
+ model's fully differentiable structure. Refer to this paper for
527
+ more details:
528
+
529
+ https://arxiv.org/abs/1906.02825
530
+
531
+ Supported only by image Models.
532
+
533
+ Attributes:
534
+ step_count (int):
535
+ Required. The number of steps for approximating the path
536
+ integral. A good value to start is 50 and gradually increase
537
+ until the sum to diff property is met within the desired
538
+ error range.
539
+
540
+ Valid range of its value is [1, 100], inclusively.
541
+ smooth_grad_config (google.cloud.aiplatform_v1.types.SmoothGradConfig):
542
+ Config for SmoothGrad approximation of
543
+ gradients.
544
+ When enabled, the gradients are approximated by
545
+ averaging the gradients from noisy samples in
546
+ the vicinity of the inputs. Adding noise can
547
+ help improve the computed gradients. Refer to
548
+ this paper for more details:
549
+ https://arxiv.org/pdf/1706.03825.pdf
550
+ blur_baseline_config (google.cloud.aiplatform_v1.types.BlurBaselineConfig):
551
+ Config for XRAI with blur baseline.
552
+
553
+ When enabled, a linear path from the maximally
554
+ blurred image to the input image is created.
555
+ Using a blurred baseline instead of zero (black
556
+ image) is motivated by the BlurIG approach
557
+ explained here:
558
+
559
+ https://arxiv.org/abs/2004.03383
560
+ """
561
+
562
+ step_count: int = proto.Field(
563
+ proto.INT32,
564
+ number=1,
565
+ )
566
+ smooth_grad_config: "SmoothGradConfig" = proto.Field(
567
+ proto.MESSAGE,
568
+ number=2,
569
+ message="SmoothGradConfig",
570
+ )
571
+ blur_baseline_config: "BlurBaselineConfig" = proto.Field(
572
+ proto.MESSAGE,
573
+ number=3,
574
+ message="BlurBaselineConfig",
575
+ )
576
+
577
+
578
+ class SmoothGradConfig(proto.Message):
579
+ r"""Config for SmoothGrad approximation of gradients.
580
+
581
+ When enabled, the gradients are approximated by averaging the
582
+ gradients from noisy samples in the vicinity of the inputs.
583
+ Adding noise can help improve the computed gradients. Refer to
584
+ this paper for more details:
585
+
586
+ https://arxiv.org/pdf/1706.03825.pdf
587
+
588
+ This message has `oneof`_ fields (mutually exclusive fields).
589
+ For each oneof, at most one member field can be set at the same time.
590
+ Setting any member of the oneof automatically clears all other
591
+ members.
592
+
593
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
594
+
595
+ Attributes:
596
+ noise_sigma (float):
597
+ This is a single float value and will be used to add noise
598
+ to all the features. Use this field when all features are
599
+ normalized to have the same distribution: scale to range [0,
600
+ 1], [-1, 1] or z-scoring, where features are normalized to
601
+ have 0-mean and 1-variance. Learn more about
602
+ `normalization <https://developers.google.com/machine-learning/data-prep/transform/normalization>`__.
603
+
604
+ For best results the recommended value is about 10% - 20% of
605
+ the standard deviation of the input feature. Refer to
606
+ section 3.2 of the SmoothGrad paper:
607
+ https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1.
608
+
609
+ If the distribution is different per feature, set
610
+ [feature_noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.feature_noise_sigma]
611
+ instead for each feature.
612
+
613
+ This field is a member of `oneof`_ ``GradientNoiseSigma``.
614
+ feature_noise_sigma (google.cloud.aiplatform_v1.types.FeatureNoiseSigma):
615
+ This is similar to
616
+ [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma],
617
+ but provides additional flexibility. A separate noise sigma
618
+ can be provided for each feature, which is useful if their
619
+ distributions are different. No noise is added to features
620
+ that are not set. If this field is unset,
621
+ [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma]
622
+ will be used for all features.
623
+
624
+ This field is a member of `oneof`_ ``GradientNoiseSigma``.
625
+ noisy_sample_count (int):
626
+ The number of gradient samples to use for approximation. The
627
+ higher this number, the more accurate the gradient is, but
628
+ the runtime complexity increases by this factor as well.
629
+ Valid range of its value is [1, 50]. Defaults to 3.
630
+ """
631
+
632
+ noise_sigma: float = proto.Field(
633
+ proto.FLOAT,
634
+ number=1,
635
+ oneof="GradientNoiseSigma",
636
+ )
637
+ feature_noise_sigma: "FeatureNoiseSigma" = proto.Field(
638
+ proto.MESSAGE,
639
+ number=2,
640
+ oneof="GradientNoiseSigma",
641
+ message="FeatureNoiseSigma",
642
+ )
643
+ noisy_sample_count: int = proto.Field(
644
+ proto.INT32,
645
+ number=3,
646
+ )
647
+
648
+
649
+ class FeatureNoiseSigma(proto.Message):
650
+ r"""Noise sigma by features. Noise sigma represents the standard
651
+ deviation of the gaussian kernel that will be used to add noise
652
+ to interpolated inputs prior to computing gradients.
653
+
654
+ Attributes:
655
+ noise_sigma (MutableSequence[google.cloud.aiplatform_v1.types.FeatureNoiseSigma.NoiseSigmaForFeature]):
656
+ Noise sigma per feature. No noise is added to
657
+ features that are not set.
658
+ """
659
+
660
+ class NoiseSigmaForFeature(proto.Message):
661
+ r"""Noise sigma for a single feature.
662
+
663
+ Attributes:
664
+ name (str):
665
+ The name of the input feature for which noise sigma is
666
+ provided. The features are defined in [explanation metadata
667
+ inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs].
668
+ sigma (float):
669
+ This represents the standard deviation of the Gaussian
670
+ kernel that will be used to add noise to the feature prior
671
+ to computing gradients. Similar to
672
+ [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma]
673
+ but represents the noise added to the current feature.
674
+ Defaults to 0.1.
675
+ """
676
+
677
+ name: str = proto.Field(
678
+ proto.STRING,
679
+ number=1,
680
+ )
681
+ sigma: float = proto.Field(
682
+ proto.FLOAT,
683
+ number=2,
684
+ )
685
+
686
+ noise_sigma: MutableSequence[NoiseSigmaForFeature] = proto.RepeatedField(
687
+ proto.MESSAGE,
688
+ number=1,
689
+ message=NoiseSigmaForFeature,
690
+ )
691
+
692
+
693
+ class BlurBaselineConfig(proto.Message):
694
+ r"""Config for blur baseline.
695
+
696
+ When enabled, a linear path from the maximally blurred image to
697
+ the input image is created. Using a blurred baseline instead of
698
+ zero (black image) is motivated by the BlurIG approach explained
699
+ here:
700
+
701
+ https://arxiv.org/abs/2004.03383
702
+
703
+ Attributes:
704
+ max_blur_sigma (float):
705
+ The standard deviation of the blur kernel for
706
+ the blurred baseline. The same blurring
707
+ parameter is used for both the height and the
708
+ width dimension. If not set, the method defaults
709
+ to the zero (i.e. black for images) baseline.
710
+ """
711
+
712
+ max_blur_sigma: float = proto.Field(
713
+ proto.FLOAT,
714
+ number=1,
715
+ )
716
+
717
+
718
+ class Examples(proto.Message):
719
+ r"""Example-based explainability that returns the nearest
720
+ neighbors from the provided dataset.
721
+
722
+ This message has `oneof`_ fields (mutually exclusive fields).
723
+ For each oneof, at most one member field can be set at the same time.
724
+ Setting any member of the oneof automatically clears all other
725
+ members.
726
+
727
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
728
+
729
+ Attributes:
730
+ example_gcs_source (google.cloud.aiplatform_v1.types.Examples.ExampleGcsSource):
731
+ The Cloud Storage input instances.
732
+
733
+ This field is a member of `oneof`_ ``source``.
734
+ nearest_neighbor_search_config (google.protobuf.struct_pb2.Value):
735
+ The full configuration for the generated index, the
736
+ semantics are the same as
737
+ [metadata][google.cloud.aiplatform.v1.Index.metadata] and
738
+ should match
739
+ `NearestNeighborSearchConfig <https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config>`__.
740
+
741
+ This field is a member of `oneof`_ ``config``.
742
+ presets (google.cloud.aiplatform_v1.types.Presets):
743
+ Simplified preset configuration, which
744
+ automatically sets configuration values based on
745
+ the desired query speed-precision trade-off and
746
+ modality.
747
+
748
+ This field is a member of `oneof`_ ``config``.
749
+ neighbor_count (int):
750
+ The number of neighbors to return when
751
+ querying for examples.
752
+ """
753
+
754
+ class ExampleGcsSource(proto.Message):
755
+ r"""The Cloud Storage input instances.
756
+
757
+ Attributes:
758
+ data_format (google.cloud.aiplatform_v1.types.Examples.ExampleGcsSource.DataFormat):
759
+ The format in which instances are given, if
760
+ not specified, assume it's JSONL format.
761
+ Currently only JSONL format is supported.
762
+ gcs_source (google.cloud.aiplatform_v1.types.GcsSource):
763
+ The Cloud Storage location for the input
764
+ instances.
765
+ """
766
+
767
+ class DataFormat(proto.Enum):
768
+ r"""The format of the input example instances.
769
+
770
+ Values:
771
+ DATA_FORMAT_UNSPECIFIED (0):
772
+ Format unspecified, used when unset.
773
+ JSONL (1):
774
+ Examples are stored in JSONL files.
775
+ """
776
+
777
+ DATA_FORMAT_UNSPECIFIED = 0
778
+ JSONL = 1
779
+
780
+ data_format: "Examples.ExampleGcsSource.DataFormat" = proto.Field(
781
+ proto.ENUM,
782
+ number=1,
783
+ enum="Examples.ExampleGcsSource.DataFormat",
784
+ )
785
+ gcs_source: io.GcsSource = proto.Field(
786
+ proto.MESSAGE,
787
+ number=2,
788
+ message=io.GcsSource,
789
+ )
790
+
791
+ example_gcs_source: ExampleGcsSource = proto.Field(
792
+ proto.MESSAGE,
793
+ number=5,
794
+ oneof="source",
795
+ message=ExampleGcsSource,
796
+ )
797
+ nearest_neighbor_search_config: struct_pb2.Value = proto.Field(
798
+ proto.MESSAGE,
799
+ number=2,
800
+ oneof="config",
801
+ message=struct_pb2.Value,
802
+ )
803
+ presets: "Presets" = proto.Field(
804
+ proto.MESSAGE,
805
+ number=4,
806
+ oneof="config",
807
+ message="Presets",
808
+ )
809
+ neighbor_count: int = proto.Field(
810
+ proto.INT32,
811
+ number=3,
812
+ )
813
+
814
+
815
+ class Presets(proto.Message):
816
+ r"""Preset configuration for example-based explanations
817
+
818
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
819
+
820
+ Attributes:
821
+ query (google.cloud.aiplatform_v1.types.Presets.Query):
822
+ Preset option controlling parameters for speed-precision
823
+ trade-off when querying for examples. If omitted, defaults
824
+ to ``PRECISE``.
825
+
826
+ This field is a member of `oneof`_ ``_query``.
827
+ modality (google.cloud.aiplatform_v1.types.Presets.Modality):
828
+ The modality of the uploaded model, which
829
+ automatically configures the distance
830
+ measurement and feature normalization for the
831
+ underlying example index and queries. If your
832
+ model does not precisely fit one of these types,
833
+ it is okay to choose the closest type.
834
+ """
835
+
836
+ class Query(proto.Enum):
837
+ r"""Preset option controlling parameters for query
838
+ speed-precision trade-off
839
+
840
+ Values:
841
+ PRECISE (0):
842
+ More precise neighbors as a trade-off against
843
+ slower response.
844
+ FAST (1):
845
+ Faster response as a trade-off against less
846
+ precise neighbors.
847
+ """
848
+
849
+ PRECISE = 0
850
+ FAST = 1
851
+
852
+ class Modality(proto.Enum):
853
+ r"""Preset option controlling parameters for different modalities
854
+
855
+ Values:
856
+ MODALITY_UNSPECIFIED (0):
857
+ Should not be set. Added as a recommended
858
+ best practice for enums
859
+ IMAGE (1):
860
+ IMAGE modality
861
+ TEXT (2):
862
+ TEXT modality
863
+ TABULAR (3):
864
+ TABULAR modality
865
+ """
866
+
867
+ MODALITY_UNSPECIFIED = 0
868
+ IMAGE = 1
869
+ TEXT = 2
870
+ TABULAR = 3
871
+
872
+ query: Query = proto.Field(
873
+ proto.ENUM,
874
+ number=1,
875
+ optional=True,
876
+ enum=Query,
877
+ )
878
+ modality: Modality = proto.Field(
879
+ proto.ENUM,
880
+ number=2,
881
+ enum=Modality,
882
+ )
883
+
884
+
885
+ class ExplanationSpecOverride(proto.Message):
886
+ r"""The [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec]
887
+ entries that can be overridden at [online
888
+ explanation][google.cloud.aiplatform.v1.PredictionService.Explain]
889
+ time.
890
+
891
+ Attributes:
892
+ parameters (google.cloud.aiplatform_v1.types.ExplanationParameters):
893
+ The parameters to be overridden. Note that
894
+ the attribution method cannot be changed. If not
895
+ specified, no parameter is overridden.
896
+ metadata (google.cloud.aiplatform_v1.types.ExplanationMetadataOverride):
897
+ The metadata to be overridden. If not
898
+ specified, no metadata is overridden.
899
+ examples_override (google.cloud.aiplatform_v1.types.ExamplesOverride):
900
+ The example-based explanations parameter
901
+ overrides.
902
+ """
903
+
904
+ parameters: "ExplanationParameters" = proto.Field(
905
+ proto.MESSAGE,
906
+ number=1,
907
+ message="ExplanationParameters",
908
+ )
909
+ metadata: "ExplanationMetadataOverride" = proto.Field(
910
+ proto.MESSAGE,
911
+ number=2,
912
+ message="ExplanationMetadataOverride",
913
+ )
914
+ examples_override: "ExamplesOverride" = proto.Field(
915
+ proto.MESSAGE,
916
+ number=3,
917
+ message="ExamplesOverride",
918
+ )
919
+
920
+
921
+ class ExplanationMetadataOverride(proto.Message):
922
+ r"""The
923
+ [ExplanationMetadata][google.cloud.aiplatform.v1.ExplanationMetadata]
924
+ entries that can be overridden at [online
925
+ explanation][google.cloud.aiplatform.v1.PredictionService.Explain]
926
+ time.
927
+
928
+ Attributes:
929
+ inputs (MutableMapping[str, google.cloud.aiplatform_v1.types.ExplanationMetadataOverride.InputMetadataOverride]):
930
+ Required. Overrides the [input
931
+ metadata][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]
932
+ of the features. The key is the name of the feature to be
933
+ overridden. The keys specified here must exist in the input
934
+ metadata to be overridden. If a feature is not specified
935
+ here, the corresponding feature's input metadata is not
936
+ overridden.
937
+ """
938
+
939
+ class InputMetadataOverride(proto.Message):
940
+ r"""The [input
941
+ metadata][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata]
942
+ entries to be overridden.
943
+
944
+ Attributes:
945
+ input_baselines (MutableSequence[google.protobuf.struct_pb2.Value]):
946
+ Baseline inputs for this feature.
947
+
948
+ This overrides the ``input_baseline`` field of the
949
+ [ExplanationMetadata.InputMetadata][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata]
950
+ object of the corresponding feature's input metadata. If
951
+ it's not specified, the original baselines are not
952
+ overridden.
953
+ """
954
+
955
+ input_baselines: MutableSequence[struct_pb2.Value] = proto.RepeatedField(
956
+ proto.MESSAGE,
957
+ number=1,
958
+ message=struct_pb2.Value,
959
+ )
960
+
961
+ inputs: MutableMapping[str, InputMetadataOverride] = proto.MapField(
962
+ proto.STRING,
963
+ proto.MESSAGE,
964
+ number=1,
965
+ message=InputMetadataOverride,
966
+ )
967
+
968
+
969
+ class ExamplesOverride(proto.Message):
970
+ r"""Overrides for example-based explanations.
971
+
972
+ Attributes:
973
+ neighbor_count (int):
974
+ The number of neighbors to return.
975
+ crowding_count (int):
976
+ The number of neighbors to return that have
977
+ the same crowding tag.
978
+ restrictions (MutableSequence[google.cloud.aiplatform_v1.types.ExamplesRestrictionsNamespace]):
979
+ Restrict the resulting nearest neighbors to
980
+ respect these constraints.
981
+ return_embeddings (bool):
982
+ If true, return the embeddings instead of
983
+ neighbors.
984
+ data_format (google.cloud.aiplatform_v1.types.ExamplesOverride.DataFormat):
985
+ The format of the data being provided with
986
+ each call.
987
+ """
988
+
989
+ class DataFormat(proto.Enum):
990
+ r"""Data format enum.
991
+
992
+ Values:
993
+ DATA_FORMAT_UNSPECIFIED (0):
994
+ Unspecified format. Must not be used.
995
+ INSTANCES (1):
996
+ Provided data is a set of model inputs.
997
+ EMBEDDINGS (2):
998
+ Provided data is a set of embeddings.
999
+ """
1000
+
1001
+ DATA_FORMAT_UNSPECIFIED = 0
1002
+ INSTANCES = 1
1003
+ EMBEDDINGS = 2
1004
+
1005
+ neighbor_count: int = proto.Field(
1006
+ proto.INT32,
1007
+ number=1,
1008
+ )
1009
+ crowding_count: int = proto.Field(
1010
+ proto.INT32,
1011
+ number=2,
1012
+ )
1013
+ restrictions: MutableSequence["ExamplesRestrictionsNamespace"] = (
1014
+ proto.RepeatedField(
1015
+ proto.MESSAGE,
1016
+ number=3,
1017
+ message="ExamplesRestrictionsNamespace",
1018
+ )
1019
+ )
1020
+ return_embeddings: bool = proto.Field(
1021
+ proto.BOOL,
1022
+ number=4,
1023
+ )
1024
+ data_format: DataFormat = proto.Field(
1025
+ proto.ENUM,
1026
+ number=5,
1027
+ enum=DataFormat,
1028
+ )
1029
+
1030
+
1031
+ class ExamplesRestrictionsNamespace(proto.Message):
1032
+ r"""Restrictions namespace for example-based explanations
1033
+ overrides.
1034
+
1035
+ Attributes:
1036
+ namespace_name (str):
1037
+ The namespace name.
1038
+ allow (MutableSequence[str]):
1039
+ The list of allowed tags.
1040
+ deny (MutableSequence[str]):
1041
+ The list of deny tags.
1042
+ """
1043
+
1044
+ namespace_name: str = proto.Field(
1045
+ proto.STRING,
1046
+ number=1,
1047
+ )
1048
+ allow: MutableSequence[str] = proto.RepeatedField(
1049
+ proto.STRING,
1050
+ number=2,
1051
+ )
1052
+ deny: MutableSequence[str] = proto.RepeatedField(
1053
+ proto.STRING,
1054
+ number=3,
1055
+ )
1056
+
1057
+
1058
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/explanation_metadata.py ADDED
@@ -0,0 +1,614 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
23
+
24
+
25
+ __protobuf__ = proto.module(
26
+ package="google.cloud.aiplatform.v1",
27
+ manifest={
28
+ "ExplanationMetadata",
29
+ },
30
+ )
31
+
32
+
33
+ class ExplanationMetadata(proto.Message):
34
+ r"""Metadata describing the Model's input and output for
35
+ explanation.
36
+
37
+ Attributes:
38
+ inputs (MutableMapping[str, google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata]):
39
+ Required. Map from feature names to feature input metadata.
40
+ Keys are the name of the features. Values are the
41
+ specification of the feature.
42
+
43
+ An empty InputMetadata is valid. It describes a text feature
44
+ which has the name specified as the key in
45
+ [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs].
46
+ The baseline of the empty feature is chosen by Vertex AI.
47
+
48
+ For Vertex AI-provided Tensorflow images, the key can be any
49
+ friendly name of the feature. Once specified,
50
+ [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]
51
+ are keyed by this key (if not grouped with another feature).
52
+
53
+ For custom images, the key must match with the key in
54
+ [instance][google.cloud.aiplatform.v1.ExplainRequest.instances].
55
+ outputs (MutableMapping[str, google.cloud.aiplatform_v1.types.ExplanationMetadata.OutputMetadata]):
56
+ Required. Map from output names to output
57
+ metadata.
58
+ For Vertex AI-provided Tensorflow images, keys
59
+ can be any user defined string that consists of
60
+ any UTF-8 characters.
61
+
62
+ For custom images, keys are the name of the
63
+ output field in the prediction to be explained.
64
+
65
+ Currently only one key is allowed.
66
+ feature_attributions_schema_uri (str):
67
+ Points to a YAML file stored on Google Cloud Storage
68
+ describing the format of the [feature
69
+ attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions].
70
+ The schema is defined as an OpenAPI 3.0.2 `Schema
71
+ Object <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject>`__.
72
+ AutoML tabular Models always have this field populated by
73
+ Vertex AI. Note: The URI given on output may be different,
74
+ including the URI scheme, than the one given on input. The
75
+ output URI will point to a location where the user only has
76
+ a read access.
77
+ latent_space_source (str):
78
+ Name of the source to generate embeddings for
79
+ example based explanations.
80
+ """
81
+
82
+ class InputMetadata(proto.Message):
83
+ r"""Metadata of the input of a feature.
84
+
85
+ Fields other than
86
+ [InputMetadata.input_baselines][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.input_baselines]
87
+ are applicable only for Models that are using Vertex AI-provided
88
+ images for Tensorflow.
89
+
90
+ Attributes:
91
+ input_baselines (MutableSequence[google.protobuf.struct_pb2.Value]):
92
+ Baseline inputs for this feature.
93
+
94
+ If no baseline is specified, Vertex AI chooses the baseline
95
+ for this feature. If multiple baselines are specified,
96
+ Vertex AI returns the average attributions across them in
97
+ [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions].
98
+
99
+ For Vertex AI-provided Tensorflow images (both 1.x and 2.x),
100
+ the shape of each baseline must match the shape of the input
101
+ tensor. If a scalar is provided, we broadcast to the same
102
+ shape as the input tensor.
103
+
104
+ For custom images, the element of the baselines must be in
105
+ the same format as the feature's input in the
106
+ [instance][google.cloud.aiplatform.v1.ExplainRequest.instances][].
107
+ The schema of any single instance may be specified via
108
+ Endpoint's DeployedModels'
109
+ [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
110
+ [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
111
+ [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
112
+ input_tensor_name (str):
113
+ Name of the input tensor for this feature.
114
+ Required and is only applicable to Vertex
115
+ AI-provided images for Tensorflow.
116
+ encoding (google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata.Encoding):
117
+ Defines how the feature is encoded into the
118
+ input tensor. Defaults to IDENTITY.
119
+ modality (str):
120
+ Modality of the feature. Valid values are:
121
+ numeric, image. Defaults to numeric.
122
+ feature_value_domain (google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata.FeatureValueDomain):
123
+ The domain details of the input feature
124
+ value. Like min/max, original mean or standard
125
+ deviation if normalized.
126
+ indices_tensor_name (str):
127
+ Specifies the index of the values of the input tensor.
128
+ Required when the input tensor is a sparse representation.
129
+ Refer to Tensorflow documentation for more details:
130
+ https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor.
131
+ dense_shape_tensor_name (str):
132
+ Specifies the shape of the values of the input if the input
133
+ is a sparse representation. Refer to Tensorflow
134
+ documentation for more details:
135
+ https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor.
136
+ index_feature_mapping (MutableSequence[str]):
137
+ A list of feature names for each index in the input tensor.
138
+ Required when the input
139
+ [InputMetadata.encoding][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoding]
140
+ is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR.
141
+ encoded_tensor_name (str):
142
+ Encoded tensor is a transformation of the input tensor. Must
143
+ be provided if choosing [Integrated Gradients
144
+ attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]
145
+ or [XRAI
146
+ attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution]
147
+ and the input tensor is not differentiable.
148
+
149
+ An encoded tensor is generated if the input tensor is
150
+ encoded by a lookup table.
151
+ encoded_baselines (MutableSequence[google.protobuf.struct_pb2.Value]):
152
+ A list of baselines for the encoded tensor.
153
+
154
+ The shape of each baseline should match the
155
+ shape of the encoded tensor. If a scalar is
156
+ provided, Vertex AI broadcasts to the same shape
157
+ as the encoded tensor.
158
+ visualization (google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata.Visualization):
159
+ Visualization configurations for image
160
+ explanation.
161
+ group_name (str):
162
+ Name of the group that the input belongs to. Features with
163
+ the same group name will be treated as one feature when
164
+ computing attributions. Features grouped together can have
165
+ different shapes in value. If provided, there will be one
166
+ single attribution generated in
167
+ [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions],
168
+ keyed by the group name.
169
+ """
170
+
171
+ class Encoding(proto.Enum):
172
+ r"""Defines how a feature is encoded. Defaults to IDENTITY.
173
+
174
+ Values:
175
+ ENCODING_UNSPECIFIED (0):
176
+ Default value. This is the same as IDENTITY.
177
+ IDENTITY (1):
178
+ The tensor represents one feature.
179
+ BAG_OF_FEATURES (2):
180
+ The tensor represents a bag of features where each index
181
+ maps to a feature.
182
+ [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping]
183
+ must be provided for this encoding. For example:
184
+
185
+ ::
186
+
187
+ input = [27, 6.0, 150]
188
+ index_feature_mapping = ["age", "height", "weight"]
189
+ BAG_OF_FEATURES_SPARSE (3):
190
+ The tensor represents a bag of features where each index
191
+ maps to a feature. Zero values in the tensor indicates
192
+ feature being non-existent.
193
+ [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping]
194
+ must be provided for this encoding. For example:
195
+
196
+ ::
197
+
198
+ input = [2, 0, 5, 0, 1]
199
+ index_feature_mapping = ["a", "b", "c", "d", "e"]
200
+ INDICATOR (4):
201
+ The tensor is a list of binaries representing whether a
202
+ feature exists or not (1 indicates existence).
203
+ [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping]
204
+ must be provided for this encoding. For example:
205
+
206
+ ::
207
+
208
+ input = [1, 0, 1, 0, 1]
209
+ index_feature_mapping = ["a", "b", "c", "d", "e"]
210
+ COMBINED_EMBEDDING (5):
211
+ The tensor is encoded into a 1-dimensional array represented
212
+ by an encoded tensor.
213
+ [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoded_tensor_name]
214
+ must be provided for this encoding. For example:
215
+
216
+ ::
217
+
218
+ input = ["This", "is", "a", "test", "."]
219
+ encoded = [0.1, 0.2, 0.3, 0.4, 0.5]
220
+ CONCAT_EMBEDDING (6):
221
+ Select this encoding when the input tensor is encoded into a
222
+ 2-dimensional array represented by an encoded tensor.
223
+ [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoded_tensor_name]
224
+ must be provided for this encoding. The first dimension of
225
+ the encoded tensor's shape is the same as the input tensor's
226
+ shape. For example:
227
+
228
+ ::
229
+
230
+ input = ["This", "is", "a", "test", "."]
231
+ encoded = [[0.1, 0.2, 0.3, 0.4, 0.5],
232
+ [0.2, 0.1, 0.4, 0.3, 0.5],
233
+ [0.5, 0.1, 0.3, 0.5, 0.4],
234
+ [0.5, 0.3, 0.1, 0.2, 0.4],
235
+ [0.4, 0.3, 0.2, 0.5, 0.1]]
236
+ """
237
+
238
+ ENCODING_UNSPECIFIED = 0
239
+ IDENTITY = 1
240
+ BAG_OF_FEATURES = 2
241
+ BAG_OF_FEATURES_SPARSE = 3
242
+ INDICATOR = 4
243
+ COMBINED_EMBEDDING = 5
244
+ CONCAT_EMBEDDING = 6
245
+
246
+ class FeatureValueDomain(proto.Message):
247
+ r"""Domain details of the input feature value. Provides numeric
248
+ information about the feature, such as its range (min, max). If the
249
+ feature has been pre-processed, for example with z-scoring, then it
250
+ provides information about how to recover the original feature. For
251
+ example, if the input feature is an image and it has been
252
+ pre-processed to obtain 0-mean and stddev = 1 values, then
253
+ original_mean, and original_stddev refer to the mean and stddev of
254
+ the original feature (e.g. image tensor) from which input feature
255
+ (with mean = 0 and stddev = 1) was obtained.
256
+
257
+ Attributes:
258
+ min_value (float):
259
+ The minimum permissible value for this
260
+ feature.
261
+ max_value (float):
262
+ The maximum permissible value for this
263
+ feature.
264
+ original_mean (float):
265
+ If this input feature has been normalized to a mean value of
266
+ 0, the original_mean specifies the mean value of the domain
267
+ prior to normalization.
268
+ original_stddev (float):
269
+ If this input feature has been normalized to a standard
270
+ deviation of 1.0, the original_stddev specifies the standard
271
+ deviation of the domain prior to normalization.
272
+ """
273
+
274
+ min_value: float = proto.Field(
275
+ proto.FLOAT,
276
+ number=1,
277
+ )
278
+ max_value: float = proto.Field(
279
+ proto.FLOAT,
280
+ number=2,
281
+ )
282
+ original_mean: float = proto.Field(
283
+ proto.FLOAT,
284
+ number=3,
285
+ )
286
+ original_stddev: float = proto.Field(
287
+ proto.FLOAT,
288
+ number=4,
289
+ )
290
+
291
+ class Visualization(proto.Message):
292
+ r"""Visualization configurations for image explanation.
293
+
294
+ Attributes:
295
+ type_ (google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata.Visualization.Type):
296
+ Type of the image visualization. Only applicable to
297
+ [Integrated Gradients
298
+ attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution].
299
+ OUTLINES shows regions of attribution, while PIXELS shows
300
+ per-pixel attribution. Defaults to OUTLINES.
301
+ polarity (google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata.Visualization.Polarity):
302
+ Whether to only highlight pixels with
303
+ positive contributions, negative or both.
304
+ Defaults to POSITIVE.
305
+ color_map (google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata.Visualization.ColorMap):
306
+ The color scheme used for the highlighted areas.
307
+
308
+ Defaults to PINK_GREEN for [Integrated Gradients
309
+ attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution],
310
+ which shows positive attributions in green and negative in
311
+ pink.
312
+
313
+ Defaults to VIRIDIS for [XRAI
314
+ attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution],
315
+ which highlights the most influential regions in yellow and
316
+ the least influential in blue.
317
+ clip_percent_upperbound (float):
318
+ Excludes attributions above the specified percentile from
319
+ the highlighted areas. Using the clip_percent_upperbound and
320
+ clip_percent_lowerbound together can be useful for filtering
321
+ out noise and making it easier to see areas of strong
322
+ attribution. Defaults to 99.9.
323
+ clip_percent_lowerbound (float):
324
+ Excludes attributions below the specified
325
+ percentile, from the highlighted areas. Defaults
326
+ to 62.
327
+ overlay_type (google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata.Visualization.OverlayType):
328
+ How the original image is displayed in the
329
+ visualization. Adjusting the overlay can help
330
+ increase visual clarity if the original image
331
+ makes it difficult to view the visualization.
332
+ Defaults to NONE.
333
+ """
334
+
335
+ class Type(proto.Enum):
336
+ r"""Type of the image visualization. Only applicable to [Integrated
337
+ Gradients
338
+ attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution].
339
+
340
+ Values:
341
+ TYPE_UNSPECIFIED (0):
342
+ Should not be used.
343
+ PIXELS (1):
344
+ Shows which pixel contributed to the image
345
+ prediction.
346
+ OUTLINES (2):
347
+ Shows which region contributed to the image
348
+ prediction by outlining the region.
349
+ """
350
+
351
+ TYPE_UNSPECIFIED = 0
352
+ PIXELS = 1
353
+ OUTLINES = 2
354
+
355
+ class Polarity(proto.Enum):
356
+ r"""Whether to only highlight pixels with positive contributions,
357
+ negative or both. Defaults to POSITIVE.
358
+
359
+ Values:
360
+ POLARITY_UNSPECIFIED (0):
361
+ Default value. This is the same as POSITIVE.
362
+ POSITIVE (1):
363
+ Highlights the pixels/outlines that were most
364
+ influential to the model's prediction.
365
+ NEGATIVE (2):
366
+ Setting polarity to negative highlights areas
367
+ that does not lead to the models's current
368
+ prediction.
369
+ BOTH (3):
370
+ Shows both positive and negative
371
+ attributions.
372
+ """
373
+
374
+ POLARITY_UNSPECIFIED = 0
375
+ POSITIVE = 1
376
+ NEGATIVE = 2
377
+ BOTH = 3
378
+
379
+ class ColorMap(proto.Enum):
380
+ r"""The color scheme used for highlighting areas.
381
+
382
+ Values:
383
+ COLOR_MAP_UNSPECIFIED (0):
384
+ Should not be used.
385
+ PINK_GREEN (1):
386
+ Positive: green. Negative: pink.
387
+ VIRIDIS (2):
388
+ Viridis color map: A perceptually uniform
389
+ color mapping which is easier to see by those
390
+ with colorblindness and progresses from yellow
391
+ to green to blue. Positive: yellow. Negative:
392
+ blue.
393
+ RED (3):
394
+ Positive: red. Negative: red.
395
+ GREEN (4):
396
+ Positive: green. Negative: green.
397
+ RED_GREEN (6):
398
+ Positive: green. Negative: red.
399
+ PINK_WHITE_GREEN (5):
400
+ PiYG palette.
401
+ """
402
+
403
+ COLOR_MAP_UNSPECIFIED = 0
404
+ PINK_GREEN = 1
405
+ VIRIDIS = 2
406
+ RED = 3
407
+ GREEN = 4
408
+ RED_GREEN = 6
409
+ PINK_WHITE_GREEN = 5
410
+
411
+ class OverlayType(proto.Enum):
412
+ r"""How the original image is displayed in the visualization.
413
+
414
+ Values:
415
+ OVERLAY_TYPE_UNSPECIFIED (0):
416
+ Default value. This is the same as NONE.
417
+ NONE (1):
418
+ No overlay.
419
+ ORIGINAL (2):
420
+ The attributions are shown on top of the
421
+ original image.
422
+ GRAYSCALE (3):
423
+ The attributions are shown on top of
424
+ grayscaled version of the original image.
425
+ MASK_BLACK (4):
426
+ The attributions are used as a mask to reveal
427
+ predictive parts of the image and hide the
428
+ un-predictive parts.
429
+ """
430
+
431
+ OVERLAY_TYPE_UNSPECIFIED = 0
432
+ NONE = 1
433
+ ORIGINAL = 2
434
+ GRAYSCALE = 3
435
+ MASK_BLACK = 4
436
+
437
+ type_: "ExplanationMetadata.InputMetadata.Visualization.Type" = proto.Field(
438
+ proto.ENUM,
439
+ number=1,
440
+ enum="ExplanationMetadata.InputMetadata.Visualization.Type",
441
+ )
442
+ polarity: "ExplanationMetadata.InputMetadata.Visualization.Polarity" = (
443
+ proto.Field(
444
+ proto.ENUM,
445
+ number=2,
446
+ enum="ExplanationMetadata.InputMetadata.Visualization.Polarity",
447
+ )
448
+ )
449
+ color_map: "ExplanationMetadata.InputMetadata.Visualization.ColorMap" = (
450
+ proto.Field(
451
+ proto.ENUM,
452
+ number=3,
453
+ enum="ExplanationMetadata.InputMetadata.Visualization.ColorMap",
454
+ )
455
+ )
456
+ clip_percent_upperbound: float = proto.Field(
457
+ proto.FLOAT,
458
+ number=4,
459
+ )
460
+ clip_percent_lowerbound: float = proto.Field(
461
+ proto.FLOAT,
462
+ number=5,
463
+ )
464
+ overlay_type: (
465
+ "ExplanationMetadata.InputMetadata.Visualization.OverlayType"
466
+ ) = proto.Field(
467
+ proto.ENUM,
468
+ number=6,
469
+ enum="ExplanationMetadata.InputMetadata.Visualization.OverlayType",
470
+ )
471
+
472
+ input_baselines: MutableSequence[struct_pb2.Value] = proto.RepeatedField(
473
+ proto.MESSAGE,
474
+ number=1,
475
+ message=struct_pb2.Value,
476
+ )
477
+ input_tensor_name: str = proto.Field(
478
+ proto.STRING,
479
+ number=2,
480
+ )
481
+ encoding: "ExplanationMetadata.InputMetadata.Encoding" = proto.Field(
482
+ proto.ENUM,
483
+ number=3,
484
+ enum="ExplanationMetadata.InputMetadata.Encoding",
485
+ )
486
+ modality: str = proto.Field(
487
+ proto.STRING,
488
+ number=4,
489
+ )
490
+ feature_value_domain: "ExplanationMetadata.InputMetadata.FeatureValueDomain" = (
491
+ proto.Field(
492
+ proto.MESSAGE,
493
+ number=5,
494
+ message="ExplanationMetadata.InputMetadata.FeatureValueDomain",
495
+ )
496
+ )
497
+ indices_tensor_name: str = proto.Field(
498
+ proto.STRING,
499
+ number=6,
500
+ )
501
+ dense_shape_tensor_name: str = proto.Field(
502
+ proto.STRING,
503
+ number=7,
504
+ )
505
+ index_feature_mapping: MutableSequence[str] = proto.RepeatedField(
506
+ proto.STRING,
507
+ number=8,
508
+ )
509
+ encoded_tensor_name: str = proto.Field(
510
+ proto.STRING,
511
+ number=9,
512
+ )
513
+ encoded_baselines: MutableSequence[struct_pb2.Value] = proto.RepeatedField(
514
+ proto.MESSAGE,
515
+ number=10,
516
+ message=struct_pb2.Value,
517
+ )
518
+ visualization: "ExplanationMetadata.InputMetadata.Visualization" = proto.Field(
519
+ proto.MESSAGE,
520
+ number=11,
521
+ message="ExplanationMetadata.InputMetadata.Visualization",
522
+ )
523
+ group_name: str = proto.Field(
524
+ proto.STRING,
525
+ number=12,
526
+ )
527
+
528
+ class OutputMetadata(proto.Message):
529
+ r"""Metadata of the prediction output to be explained.
530
+
531
+ This message has `oneof`_ fields (mutually exclusive fields).
532
+ For each oneof, at most one member field can be set at the same time.
533
+ Setting any member of the oneof automatically clears all other
534
+ members.
535
+
536
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
537
+
538
+ Attributes:
539
+ index_display_name_mapping (google.protobuf.struct_pb2.Value):
540
+ Static mapping between the index and display name.
541
+
542
+ Use this if the outputs are a deterministic n-dimensional
543
+ array, e.g. a list of scores of all the classes in a
544
+ pre-defined order for a multi-classification Model. It's not
545
+ feasible if the outputs are non-deterministic, e.g. the
546
+ Model produces top-k classes or sort the outputs by their
547
+ values.
548
+
549
+ The shape of the value must be an n-dimensional array of
550
+ strings. The number of dimensions must match that of the
551
+ outputs to be explained. The
552
+ [Attribution.output_display_name][google.cloud.aiplatform.v1.Attribution.output_display_name]
553
+ is populated by locating in the mapping with
554
+ [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index].
555
+
556
+ This field is a member of `oneof`_ ``display_name_mapping``.
557
+ display_name_mapping_key (str):
558
+ Specify a field name in the prediction to look for the
559
+ display name.
560
+
561
+ Use this if the prediction contains the display names for
562
+ the outputs.
563
+
564
+ The display names in the prediction must have the same shape
565
+ of the outputs, so that it can be located by
566
+ [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index]
567
+ for a specific output.
568
+
569
+ This field is a member of `oneof`_ ``display_name_mapping``.
570
+ output_tensor_name (str):
571
+ Name of the output tensor. Required and is
572
+ only applicable to Vertex AI provided images for
573
+ Tensorflow.
574
+ """
575
+
576
+ index_display_name_mapping: struct_pb2.Value = proto.Field(
577
+ proto.MESSAGE,
578
+ number=1,
579
+ oneof="display_name_mapping",
580
+ message=struct_pb2.Value,
581
+ )
582
+ display_name_mapping_key: str = proto.Field(
583
+ proto.STRING,
584
+ number=2,
585
+ oneof="display_name_mapping",
586
+ )
587
+ output_tensor_name: str = proto.Field(
588
+ proto.STRING,
589
+ number=3,
590
+ )
591
+
592
+ inputs: MutableMapping[str, InputMetadata] = proto.MapField(
593
+ proto.STRING,
594
+ proto.MESSAGE,
595
+ number=1,
596
+ message=InputMetadata,
597
+ )
598
+ outputs: MutableMapping[str, OutputMetadata] = proto.MapField(
599
+ proto.STRING,
600
+ proto.MESSAGE,
601
+ number=2,
602
+ message=OutputMetadata,
603
+ )
604
+ feature_attributions_schema_uri: str = proto.Field(
605
+ proto.STRING,
606
+ number=3,
607
+ )
608
+ latent_space_source: str = proto.Field(
609
+ proto.STRING,
610
+ number=5,
611
+ )
612
+
613
+
614
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature.py ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import feature_monitoring_stats
23
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "Feature",
30
+ },
31
+ )
32
+
33
+
34
+ class Feature(proto.Message):
35
+ r"""Feature Metadata information.
36
+ For example, color is a feature that describes an apple.
37
+
38
+ Attributes:
39
+ name (str):
40
+ Immutable. Name of the Feature. Format:
41
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}``
42
+ ``projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}``
43
+
44
+ The last part feature is assigned by the client. The feature
45
+ can be up to 64 characters long and can consist only of
46
+ ASCII Latin letters A-Z and a-z, underscore(\_), and ASCII
47
+ digits 0-9 starting with a letter. The value will be unique
48
+ given an entity type.
49
+ description (str):
50
+ Description of the Feature.
51
+ value_type (google.cloud.aiplatform_v1.types.Feature.ValueType):
52
+ Immutable. Only applicable for Vertex AI
53
+ Feature Store (Legacy). Type of Feature value.
54
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
55
+ Output only. Only applicable for Vertex AI
56
+ Feature Store (Legacy). Timestamp when this
57
+ EntityType was created.
58
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
59
+ Output only. Only applicable for Vertex AI
60
+ Feature Store (Legacy). Timestamp when this
61
+ EntityType was most recently updated.
62
+ labels (MutableMapping[str, str]):
63
+ Optional. The labels with user-defined
64
+ metadata to organize your Features.
65
+ Label keys and values can be no longer than 64
66
+ characters (Unicode codepoints), can only
67
+ contain lowercase letters, numeric characters,
68
+ underscores and dashes. International characters
69
+ are allowed.
70
+
71
+ See https://goo.gl/xmQnxf for more information
72
+ on and examples of labels. No more than 64 user
73
+ labels can be associated with one Feature
74
+ (System labels are excluded)."
75
+ System reserved label keys are prefixed with
76
+ "aiplatform.googleapis.com/" and are immutable.
77
+ etag (str):
78
+ Used to perform a consistent
79
+ read-modify-write updates. If not set, a blind
80
+ "overwrite" update happens.
81
+ disable_monitoring (bool):
82
+ Optional. Only applicable for Vertex AI Feature Store
83
+ (Legacy). If not set, use the monitoring_config defined for
84
+ the EntityType this Feature belongs to. Only Features with
85
+ type
86
+ ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType])
87
+ BOOL, STRING, DOUBLE or INT64 can enable monitoring.
88
+
89
+ If set to true, all types of data monitoring are disabled
90
+ despite the config on EntityType.
91
+ monitoring_stats_anomalies (MutableSequence[google.cloud.aiplatform_v1.types.Feature.MonitoringStatsAnomaly]):
92
+ Output only. Only applicable for Vertex AI
93
+ Feature Store (Legacy). The list of historical
94
+ stats and anomalies with specified objectives.
95
+ version_column_name (str):
96
+ Only applicable for Vertex AI Feature Store. The name of the
97
+ BigQuery Table/View column hosting data for this version. If
98
+ no value is provided, will use feature_id.
99
+ point_of_contact (str):
100
+ Entity responsible for maintaining this
101
+ feature. Can be comma separated list of email
102
+ addresses or URIs.
103
+ """
104
+
105
+ class ValueType(proto.Enum):
106
+ r"""Only applicable for Vertex AI Legacy Feature Store.
107
+ An enum representing the value type of a feature.
108
+
109
+ Values:
110
+ VALUE_TYPE_UNSPECIFIED (0):
111
+ The value type is unspecified.
112
+ BOOL (1):
113
+ Used for Feature that is a boolean.
114
+ BOOL_ARRAY (2):
115
+ Used for Feature that is a list of boolean.
116
+ DOUBLE (3):
117
+ Used for Feature that is double.
118
+ DOUBLE_ARRAY (4):
119
+ Used for Feature that is a list of double.
120
+ INT64 (9):
121
+ Used for Feature that is INT64.
122
+ INT64_ARRAY (10):
123
+ Used for Feature that is a list of INT64.
124
+ STRING (11):
125
+ Used for Feature that is string.
126
+ STRING_ARRAY (12):
127
+ Used for Feature that is a list of String.
128
+ BYTES (13):
129
+ Used for Feature that is bytes.
130
+ STRUCT (14):
131
+ Used for Feature that is struct.
132
+ """
133
+
134
+ VALUE_TYPE_UNSPECIFIED = 0
135
+ BOOL = 1
136
+ BOOL_ARRAY = 2
137
+ DOUBLE = 3
138
+ DOUBLE_ARRAY = 4
139
+ INT64 = 9
140
+ INT64_ARRAY = 10
141
+ STRING = 11
142
+ STRING_ARRAY = 12
143
+ BYTES = 13
144
+ STRUCT = 14
145
+
146
+ class MonitoringStatsAnomaly(proto.Message):
147
+ r"""A list of historical
148
+ [SnapshotAnalysis][google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis]
149
+ or
150
+ [ImportFeaturesAnalysis][google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis]
151
+ stats requested by user, sorted by
152
+ [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time]
153
+ descending.
154
+
155
+ Attributes:
156
+ objective (google.cloud.aiplatform_v1.types.Feature.MonitoringStatsAnomaly.Objective):
157
+ Output only. The objective for each stats.
158
+ feature_stats_anomaly (google.cloud.aiplatform_v1.types.FeatureStatsAnomaly):
159
+ Output only. The stats and anomalies
160
+ generated at specific timestamp.
161
+ """
162
+
163
+ class Objective(proto.Enum):
164
+ r"""If the objective in the request is both
165
+ Import Feature Analysis and Snapshot Analysis, this objective
166
+ could be one of them. Otherwise, this objective should be the
167
+ same as the objective in the request.
168
+
169
+ Values:
170
+ OBJECTIVE_UNSPECIFIED (0):
171
+ If it's OBJECTIVE_UNSPECIFIED, monitoring_stats will be
172
+ empty.
173
+ IMPORT_FEATURE_ANALYSIS (1):
174
+ Stats are generated by Import Feature
175
+ Analysis.
176
+ SNAPSHOT_ANALYSIS (2):
177
+ Stats are generated by Snapshot Analysis.
178
+ """
179
+
180
+ OBJECTIVE_UNSPECIFIED = 0
181
+ IMPORT_FEATURE_ANALYSIS = 1
182
+ SNAPSHOT_ANALYSIS = 2
183
+
184
+ objective: "Feature.MonitoringStatsAnomaly.Objective" = proto.Field(
185
+ proto.ENUM,
186
+ number=1,
187
+ enum="Feature.MonitoringStatsAnomaly.Objective",
188
+ )
189
+ feature_stats_anomaly: feature_monitoring_stats.FeatureStatsAnomaly = (
190
+ proto.Field(
191
+ proto.MESSAGE,
192
+ number=2,
193
+ message=feature_monitoring_stats.FeatureStatsAnomaly,
194
+ )
195
+ )
196
+
197
+ name: str = proto.Field(
198
+ proto.STRING,
199
+ number=1,
200
+ )
201
+ description: str = proto.Field(
202
+ proto.STRING,
203
+ number=2,
204
+ )
205
+ value_type: ValueType = proto.Field(
206
+ proto.ENUM,
207
+ number=3,
208
+ enum=ValueType,
209
+ )
210
+ create_time: timestamp_pb2.Timestamp = proto.Field(
211
+ proto.MESSAGE,
212
+ number=4,
213
+ message=timestamp_pb2.Timestamp,
214
+ )
215
+ update_time: timestamp_pb2.Timestamp = proto.Field(
216
+ proto.MESSAGE,
217
+ number=5,
218
+ message=timestamp_pb2.Timestamp,
219
+ )
220
+ labels: MutableMapping[str, str] = proto.MapField(
221
+ proto.STRING,
222
+ proto.STRING,
223
+ number=6,
224
+ )
225
+ etag: str = proto.Field(
226
+ proto.STRING,
227
+ number=7,
228
+ )
229
+ disable_monitoring: bool = proto.Field(
230
+ proto.BOOL,
231
+ number=12,
232
+ )
233
+ monitoring_stats_anomalies: MutableSequence[MonitoringStatsAnomaly] = (
234
+ proto.RepeatedField(
235
+ proto.MESSAGE,
236
+ number=11,
237
+ message=MonitoringStatsAnomaly,
238
+ )
239
+ )
240
+ version_column_name: str = proto.Field(
241
+ proto.STRING,
242
+ number=106,
243
+ )
244
+ point_of_contact: str = proto.Field(
245
+ proto.STRING,
246
+ number=107,
247
+ )
248
+
249
+
250
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature_group.py ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import io
23
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "FeatureGroup",
30
+ },
31
+ )
32
+
33
+
34
+ class FeatureGroup(proto.Message):
35
+ r"""Vertex AI Feature Group.
36
+
37
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
38
+
39
+ Attributes:
40
+ big_query (google.cloud.aiplatform_v1.types.FeatureGroup.BigQuery):
41
+ Indicates that features for this group come from BigQuery
42
+ Table/View. By default treats the source as a sparse time
43
+ series source. The BigQuery source table or view must have
44
+ at least one entity ID column and a column named
45
+ ``feature_timestamp``.
46
+
47
+ This field is a member of `oneof`_ ``source``.
48
+ name (str):
49
+ Identifier. Name of the FeatureGroup. Format:
50
+ ``projects/{project}/locations/{location}/featureGroups/{featureGroup}``
51
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
52
+ Output only. Timestamp when this FeatureGroup
53
+ was created.
54
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
55
+ Output only. Timestamp when this FeatureGroup
56
+ was last updated.
57
+ etag (str):
58
+ Optional. Used to perform consistent
59
+ read-modify-write updates. If not set, a blind
60
+ "overwrite" update happens.
61
+ labels (MutableMapping[str, str]):
62
+ Optional. The labels with user-defined
63
+ metadata to organize your FeatureGroup.
64
+
65
+ Label keys and values can be no longer than 64
66
+ characters (Unicode codepoints), can only
67
+ contain lowercase letters, numeric characters,
68
+ underscores and dashes. International characters
69
+ are allowed.
70
+
71
+ See https://goo.gl/xmQnxf for more information
72
+ on and examples of labels. No more than 64 user
73
+ labels can be associated with one
74
+ FeatureGroup(System labels are excluded)."
75
+ System reserved label keys are prefixed with
76
+ "aiplatform.googleapis.com/" and are immutable.
77
+ description (str):
78
+ Optional. Description of the FeatureGroup.
79
+ """
80
+
81
+ class BigQuery(proto.Message):
82
+ r"""Input source type for BigQuery Tables and Views.
83
+
84
+ Attributes:
85
+ big_query_source (google.cloud.aiplatform_v1.types.BigQuerySource):
86
+ Required. Immutable. The BigQuery source URI
87
+ that points to either a BigQuery Table or View.
88
+ entity_id_columns (MutableSequence[str]):
89
+ Optional. Columns to construct entity_id / row keys. If not
90
+ provided defaults to ``entity_id``.
91
+ static_data_source (bool):
92
+ Optional. Set if the data source is not a
93
+ time-series.
94
+ time_series (google.cloud.aiplatform_v1.types.FeatureGroup.BigQuery.TimeSeries):
95
+ Optional. If the source is a time-series source, this can be
96
+ set to control how downstream sources (ex:
97
+ [FeatureView][google.cloud.aiplatform.v1.FeatureView] ) will
98
+ treat time-series sources. If not set, will treat the source
99
+ as a time-series source with ``feature_timestamp`` as
100
+ timestamp column and no scan boundary.
101
+ dense (bool):
102
+ Optional. If set, all feature values will be fetched from a
103
+ single row per unique entityId including nulls. If not set,
104
+ will collapse all rows for each unique entityId into a singe
105
+ row with any non-null values if present, if no non-null
106
+ values are present will sync null. ex: If source has schema
107
+ ``(entity_id, feature_timestamp, f0, f1)`` and the following
108
+ rows: ``(e1, 2020-01-01T10:00:00.123Z, 10, 15)``
109
+ ``(e1, 2020-02-01T10:00:00.123Z, 20, null)`` If dense is
110
+ set, ``(e1, 20, null)`` is synced to online stores. If dense
111
+ is not set, ``(e1, 20, 15)`` is synced to online stores.
112
+ """
113
+
114
+ class TimeSeries(proto.Message):
115
+ r"""
116
+
117
+ Attributes:
118
+ timestamp_column (str):
119
+ Optional. Column hosting timestamp values for a time-series
120
+ source. Will be used to determine the latest
121
+ ``feature_values`` for each entity. Optional. If not
122
+ provided, column named ``feature_timestamp`` of type
123
+ ``TIMESTAMP`` will be used.
124
+ """
125
+
126
+ timestamp_column: str = proto.Field(
127
+ proto.STRING,
128
+ number=1,
129
+ )
130
+
131
+ big_query_source: io.BigQuerySource = proto.Field(
132
+ proto.MESSAGE,
133
+ number=1,
134
+ message=io.BigQuerySource,
135
+ )
136
+ entity_id_columns: MutableSequence[str] = proto.RepeatedField(
137
+ proto.STRING,
138
+ number=2,
139
+ )
140
+ static_data_source: bool = proto.Field(
141
+ proto.BOOL,
142
+ number=3,
143
+ )
144
+ time_series: "FeatureGroup.BigQuery.TimeSeries" = proto.Field(
145
+ proto.MESSAGE,
146
+ number=4,
147
+ message="FeatureGroup.BigQuery.TimeSeries",
148
+ )
149
+ dense: bool = proto.Field(
150
+ proto.BOOL,
151
+ number=5,
152
+ )
153
+
154
+ big_query: BigQuery = proto.Field(
155
+ proto.MESSAGE,
156
+ number=7,
157
+ oneof="source",
158
+ message=BigQuery,
159
+ )
160
+ name: str = proto.Field(
161
+ proto.STRING,
162
+ number=1,
163
+ )
164
+ create_time: timestamp_pb2.Timestamp = proto.Field(
165
+ proto.MESSAGE,
166
+ number=2,
167
+ message=timestamp_pb2.Timestamp,
168
+ )
169
+ update_time: timestamp_pb2.Timestamp = proto.Field(
170
+ proto.MESSAGE,
171
+ number=3,
172
+ message=timestamp_pb2.Timestamp,
173
+ )
174
+ etag: str = proto.Field(
175
+ proto.STRING,
176
+ number=4,
177
+ )
178
+ labels: MutableMapping[str, str] = proto.MapField(
179
+ proto.STRING,
180
+ proto.STRING,
181
+ number=5,
182
+ )
183
+ description: str = proto.Field(
184
+ proto.STRING,
185
+ number=6,
186
+ )
187
+
188
+
189
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature_monitoring_stats.py ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
23
+
24
+
25
+ __protobuf__ = proto.module(
26
+ package="google.cloud.aiplatform.v1",
27
+ manifest={
28
+ "FeatureStatsAnomaly",
29
+ },
30
+ )
31
+
32
+
33
+ class FeatureStatsAnomaly(proto.Message):
34
+ r"""Stats and Anomaly generated at specific timestamp for specific
35
+ Feature. The start_time and end_time are used to define the time
36
+ range of the dataset that current stats belongs to, e.g. prediction
37
+ traffic is bucketed into prediction datasets by time window. If the
38
+ Dataset is not defined by time window, start_time = end_time.
39
+ Timestamp of the stats and anomalies always refers to end_time. Raw
40
+ stats and anomalies are stored in stats_uri or anomaly_uri in the
41
+ tensorflow defined protos. Field data_stats contains almost
42
+ identical information with the raw stats in Vertex AI defined proto,
43
+ for UI to display.
44
+
45
+ Attributes:
46
+ score (float):
47
+ Feature importance score, only populated when cross-feature
48
+ monitoring is enabled. For now only used to represent
49
+ feature attribution score within range [0, 1] for
50
+ [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW]
51
+ and
52
+ [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT].
53
+ stats_uri (str):
54
+ Path of the stats file for current feature values in Cloud
55
+ Storage bucket. Format:
56
+ gs://<bucket_name>/<object_name>/stats. Example:
57
+ gs://monitoring_bucket/feature_name/stats. Stats are stored
58
+ as binary format with Protobuf message
59
+ `tensorflow.metadata.v0.FeatureNameStatistics <https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto>`__.
60
+ anomaly_uri (str):
61
+ Path of the anomaly file for current feature values in Cloud
62
+ Storage bucket. Format:
63
+ gs://<bucket_name>/<object_name>/anomalies. Example:
64
+ gs://monitoring_bucket/feature_name/anomalies. Stats are
65
+ stored as binary format with Protobuf message Anoamlies are
66
+ stored as binary format with Protobuf message
67
+ [tensorflow.metadata.v0.AnomalyInfo]
68
+ (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
69
+ distribution_deviation (float):
70
+ Deviation from the current stats to baseline
71
+ stats.
72
+ 1. For categorical feature, the distribution
73
+ distance is calculated by L-inifinity
74
+ norm.
75
+ 2. For numerical feature, the distribution
76
+ distance is calculated by
77
+ Jensen–Shannon divergence.
78
+ anomaly_detection_threshold (float):
79
+ This is the threshold used when detecting anomalies. The
80
+ threshold can be changed by user, so this one might be
81
+ different from
82
+ [ThresholdConfig.value][google.cloud.aiplatform.v1.ThresholdConfig.value].
83
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
84
+ The start timestamp of window where stats were generated.
85
+ For objectives where time window doesn't make sense (e.g.
86
+ Featurestore Snapshot Monitoring), start_time is only used
87
+ to indicate the monitoring intervals, so it always equals to
88
+ (end_time - monitoring_interval).
89
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
90
+ The end timestamp of window where stats were generated. For
91
+ objectives where time window doesn't make sense (e.g.
92
+ Featurestore Snapshot Monitoring), end_time indicates the
93
+ timestamp of the data used to generate stats (e.g. timestamp
94
+ we take snapshots for feature values).
95
+ """
96
+
97
+ score: float = proto.Field(
98
+ proto.DOUBLE,
99
+ number=1,
100
+ )
101
+ stats_uri: str = proto.Field(
102
+ proto.STRING,
103
+ number=3,
104
+ )
105
+ anomaly_uri: str = proto.Field(
106
+ proto.STRING,
107
+ number=4,
108
+ )
109
+ distribution_deviation: float = proto.Field(
110
+ proto.DOUBLE,
111
+ number=5,
112
+ )
113
+ anomaly_detection_threshold: float = proto.Field(
114
+ proto.DOUBLE,
115
+ number=9,
116
+ )
117
+ start_time: timestamp_pb2.Timestamp = proto.Field(
118
+ proto.MESSAGE,
119
+ number=7,
120
+ message=timestamp_pb2.Timestamp,
121
+ )
122
+ end_time: timestamp_pb2.Timestamp = proto.Field(
123
+ proto.MESSAGE,
124
+ number=8,
125
+ message=timestamp_pb2.Timestamp,
126
+ )
127
+
128
+
129
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature_online_store.py ADDED
@@ -0,0 +1,341 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
23
+ from google.cloud.aiplatform_v1.types import service_networking
24
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
25
+
26
+
27
+ __protobuf__ = proto.module(
28
+ package="google.cloud.aiplatform.v1",
29
+ manifest={
30
+ "FeatureOnlineStore",
31
+ },
32
+ )
33
+
34
+
35
+ class FeatureOnlineStore(proto.Message):
36
+ r"""Vertex AI Feature Online Store provides a centralized
37
+ repository for serving ML features and embedding indexes at low
38
+ latency. The Feature Online Store is a top-level container.
39
+
40
+ This message has `oneof`_ fields (mutually exclusive fields).
41
+ For each oneof, at most one member field can be set at the same time.
42
+ Setting any member of the oneof automatically clears all other
43
+ members.
44
+
45
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
46
+
47
+ Attributes:
48
+ bigtable (google.cloud.aiplatform_v1.types.FeatureOnlineStore.Bigtable):
49
+ Contains settings for the Cloud Bigtable
50
+ instance that will be created to serve
51
+ featureValues for all FeatureViews under this
52
+ FeatureOnlineStore.
53
+
54
+ This field is a member of `oneof`_ ``storage_type``.
55
+ optimized (google.cloud.aiplatform_v1.types.FeatureOnlineStore.Optimized):
56
+ Contains settings for the Optimized store that will be
57
+ created to serve featureValues for all FeatureViews under
58
+ this FeatureOnlineStore. When choose Optimized storage type,
59
+ need to set
60
+ [PrivateServiceConnectConfig.enable_private_service_connect][google.cloud.aiplatform.v1.PrivateServiceConnectConfig.enable_private_service_connect]
61
+ to use private endpoint. Otherwise will use public endpoint
62
+ by default.
63
+
64
+ This field is a member of `oneof`_ ``storage_type``.
65
+ name (str):
66
+ Identifier. Name of the FeatureOnlineStore. Format:
67
+ ``projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}``
68
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
69
+ Output only. Timestamp when this
70
+ FeatureOnlineStore was created.
71
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
72
+ Output only. Timestamp when this
73
+ FeatureOnlineStore was last updated.
74
+ etag (str):
75
+ Optional. Used to perform consistent
76
+ read-modify-write updates. If not set, a blind
77
+ "overwrite" update happens.
78
+ labels (MutableMapping[str, str]):
79
+ Optional. The labels with user-defined
80
+ metadata to organize your FeatureOnlineStore.
81
+
82
+ Label keys and values can be no longer than 64
83
+ characters (Unicode codepoints), can only
84
+ contain lowercase letters, numeric characters,
85
+ underscores and dashes. International characters
86
+ are allowed.
87
+
88
+ See https://goo.gl/xmQnxf for more information
89
+ on and examples of labels. No more than 64 user
90
+ labels can be associated with one
91
+ FeatureOnlineStore(System labels are excluded)."
92
+ System reserved label keys are prefixed with
93
+ "aiplatform.googleapis.com/" and are immutable.
94
+ state (google.cloud.aiplatform_v1.types.FeatureOnlineStore.State):
95
+ Output only. State of the featureOnlineStore.
96
+ dedicated_serving_endpoint (google.cloud.aiplatform_v1.types.FeatureOnlineStore.DedicatedServingEndpoint):
97
+ Optional. The dedicated serving endpoint for
98
+ this FeatureOnlineStore, which is different from
99
+ common Vertex service endpoint.
100
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
101
+ Optional. Customer-managed encryption key
102
+ spec for data storage. If set, online store will
103
+ be secured by this key.
104
+ satisfies_pzs (bool):
105
+ Output only. Reserved for future use.
106
+ satisfies_pzi (bool):
107
+ Output only. Reserved for future use.
108
+ """
109
+
110
+ class State(proto.Enum):
111
+ r"""Possible states a featureOnlineStore can have.
112
+
113
+ Values:
114
+ STATE_UNSPECIFIED (0):
115
+ Default value. This value is unused.
116
+ STABLE (1):
117
+ State when the featureOnlineStore
118
+ configuration is not being updated and the
119
+ fields reflect the current configuration of the
120
+ featureOnlineStore. The featureOnlineStore is
121
+ usable in this state.
122
+ UPDATING (2):
123
+ The state of the featureOnlineStore
124
+ configuration when it is being updated. During
125
+ an update, the fields reflect either the
126
+ original configuration or the updated
127
+ configuration of the featureOnlineStore. The
128
+ featureOnlineStore is still usable in this
129
+ state.
130
+ """
131
+
132
+ STATE_UNSPECIFIED = 0
133
+ STABLE = 1
134
+ UPDATING = 2
135
+
136
+ class Bigtable(proto.Message):
137
+ r"""
138
+
139
+ Attributes:
140
+ auto_scaling (google.cloud.aiplatform_v1.types.FeatureOnlineStore.Bigtable.AutoScaling):
141
+ Required. Autoscaling config applied to
142
+ Bigtable Instance.
143
+ enable_direct_bigtable_access (bool):
144
+ Optional. Whether direct access to the
145
+ Bigtable instance is enabled or not.
146
+ bigtable_metadata (google.cloud.aiplatform_v1.types.FeatureOnlineStore.Bigtable.BigtableMetadata):
147
+ Output only. Metadata of the Bigtable
148
+ instance. Output only.
149
+ zone (str):
150
+ Optional. The zone where the underlying
151
+ Bigtable cluster for the primary Bigtable
152
+ instance will be provisioned. Only the zone must
153
+ be provided. For example, only "us-central1-a"
154
+ should be provided.
155
+ """
156
+
157
+ class AutoScaling(proto.Message):
158
+ r"""
159
+
160
+ Attributes:
161
+ min_node_count (int):
162
+ Required. The minimum number of nodes to
163
+ scale down to. Must be greater than or equal to
164
+ 1.
165
+ max_node_count (int):
166
+ Required. The maximum number of nodes to scale up to. Must
167
+ be greater than or equal to min_node_count, and less than or
168
+ equal to 10 times of 'min_node_count'.
169
+ cpu_utilization_target (int):
170
+ Optional. A percentage of the cluster's CPU
171
+ capacity. Can be from 10% to 80%. When a
172
+ cluster's CPU utilization exceeds the target
173
+ that you have set, Bigtable immediately adds
174
+ nodes to the cluster. When CPU utilization is
175
+ substantially lower than the target, Bigtable
176
+ removes nodes. If not set will default to 50%.
177
+ """
178
+
179
+ min_node_count: int = proto.Field(
180
+ proto.INT32,
181
+ number=1,
182
+ )
183
+ max_node_count: int = proto.Field(
184
+ proto.INT32,
185
+ number=2,
186
+ )
187
+ cpu_utilization_target: int = proto.Field(
188
+ proto.INT32,
189
+ number=3,
190
+ )
191
+
192
+ class BigtableMetadata(proto.Message):
193
+ r"""Metadata of the Bigtable instance. This is used by direct
194
+ read access to the Bigtable in tenant project.
195
+
196
+ Attributes:
197
+ tenant_project_id (str):
198
+ Tenant project ID.
199
+ instance_id (str):
200
+ The Cloud Bigtable instance id.
201
+ table_id (str):
202
+ The Cloud Bigtable table id.
203
+ """
204
+
205
+ tenant_project_id: str = proto.Field(
206
+ proto.STRING,
207
+ number=1,
208
+ )
209
+ instance_id: str = proto.Field(
210
+ proto.STRING,
211
+ number=2,
212
+ )
213
+ table_id: str = proto.Field(
214
+ proto.STRING,
215
+ number=3,
216
+ )
217
+
218
+ auto_scaling: "FeatureOnlineStore.Bigtable.AutoScaling" = proto.Field(
219
+ proto.MESSAGE,
220
+ number=1,
221
+ message="FeatureOnlineStore.Bigtable.AutoScaling",
222
+ )
223
+ enable_direct_bigtable_access: bool = proto.Field(
224
+ proto.BOOL,
225
+ number=3,
226
+ )
227
+ bigtable_metadata: "FeatureOnlineStore.Bigtable.BigtableMetadata" = proto.Field(
228
+ proto.MESSAGE,
229
+ number=4,
230
+ message="FeatureOnlineStore.Bigtable.BigtableMetadata",
231
+ )
232
+ zone: str = proto.Field(
233
+ proto.STRING,
234
+ number=5,
235
+ )
236
+
237
+ class Optimized(proto.Message):
238
+ r"""Optimized storage type"""
239
+
240
+ class DedicatedServingEndpoint(proto.Message):
241
+ r"""The dedicated serving endpoint for this FeatureOnlineStore.
242
+ Only need to set when you choose Optimized storage type. Public
243
+ endpoint is provisioned by default.
244
+
245
+ Attributes:
246
+ public_endpoint_domain_name (str):
247
+ Output only. This field will be populated
248
+ with the domain name to use for this
249
+ FeatureOnlineStore
250
+ private_service_connect_config (google.cloud.aiplatform_v1.types.PrivateServiceConnectConfig):
251
+ Optional. Private service connect config. The private
252
+ service connection is available only for Optimized storage
253
+ type, not for embedding management now. If
254
+ [PrivateServiceConnectConfig.enable_private_service_connect][google.cloud.aiplatform.v1.PrivateServiceConnectConfig.enable_private_service_connect]
255
+ set to true, customers will use private service connection
256
+ to send request. Otherwise, the connection will set to
257
+ public endpoint.
258
+ service_attachment (str):
259
+ Output only. The name of the service
260
+ attachment resource. Populated if private
261
+ service connect is enabled and after
262
+ FeatureViewSync is created.
263
+ """
264
+
265
+ public_endpoint_domain_name: str = proto.Field(
266
+ proto.STRING,
267
+ number=2,
268
+ )
269
+ private_service_connect_config: (
270
+ service_networking.PrivateServiceConnectConfig
271
+ ) = proto.Field(
272
+ proto.MESSAGE,
273
+ number=3,
274
+ message=service_networking.PrivateServiceConnectConfig,
275
+ )
276
+ service_attachment: str = proto.Field(
277
+ proto.STRING,
278
+ number=4,
279
+ )
280
+
281
+ bigtable: Bigtable = proto.Field(
282
+ proto.MESSAGE,
283
+ number=8,
284
+ oneof="storage_type",
285
+ message=Bigtable,
286
+ )
287
+ optimized: Optimized = proto.Field(
288
+ proto.MESSAGE,
289
+ number=12,
290
+ oneof="storage_type",
291
+ message=Optimized,
292
+ )
293
+ name: str = proto.Field(
294
+ proto.STRING,
295
+ number=1,
296
+ )
297
+ create_time: timestamp_pb2.Timestamp = proto.Field(
298
+ proto.MESSAGE,
299
+ number=3,
300
+ message=timestamp_pb2.Timestamp,
301
+ )
302
+ update_time: timestamp_pb2.Timestamp = proto.Field(
303
+ proto.MESSAGE,
304
+ number=4,
305
+ message=timestamp_pb2.Timestamp,
306
+ )
307
+ etag: str = proto.Field(
308
+ proto.STRING,
309
+ number=5,
310
+ )
311
+ labels: MutableMapping[str, str] = proto.MapField(
312
+ proto.STRING,
313
+ proto.STRING,
314
+ number=6,
315
+ )
316
+ state: State = proto.Field(
317
+ proto.ENUM,
318
+ number=7,
319
+ enum=State,
320
+ )
321
+ dedicated_serving_endpoint: DedicatedServingEndpoint = proto.Field(
322
+ proto.MESSAGE,
323
+ number=10,
324
+ message=DedicatedServingEndpoint,
325
+ )
326
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
327
+ proto.MESSAGE,
328
+ number=13,
329
+ message=gca_encryption_spec.EncryptionSpec,
330
+ )
331
+ satisfies_pzs: bool = proto.Field(
332
+ proto.BOOL,
333
+ number=15,
334
+ )
335
+ satisfies_pzi: bool = proto.Field(
336
+ proto.BOOL,
337
+ number=16,
338
+ )
339
+
340
+
341
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/feature_view.py ADDED
@@ -0,0 +1,540 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import machine_resources
23
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "FeatureView",
30
+ },
31
+ )
32
+
33
+
34
+ class FeatureView(proto.Message):
35
+ r"""FeatureView is representation of values that the
36
+ FeatureOnlineStore will serve based on its syncConfig.
37
+
38
+ This message has `oneof`_ fields (mutually exclusive fields).
39
+ For each oneof, at most one member field can be set at the same time.
40
+ Setting any member of the oneof automatically clears all other
41
+ members.
42
+
43
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
44
+
45
+ Attributes:
46
+ big_query_source (google.cloud.aiplatform_v1.types.FeatureView.BigQuerySource):
47
+ Optional. Configures how data is supposed to
48
+ be extracted from a BigQuery source to be loaded
49
+ onto the FeatureOnlineStore.
50
+
51
+ This field is a member of `oneof`_ ``source``.
52
+ feature_registry_source (google.cloud.aiplatform_v1.types.FeatureView.FeatureRegistrySource):
53
+ Optional. Configures the features from a
54
+ Feature Registry source that need to be loaded
55
+ onto the FeatureOnlineStore.
56
+
57
+ This field is a member of `oneof`_ ``source``.
58
+ vertex_rag_source (google.cloud.aiplatform_v1.types.FeatureView.VertexRagSource):
59
+ Optional. The Vertex RAG Source that the
60
+ FeatureView is linked to.
61
+
62
+ This field is a member of `oneof`_ ``source``.
63
+ name (str):
64
+ Identifier. Name of the FeatureView. Format:
65
+ ``projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}``
66
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
67
+ Output only. Timestamp when this FeatureView
68
+ was created.
69
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
70
+ Output only. Timestamp when this FeatureView
71
+ was last updated.
72
+ etag (str):
73
+ Optional. Used to perform consistent
74
+ read-modify-write updates. If not set, a blind
75
+ "overwrite" update happens.
76
+ labels (MutableMapping[str, str]):
77
+ Optional. The labels with user-defined
78
+ metadata to organize your FeatureViews.
79
+
80
+ Label keys and values can be no longer than 64
81
+ characters (Unicode codepoints), can only
82
+ contain lowercase letters, numeric characters,
83
+ underscores and dashes. International characters
84
+ are allowed.
85
+
86
+ See https://goo.gl/xmQnxf for more information
87
+ on and examples of labels. No more than 64 user
88
+ labels can be associated with one
89
+ FeatureOnlineStore(System labels are excluded)."
90
+ System reserved label keys are prefixed with
91
+ "aiplatform.googleapis.com/" and are immutable.
92
+ sync_config (google.cloud.aiplatform_v1.types.FeatureView.SyncConfig):
93
+ Configures when data is to be synced/updated
94
+ for this FeatureView. At the end of the sync the
95
+ latest featureValues for each entityId of this
96
+ FeatureView are made ready for online serving.
97
+ index_config (google.cloud.aiplatform_v1.types.FeatureView.IndexConfig):
98
+ Optional. Configuration for index preparation
99
+ for vector search. It contains the required
100
+ configurations to create an index from source
101
+ data, so that approximate nearest neighbor
102
+ (a.k.a ANN) algorithms search can be performed
103
+ during online serving.
104
+ optimized_config (google.cloud.aiplatform_v1.types.FeatureView.OptimizedConfig):
105
+ Optional. Configuration for FeatureView
106
+ created under Optimized FeatureOnlineStore.
107
+ service_agent_type (google.cloud.aiplatform_v1.types.FeatureView.ServiceAgentType):
108
+ Optional. Service agent type used during data sync. By
109
+ default, the Vertex AI Service Agent is used. When using an
110
+ IAM Policy to isolate this FeatureView within a project, a
111
+ separate service account should be provisioned by setting
112
+ this field to ``SERVICE_AGENT_TYPE_FEATURE_VIEW``. This will
113
+ generate a separate service account to access the BigQuery
114
+ source table.
115
+ service_account_email (str):
116
+ Output only. A Service Account unique to this
117
+ FeatureView. The role bigquery.dataViewer should
118
+ be granted to this service account to allow
119
+ Vertex AI Feature Store to sync data to the
120
+ online store.
121
+ satisfies_pzs (bool):
122
+ Output only. Reserved for future use.
123
+ satisfies_pzi (bool):
124
+ Output only. Reserved for future use.
125
+ bigtable_metadata (google.cloud.aiplatform_v1.types.FeatureView.BigtableMetadata):
126
+ Metadata containing information about the
127
+ Cloud Bigtable.
128
+ """
129
+
130
+ class ServiceAgentType(proto.Enum):
131
+ r"""Service agent type used during data sync.
132
+
133
+ Values:
134
+ SERVICE_AGENT_TYPE_UNSPECIFIED (0):
135
+ By default, the project-level Vertex AI
136
+ Service Agent is enabled.
137
+ SERVICE_AGENT_TYPE_PROJECT (1):
138
+ Indicates the project-level Vertex AI Service
139
+ Agent
140
+ (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
141
+ will be used during sync jobs.
142
+ SERVICE_AGENT_TYPE_FEATURE_VIEW (2):
143
+ Enable a FeatureView service account to be created by Vertex
144
+ AI and output in the field ``service_account_email``. This
145
+ service account will be used to read from the source
146
+ BigQuery table during sync.
147
+ """
148
+
149
+ SERVICE_AGENT_TYPE_UNSPECIFIED = 0
150
+ SERVICE_AGENT_TYPE_PROJECT = 1
151
+ SERVICE_AGENT_TYPE_FEATURE_VIEW = 2
152
+
153
+ class BigQuerySource(proto.Message):
154
+ r"""
155
+
156
+ Attributes:
157
+ uri (str):
158
+ Required. The BigQuery view URI that will be
159
+ materialized on each sync trigger based on
160
+ FeatureView.SyncConfig.
161
+ entity_id_columns (MutableSequence[str]):
162
+ Required. Columns to construct entity_id / row keys.
163
+ """
164
+
165
+ uri: str = proto.Field(
166
+ proto.STRING,
167
+ number=1,
168
+ )
169
+ entity_id_columns: MutableSequence[str] = proto.RepeatedField(
170
+ proto.STRING,
171
+ number=2,
172
+ )
173
+
174
+ class SyncConfig(proto.Message):
175
+ r"""Configuration for Sync. Only one option is set.
176
+
177
+ Attributes:
178
+ cron (str):
179
+ Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch
180
+ scheduled runs. To explicitly set a timezone to the cron
181
+ tab, apply a prefix in the cron tab:
182
+ "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The
183
+ ${IANA_TIME_ZONE} may only be a valid string from IANA time
184
+ zone database. For example, "CRON_TZ=America/New_York 1 \*
185
+ \* \* \*", or "TZ=America/New_York 1 \* \* \* \*".
186
+ continuous (bool):
187
+ Optional. If true, syncs the FeatureView in a
188
+ continuous manner to Online Store.
189
+ """
190
+
191
+ cron: str = proto.Field(
192
+ proto.STRING,
193
+ number=1,
194
+ )
195
+ continuous: bool = proto.Field(
196
+ proto.BOOL,
197
+ number=2,
198
+ )
199
+
200
+ class IndexConfig(proto.Message):
201
+ r"""Configuration for vector indexing.
202
+
203
+ This message has `oneof`_ fields (mutually exclusive fields).
204
+ For each oneof, at most one member field can be set at the same time.
205
+ Setting any member of the oneof automatically clears all other
206
+ members.
207
+
208
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
209
+
210
+ Attributes:
211
+ tree_ah_config (google.cloud.aiplatform_v1.types.FeatureView.IndexConfig.TreeAHConfig):
212
+ Optional. Configuration options for the
213
+ tree-AH algorithm (Shallow tree
214
+ + Asymmetric Hashing). Please refer to this
215
+ paper for more details:
216
+
217
+ https://arxiv.org/abs/1908.10396
218
+
219
+ This field is a member of `oneof`_ ``algorithm_config``.
220
+ brute_force_config (google.cloud.aiplatform_v1.types.FeatureView.IndexConfig.BruteForceConfig):
221
+ Optional. Configuration options for using
222
+ brute force search, which simply implements the
223
+ standard linear search in the database for each
224
+ query. It is primarily meant for benchmarking
225
+ and to generate the ground truth for approximate
226
+ search.
227
+
228
+ This field is a member of `oneof`_ ``algorithm_config``.
229
+ embedding_column (str):
230
+ Optional. Column of embedding. This column contains the
231
+ source data to create index for vector search.
232
+ embedding_column must be set when using vector search.
233
+ filter_columns (MutableSequence[str]):
234
+ Optional. Columns of features that're used to
235
+ filter vector search results.
236
+ crowding_column (str):
237
+ Optional. Column of crowding. This column contains crowding
238
+ attribute which is a constraint on a neighbor list produced
239
+ by
240
+ [FeatureOnlineStoreService.SearchNearestEntities][google.cloud.aiplatform.v1.FeatureOnlineStoreService.SearchNearestEntities]
241
+ to diversify search results. If
242
+ [NearestNeighborQuery.per_crowding_attribute_neighbor_count][google.cloud.aiplatform.v1.NearestNeighborQuery.per_crowding_attribute_neighbor_count]
243
+ is set to K in
244
+ [SearchNearestEntitiesRequest][google.cloud.aiplatform.v1.SearchNearestEntitiesRequest],
245
+ it's guaranteed that no more than K entities of the same
246
+ crowding attribute are returned in the response.
247
+ embedding_dimension (int):
248
+ Optional. The number of dimensions of the
249
+ input embedding.
250
+
251
+ This field is a member of `oneof`_ ``_embedding_dimension``.
252
+ distance_measure_type (google.cloud.aiplatform_v1.types.FeatureView.IndexConfig.DistanceMeasureType):
253
+ Optional. The distance measure used in
254
+ nearest neighbor search.
255
+ """
256
+
257
+ class DistanceMeasureType(proto.Enum):
258
+ r"""The distance measure used in nearest neighbor search.
259
+
260
+ Values:
261
+ DISTANCE_MEASURE_TYPE_UNSPECIFIED (0):
262
+ Should not be set.
263
+ SQUARED_L2_DISTANCE (1):
264
+ Euclidean (L_2) Distance.
265
+ COSINE_DISTANCE (2):
266
+ Cosine Distance. Defined as 1 - cosine similarity.
267
+
268
+ We strongly suggest using DOT_PRODUCT_DISTANCE +
269
+ UNIT_L2_NORM instead of COSINE distance. Our algorithms have
270
+ been more optimized for DOT_PRODUCT distance which, when
271
+ combined with UNIT_L2_NORM, is mathematically equivalent to
272
+ COSINE distance and results in the same ranking.
273
+ DOT_PRODUCT_DISTANCE (3):
274
+ Dot Product Distance. Defined as a negative
275
+ of the dot product.
276
+ """
277
+
278
+ DISTANCE_MEASURE_TYPE_UNSPECIFIED = 0
279
+ SQUARED_L2_DISTANCE = 1
280
+ COSINE_DISTANCE = 2
281
+ DOT_PRODUCT_DISTANCE = 3
282
+
283
+ class BruteForceConfig(proto.Message):
284
+ r"""Configuration options for using brute force search."""
285
+
286
+ class TreeAHConfig(proto.Message):
287
+ r"""Configuration options for the tree-AH algorithm.
288
+
289
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
290
+
291
+ Attributes:
292
+ leaf_node_embedding_count (int):
293
+ Optional. Number of embeddings on each leaf
294
+ node. The default value is 1000 if not set.
295
+
296
+ This field is a member of `oneof`_ ``_leaf_node_embedding_count``.
297
+ """
298
+
299
+ leaf_node_embedding_count: int = proto.Field(
300
+ proto.INT64,
301
+ number=1,
302
+ optional=True,
303
+ )
304
+
305
+ tree_ah_config: "FeatureView.IndexConfig.TreeAHConfig" = proto.Field(
306
+ proto.MESSAGE,
307
+ number=6,
308
+ oneof="algorithm_config",
309
+ message="FeatureView.IndexConfig.TreeAHConfig",
310
+ )
311
+ brute_force_config: "FeatureView.IndexConfig.BruteForceConfig" = proto.Field(
312
+ proto.MESSAGE,
313
+ number=7,
314
+ oneof="algorithm_config",
315
+ message="FeatureView.IndexConfig.BruteForceConfig",
316
+ )
317
+ embedding_column: str = proto.Field(
318
+ proto.STRING,
319
+ number=1,
320
+ )
321
+ filter_columns: MutableSequence[str] = proto.RepeatedField(
322
+ proto.STRING,
323
+ number=2,
324
+ )
325
+ crowding_column: str = proto.Field(
326
+ proto.STRING,
327
+ number=3,
328
+ )
329
+ embedding_dimension: int = proto.Field(
330
+ proto.INT32,
331
+ number=4,
332
+ optional=True,
333
+ )
334
+ distance_measure_type: "FeatureView.IndexConfig.DistanceMeasureType" = (
335
+ proto.Field(
336
+ proto.ENUM,
337
+ number=5,
338
+ enum="FeatureView.IndexConfig.DistanceMeasureType",
339
+ )
340
+ )
341
+
342
+ class FeatureRegistrySource(proto.Message):
343
+ r"""A Feature Registry source for features that need to be synced
344
+ to Online Store.
345
+
346
+
347
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
348
+
349
+ Attributes:
350
+ feature_groups (MutableSequence[google.cloud.aiplatform_v1.types.FeatureView.FeatureRegistrySource.FeatureGroup]):
351
+ Required. List of features that need to be
352
+ synced to Online Store.
353
+ project_number (int):
354
+ Optional. The project number of the parent
355
+ project of the Feature Groups.
356
+
357
+ This field is a member of `oneof`_ ``_project_number``.
358
+ """
359
+
360
+ class FeatureGroup(proto.Message):
361
+ r"""Features belonging to a single feature group that will be
362
+ synced to Online Store.
363
+
364
+ Attributes:
365
+ feature_group_id (str):
366
+ Required. Identifier of the feature group.
367
+ feature_ids (MutableSequence[str]):
368
+ Required. Identifiers of features under the
369
+ feature group.
370
+ """
371
+
372
+ feature_group_id: str = proto.Field(
373
+ proto.STRING,
374
+ number=1,
375
+ )
376
+ feature_ids: MutableSequence[str] = proto.RepeatedField(
377
+ proto.STRING,
378
+ number=2,
379
+ )
380
+
381
+ feature_groups: MutableSequence[
382
+ "FeatureView.FeatureRegistrySource.FeatureGroup"
383
+ ] = proto.RepeatedField(
384
+ proto.MESSAGE,
385
+ number=1,
386
+ message="FeatureView.FeatureRegistrySource.FeatureGroup",
387
+ )
388
+ project_number: int = proto.Field(
389
+ proto.INT64,
390
+ number=2,
391
+ optional=True,
392
+ )
393
+
394
+ class VertexRagSource(proto.Message):
395
+ r"""A Vertex Rag source for features that need to be synced to
396
+ Online Store.
397
+
398
+ Attributes:
399
+ uri (str):
400
+ Required. The BigQuery view/table URI that will be
401
+ materialized on each manual sync trigger. The table/view is
402
+ expected to have the following columns and types at least:
403
+
404
+ - ``corpus_id`` (STRING, NULLABLE/REQUIRED)
405
+ - ``file_id`` (STRING, NULLABLE/REQUIRED)
406
+ - ``chunk_id`` (STRING, NULLABLE/REQUIRED)
407
+ - ``chunk_data_type`` (STRING, NULLABLE/REQUIRED)
408
+ - ``chunk_data`` (STRING, NULLABLE/REQUIRED)
409
+ - ``embeddings`` (FLOAT, REPEATED)
410
+ - ``file_original_uri`` (STRING, NULLABLE/REQUIRED)
411
+ rag_corpus_id (int):
412
+ Optional. The RAG corpus id corresponding to
413
+ this FeatureView.
414
+ """
415
+
416
+ uri: str = proto.Field(
417
+ proto.STRING,
418
+ number=1,
419
+ )
420
+ rag_corpus_id: int = proto.Field(
421
+ proto.INT64,
422
+ number=2,
423
+ )
424
+
425
+ class OptimizedConfig(proto.Message):
426
+ r"""Configuration for FeatureViews created in Optimized
427
+ FeatureOnlineStore.
428
+
429
+ Attributes:
430
+ automatic_resources (google.cloud.aiplatform_v1.types.AutomaticResources):
431
+ Optional. A description of resources that the FeatureView
432
+ uses, which to large degree are decided by Vertex AI, and
433
+ optionally allows only a modest additional configuration. If
434
+ min_replica_count is not set, the default value is 2. If
435
+ max_replica_count is not set, the default value is 6. The
436
+ max allowed replica count is 1000.
437
+ """
438
+
439
+ automatic_resources: machine_resources.AutomaticResources = proto.Field(
440
+ proto.MESSAGE,
441
+ number=7,
442
+ message=machine_resources.AutomaticResources,
443
+ )
444
+
445
+ class BigtableMetadata(proto.Message):
446
+ r"""Metadata for the Cloud Bigtable that supports directly
447
+ interacting Bigtable instances.
448
+
449
+ Attributes:
450
+ read_app_profile (str):
451
+ The Bigtable App Profile to use for reading
452
+ from Bigtable.
453
+ """
454
+
455
+ read_app_profile: str = proto.Field(
456
+ proto.STRING,
457
+ number=1,
458
+ )
459
+
460
+ big_query_source: BigQuerySource = proto.Field(
461
+ proto.MESSAGE,
462
+ number=6,
463
+ oneof="source",
464
+ message=BigQuerySource,
465
+ )
466
+ feature_registry_source: FeatureRegistrySource = proto.Field(
467
+ proto.MESSAGE,
468
+ number=9,
469
+ oneof="source",
470
+ message=FeatureRegistrySource,
471
+ )
472
+ vertex_rag_source: VertexRagSource = proto.Field(
473
+ proto.MESSAGE,
474
+ number=18,
475
+ oneof="source",
476
+ message=VertexRagSource,
477
+ )
478
+ name: str = proto.Field(
479
+ proto.STRING,
480
+ number=1,
481
+ )
482
+ create_time: timestamp_pb2.Timestamp = proto.Field(
483
+ proto.MESSAGE,
484
+ number=2,
485
+ message=timestamp_pb2.Timestamp,
486
+ )
487
+ update_time: timestamp_pb2.Timestamp = proto.Field(
488
+ proto.MESSAGE,
489
+ number=3,
490
+ message=timestamp_pb2.Timestamp,
491
+ )
492
+ etag: str = proto.Field(
493
+ proto.STRING,
494
+ number=4,
495
+ )
496
+ labels: MutableMapping[str, str] = proto.MapField(
497
+ proto.STRING,
498
+ proto.STRING,
499
+ number=5,
500
+ )
501
+ sync_config: SyncConfig = proto.Field(
502
+ proto.MESSAGE,
503
+ number=7,
504
+ message=SyncConfig,
505
+ )
506
+ index_config: IndexConfig = proto.Field(
507
+ proto.MESSAGE,
508
+ number=15,
509
+ message=IndexConfig,
510
+ )
511
+ optimized_config: OptimizedConfig = proto.Field(
512
+ proto.MESSAGE,
513
+ number=16,
514
+ message=OptimizedConfig,
515
+ )
516
+ service_agent_type: ServiceAgentType = proto.Field(
517
+ proto.ENUM,
518
+ number=14,
519
+ enum=ServiceAgentType,
520
+ )
521
+ service_account_email: str = proto.Field(
522
+ proto.STRING,
523
+ number=13,
524
+ )
525
+ satisfies_pzs: bool = proto.Field(
526
+ proto.BOOL,
527
+ number=19,
528
+ )
529
+ satisfies_pzi: bool = proto.Field(
530
+ proto.BOOL,
531
+ number=20,
532
+ )
533
+ bigtable_metadata: BigtableMetadata = proto.Field(
534
+ proto.MESSAGE,
535
+ number=22,
536
+ message=BigtableMetadata,
537
+ )
538
+
539
+
540
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/featurestore.py ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
23
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "Featurestore",
30
+ },
31
+ )
32
+
33
+
34
+ class Featurestore(proto.Message):
35
+ r"""Vertex AI Feature Store provides a centralized repository for
36
+ organizing, storing, and serving ML features. The Featurestore
37
+ is a top-level container for your features and their values.
38
+
39
+ Attributes:
40
+ name (str):
41
+ Output only. Name of the Featurestore. Format:
42
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}``
43
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
44
+ Output only. Timestamp when this Featurestore
45
+ was created.
46
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
47
+ Output only. Timestamp when this Featurestore
48
+ was last updated.
49
+ etag (str):
50
+ Optional. Used to perform consistent
51
+ read-modify-write updates. If not set, a blind
52
+ "overwrite" update happens.
53
+ labels (MutableMapping[str, str]):
54
+ Optional. The labels with user-defined
55
+ metadata to organize your Featurestore.
56
+
57
+ Label keys and values can be no longer than 64
58
+ characters (Unicode codepoints), can only
59
+ contain lowercase letters, numeric characters,
60
+ underscores and dashes. International characters
61
+ are allowed.
62
+
63
+ See https://goo.gl/xmQnxf for more information
64
+ on and examples of labels. No more than 64 user
65
+ labels can be associated with one
66
+ Featurestore(System labels are excluded)."
67
+ System reserved label keys are prefixed with
68
+ "aiplatform.googleapis.com/" and are immutable.
69
+ online_serving_config (google.cloud.aiplatform_v1.types.Featurestore.OnlineServingConfig):
70
+ Optional. Config for online storage resources. The field
71
+ should not co-exist with the field of
72
+ ``OnlineStoreReplicationConfig``. If both of it and
73
+ OnlineStoreReplicationConfig are unset, the feature store
74
+ will not have an online store and cannot be used for online
75
+ serving.
76
+ state (google.cloud.aiplatform_v1.types.Featurestore.State):
77
+ Output only. State of the featurestore.
78
+ online_storage_ttl_days (int):
79
+ Optional. TTL in days for feature values that will be stored
80
+ in online serving storage. The Feature Store online storage
81
+ periodically removes obsolete feature values older than
82
+ ``online_storage_ttl_days`` since the feature generation
83
+ time. Note that ``online_storage_ttl_days`` should be less
84
+ than or equal to ``offline_storage_ttl_days`` for each
85
+ EntityType under a featurestore. If not set, default to 4000
86
+ days
87
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
88
+ Optional. Customer-managed encryption key
89
+ spec for data storage. If set, both of the
90
+ online and offline data storage will be secured
91
+ by this key.
92
+ satisfies_pzs (bool):
93
+ Output only. Reserved for future use.
94
+ satisfies_pzi (bool):
95
+ Output only. Reserved for future use.
96
+ """
97
+
98
+ class State(proto.Enum):
99
+ r"""Possible states a featurestore can have.
100
+
101
+ Values:
102
+ STATE_UNSPECIFIED (0):
103
+ Default value. This value is unused.
104
+ STABLE (1):
105
+ State when the featurestore configuration is
106
+ not being updated and the fields reflect the
107
+ current configuration of the featurestore. The
108
+ featurestore is usable in this state.
109
+ UPDATING (2):
110
+ The state of the featurestore configuration when it is being
111
+ updated. During an update, the fields reflect either the
112
+ original configuration or the updated configuration of the
113
+ featurestore. For example,
114
+ ``online_serving_config.fixed_node_count`` can take minutes
115
+ to update. While the update is in progress, the featurestore
116
+ is in the UPDATING state, and the value of
117
+ ``fixed_node_count`` can be the original value or the
118
+ updated value, depending on the progress of the operation.
119
+ Until the update completes, the actual number of nodes can
120
+ still be the original value of ``fixed_node_count``. The
121
+ featurestore is still usable in this state.
122
+ """
123
+
124
+ STATE_UNSPECIFIED = 0
125
+ STABLE = 1
126
+ UPDATING = 2
127
+
128
+ class OnlineServingConfig(proto.Message):
129
+ r"""OnlineServingConfig specifies the details for provisioning
130
+ online serving resources.
131
+
132
+ Attributes:
133
+ fixed_node_count (int):
134
+ The number of nodes for the online store. The
135
+ number of nodes doesn't scale automatically, but
136
+ you can manually update the number of nodes. If
137
+ set to 0, the featurestore will not have an
138
+ online store and cannot be used for online
139
+ serving.
140
+ scaling (google.cloud.aiplatform_v1.types.Featurestore.OnlineServingConfig.Scaling):
141
+ Online serving scaling configuration. Only one of
142
+ ``fixed_node_count`` and ``scaling`` can be set. Setting one
143
+ will reset the other.
144
+ """
145
+
146
+ class Scaling(proto.Message):
147
+ r"""Online serving scaling configuration. If min_node_count and
148
+ max_node_count are set to the same value, the cluster will be
149
+ configured with the fixed number of node (no auto-scaling).
150
+
151
+ Attributes:
152
+ min_node_count (int):
153
+ Required. The minimum number of nodes to
154
+ scale down to. Must be greater than or equal to
155
+ 1.
156
+ max_node_count (int):
157
+ The maximum number of nodes to scale up to. Must be greater
158
+ than min_node_count, and less than or equal to 10 times of
159
+ 'min_node_count'.
160
+ cpu_utilization_target (int):
161
+ Optional. The cpu utilization that the
162
+ Autoscaler should be trying to achieve. This
163
+ number is on a scale from 0 (no utilization) to
164
+ 100 (total utilization), and is limited between
165
+ 10 and 80. When a cluster's CPU utilization
166
+ exceeds the target that you have set, Bigtable
167
+ immediately adds nodes to the cluster. When CPU
168
+ utilization is substantially lower than the
169
+ target, Bigtable removes nodes. If not set or
170
+ set to 0, default to 50.
171
+ """
172
+
173
+ min_node_count: int = proto.Field(
174
+ proto.INT32,
175
+ number=1,
176
+ )
177
+ max_node_count: int = proto.Field(
178
+ proto.INT32,
179
+ number=2,
180
+ )
181
+ cpu_utilization_target: int = proto.Field(
182
+ proto.INT32,
183
+ number=3,
184
+ )
185
+
186
+ fixed_node_count: int = proto.Field(
187
+ proto.INT32,
188
+ number=2,
189
+ )
190
+ scaling: "Featurestore.OnlineServingConfig.Scaling" = proto.Field(
191
+ proto.MESSAGE,
192
+ number=4,
193
+ message="Featurestore.OnlineServingConfig.Scaling",
194
+ )
195
+
196
+ name: str = proto.Field(
197
+ proto.STRING,
198
+ number=1,
199
+ )
200
+ create_time: timestamp_pb2.Timestamp = proto.Field(
201
+ proto.MESSAGE,
202
+ number=3,
203
+ message=timestamp_pb2.Timestamp,
204
+ )
205
+ update_time: timestamp_pb2.Timestamp = proto.Field(
206
+ proto.MESSAGE,
207
+ number=4,
208
+ message=timestamp_pb2.Timestamp,
209
+ )
210
+ etag: str = proto.Field(
211
+ proto.STRING,
212
+ number=5,
213
+ )
214
+ labels: MutableMapping[str, str] = proto.MapField(
215
+ proto.STRING,
216
+ proto.STRING,
217
+ number=6,
218
+ )
219
+ online_serving_config: OnlineServingConfig = proto.Field(
220
+ proto.MESSAGE,
221
+ number=7,
222
+ message=OnlineServingConfig,
223
+ )
224
+ state: State = proto.Field(
225
+ proto.ENUM,
226
+ number=8,
227
+ enum=State,
228
+ )
229
+ online_storage_ttl_days: int = proto.Field(
230
+ proto.INT32,
231
+ number=13,
232
+ )
233
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
234
+ proto.MESSAGE,
235
+ number=10,
236
+ message=gca_encryption_spec.EncryptionSpec,
237
+ )
238
+ satisfies_pzs: bool = proto.Field(
239
+ proto.BOOL,
240
+ number=14,
241
+ )
242
+ satisfies_pzi: bool = proto.Field(
243
+ proto.BOOL,
244
+ number=15,
245
+ )
246
+
247
+
248
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/featurestore_online_service.py ADDED
@@ -0,0 +1,502 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import feature_selector as gca_feature_selector
23
+ from google.cloud.aiplatform_v1.types import types
24
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
25
+
26
+
27
+ __protobuf__ = proto.module(
28
+ package="google.cloud.aiplatform.v1",
29
+ manifest={
30
+ "WriteFeatureValuesRequest",
31
+ "WriteFeatureValuesPayload",
32
+ "WriteFeatureValuesResponse",
33
+ "ReadFeatureValuesRequest",
34
+ "ReadFeatureValuesResponse",
35
+ "StreamingReadFeatureValuesRequest",
36
+ "FeatureValue",
37
+ "StructValue",
38
+ "StructFieldValue",
39
+ "FeatureValueList",
40
+ },
41
+ )
42
+
43
+
44
+ class WriteFeatureValuesRequest(proto.Message):
45
+ r"""Request message for
46
+ [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues].
47
+
48
+ Attributes:
49
+ entity_type (str):
50
+ Required. The resource name of the EntityType for the
51
+ entities being written. Value format:
52
+ ``projects/{project}/locations/{location}/featurestores/ {featurestore}/entityTypes/{entityType}``.
53
+ For example, for a machine learning model predicting user
54
+ clicks on a website, an EntityType ID could be ``user``.
55
+ payloads (MutableSequence[google.cloud.aiplatform_v1.types.WriteFeatureValuesPayload]):
56
+ Required. The entities to be written. Up to 100,000 feature
57
+ values can be written across all ``payloads``.
58
+ """
59
+
60
+ entity_type: str = proto.Field(
61
+ proto.STRING,
62
+ number=1,
63
+ )
64
+ payloads: MutableSequence["WriteFeatureValuesPayload"] = proto.RepeatedField(
65
+ proto.MESSAGE,
66
+ number=2,
67
+ message="WriteFeatureValuesPayload",
68
+ )
69
+
70
+
71
+ class WriteFeatureValuesPayload(proto.Message):
72
+ r"""Contains Feature values to be written for a specific entity.
73
+
74
+ Attributes:
75
+ entity_id (str):
76
+ Required. The ID of the entity.
77
+ feature_values (MutableMapping[str, google.cloud.aiplatform_v1.types.FeatureValue]):
78
+ Required. Feature values to be written, mapping from Feature
79
+ ID to value. Up to 100,000 ``feature_values`` entries may be
80
+ written across all payloads. The feature generation time,
81
+ aligned by days, must be no older than five years (1825
82
+ days) and no later than one year (366 days) in the future.
83
+ """
84
+
85
+ entity_id: str = proto.Field(
86
+ proto.STRING,
87
+ number=1,
88
+ )
89
+ feature_values: MutableMapping[str, "FeatureValue"] = proto.MapField(
90
+ proto.STRING,
91
+ proto.MESSAGE,
92
+ number=2,
93
+ message="FeatureValue",
94
+ )
95
+
96
+
97
+ class WriteFeatureValuesResponse(proto.Message):
98
+ r"""Response message for
99
+ [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues].
100
+
101
+ """
102
+
103
+
104
+ class ReadFeatureValuesRequest(proto.Message):
105
+ r"""Request message for
106
+ [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValues].
107
+
108
+ Attributes:
109
+ entity_type (str):
110
+ Required. The resource name of the EntityType for the entity
111
+ being read. Value format:
112
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}``.
113
+ For example, for a machine learning model predicting user
114
+ clicks on a website, an EntityType ID could be ``user``.
115
+ entity_id (str):
116
+ Required. ID for a specific entity. For example, for a
117
+ machine learning model predicting user clicks on a website,
118
+ an entity ID could be ``user_123``.
119
+ feature_selector (google.cloud.aiplatform_v1.types.FeatureSelector):
120
+ Required. Selector choosing Features of the
121
+ target EntityType.
122
+ """
123
+
124
+ entity_type: str = proto.Field(
125
+ proto.STRING,
126
+ number=1,
127
+ )
128
+ entity_id: str = proto.Field(
129
+ proto.STRING,
130
+ number=2,
131
+ )
132
+ feature_selector: gca_feature_selector.FeatureSelector = proto.Field(
133
+ proto.MESSAGE,
134
+ number=3,
135
+ message=gca_feature_selector.FeatureSelector,
136
+ )
137
+
138
+
139
+ class ReadFeatureValuesResponse(proto.Message):
140
+ r"""Response message for
141
+ [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValues].
142
+
143
+ Attributes:
144
+ header (google.cloud.aiplatform_v1.types.ReadFeatureValuesResponse.Header):
145
+ Response header.
146
+ entity_view (google.cloud.aiplatform_v1.types.ReadFeatureValuesResponse.EntityView):
147
+ Entity view with Feature values. This may be
148
+ the entity in the Featurestore if values for all
149
+ Features were requested, or a projection of the
150
+ entity in the Featurestore if values for only
151
+ some Features were requested.
152
+ """
153
+
154
+ class FeatureDescriptor(proto.Message):
155
+ r"""Metadata for requested Features.
156
+
157
+ Attributes:
158
+ id (str):
159
+ Feature ID.
160
+ """
161
+
162
+ id: str = proto.Field(
163
+ proto.STRING,
164
+ number=1,
165
+ )
166
+
167
+ class Header(proto.Message):
168
+ r"""Response header with metadata for the requested
169
+ [ReadFeatureValuesRequest.entity_type][google.cloud.aiplatform.v1.ReadFeatureValuesRequest.entity_type]
170
+ and Features.
171
+
172
+ Attributes:
173
+ entity_type (str):
174
+ The resource name of the EntityType from the
175
+ [ReadFeatureValuesRequest][google.cloud.aiplatform.v1.ReadFeatureValuesRequest].
176
+ Value format:
177
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}``.
178
+ feature_descriptors (MutableSequence[google.cloud.aiplatform_v1.types.ReadFeatureValuesResponse.FeatureDescriptor]):
179
+ List of Feature metadata corresponding to each piece of
180
+ [ReadFeatureValuesResponse.EntityView.data][google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.data].
181
+ """
182
+
183
+ entity_type: str = proto.Field(
184
+ proto.STRING,
185
+ number=1,
186
+ )
187
+ feature_descriptors: MutableSequence[
188
+ "ReadFeatureValuesResponse.FeatureDescriptor"
189
+ ] = proto.RepeatedField(
190
+ proto.MESSAGE,
191
+ number=2,
192
+ message="ReadFeatureValuesResponse.FeatureDescriptor",
193
+ )
194
+
195
+ class EntityView(proto.Message):
196
+ r"""Entity view with Feature values.
197
+
198
+ Attributes:
199
+ entity_id (str):
200
+ ID of the requested entity.
201
+ data (MutableSequence[google.cloud.aiplatform_v1.types.ReadFeatureValuesResponse.EntityView.Data]):
202
+ Each piece of data holds the k requested values for one
203
+ requested Feature. If no values for the requested Feature
204
+ exist, the corresponding cell will be empty. This has the
205
+ same size and is in the same order as the features from the
206
+ header
207
+ [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1.ReadFeatureValuesResponse.header].
208
+ """
209
+
210
+ class Data(proto.Message):
211
+ r"""Container to hold value(s), successive in time, for one
212
+ Feature from the request.
213
+
214
+ This message has `oneof`_ fields (mutually exclusive fields).
215
+ For each oneof, at most one member field can be set at the same time.
216
+ Setting any member of the oneof automatically clears all other
217
+ members.
218
+
219
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
220
+
221
+ Attributes:
222
+ value (google.cloud.aiplatform_v1.types.FeatureValue):
223
+ Feature value if a single value is requested.
224
+
225
+ This field is a member of `oneof`_ ``data``.
226
+ values (google.cloud.aiplatform_v1.types.FeatureValueList):
227
+ Feature values list if values, successive in
228
+ time, are requested. If the requested number of
229
+ values is greater than the number of existing
230
+ Feature values, nonexistent values are omitted
231
+ instead of being returned as empty.
232
+
233
+ This field is a member of `oneof`_ ``data``.
234
+ """
235
+
236
+ value: "FeatureValue" = proto.Field(
237
+ proto.MESSAGE,
238
+ number=1,
239
+ oneof="data",
240
+ message="FeatureValue",
241
+ )
242
+ values: "FeatureValueList" = proto.Field(
243
+ proto.MESSAGE,
244
+ number=2,
245
+ oneof="data",
246
+ message="FeatureValueList",
247
+ )
248
+
249
+ entity_id: str = proto.Field(
250
+ proto.STRING,
251
+ number=1,
252
+ )
253
+ data: MutableSequence["ReadFeatureValuesResponse.EntityView.Data"] = (
254
+ proto.RepeatedField(
255
+ proto.MESSAGE,
256
+ number=2,
257
+ message="ReadFeatureValuesResponse.EntityView.Data",
258
+ )
259
+ )
260
+
261
+ header: Header = proto.Field(
262
+ proto.MESSAGE,
263
+ number=1,
264
+ message=Header,
265
+ )
266
+ entity_view: EntityView = proto.Field(
267
+ proto.MESSAGE,
268
+ number=2,
269
+ message=EntityView,
270
+ )
271
+
272
+
273
+ class StreamingReadFeatureValuesRequest(proto.Message):
274
+ r"""Request message for
275
+ [FeaturestoreOnlineServingService.StreamingReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValues].
276
+
277
+ Attributes:
278
+ entity_type (str):
279
+ Required. The resource name of the entities' type. Value
280
+ format:
281
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}``.
282
+ For example, for a machine learning model predicting user
283
+ clicks on a website, an EntityType ID could be ``user``.
284
+ entity_ids (MutableSequence[str]):
285
+ Required. IDs of entities to read Feature values of. The
286
+ maximum number of IDs is 100. For example, for a machine
287
+ learning model predicting user clicks on a website, an
288
+ entity ID could be ``user_123``.
289
+ feature_selector (google.cloud.aiplatform_v1.types.FeatureSelector):
290
+ Required. Selector choosing Features of the
291
+ target EntityType. Feature IDs will be
292
+ deduplicated.
293
+ """
294
+
295
+ entity_type: str = proto.Field(
296
+ proto.STRING,
297
+ number=1,
298
+ )
299
+ entity_ids: MutableSequence[str] = proto.RepeatedField(
300
+ proto.STRING,
301
+ number=2,
302
+ )
303
+ feature_selector: gca_feature_selector.FeatureSelector = proto.Field(
304
+ proto.MESSAGE,
305
+ number=3,
306
+ message=gca_feature_selector.FeatureSelector,
307
+ )
308
+
309
+
310
+ class FeatureValue(proto.Message):
311
+ r"""Value for a feature.
312
+
313
+ This message has `oneof`_ fields (mutually exclusive fields).
314
+ For each oneof, at most one member field can be set at the same time.
315
+ Setting any member of the oneof automatically clears all other
316
+ members.
317
+
318
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
319
+
320
+ Attributes:
321
+ bool_value (bool):
322
+ Bool type feature value.
323
+
324
+ This field is a member of `oneof`_ ``value``.
325
+ double_value (float):
326
+ Double type feature value.
327
+
328
+ This field is a member of `oneof`_ ``value``.
329
+ int64_value (int):
330
+ Int64 feature value.
331
+
332
+ This field is a member of `oneof`_ ``value``.
333
+ string_value (str):
334
+ String feature value.
335
+
336
+ This field is a member of `oneof`_ ``value``.
337
+ bool_array_value (google.cloud.aiplatform_v1.types.BoolArray):
338
+ A list of bool type feature value.
339
+
340
+ This field is a member of `oneof`_ ``value``.
341
+ double_array_value (google.cloud.aiplatform_v1.types.DoubleArray):
342
+ A list of double type feature value.
343
+
344
+ This field is a member of `oneof`_ ``value``.
345
+ int64_array_value (google.cloud.aiplatform_v1.types.Int64Array):
346
+ A list of int64 type feature value.
347
+
348
+ This field is a member of `oneof`_ ``value``.
349
+ string_array_value (google.cloud.aiplatform_v1.types.StringArray):
350
+ A list of string type feature value.
351
+
352
+ This field is a member of `oneof`_ ``value``.
353
+ bytes_value (bytes):
354
+ Bytes feature value.
355
+
356
+ This field is a member of `oneof`_ ``value``.
357
+ struct_value (google.cloud.aiplatform_v1.types.StructValue):
358
+ A struct type feature value.
359
+
360
+ This field is a member of `oneof`_ ``value``.
361
+ metadata (google.cloud.aiplatform_v1.types.FeatureValue.Metadata):
362
+ Metadata of feature value.
363
+ """
364
+
365
+ class Metadata(proto.Message):
366
+ r"""Metadata of feature value.
367
+
368
+ Attributes:
369
+ generate_time (google.protobuf.timestamp_pb2.Timestamp):
370
+ Feature generation timestamp. Typically, it
371
+ is provided by user at feature ingestion time.
372
+ If not, feature store will use the system
373
+ timestamp when the data is ingested into feature
374
+ store.
375
+
376
+ Legacy Feature Store: For streaming ingestion,
377
+ the time, aligned by days, must be no older than
378
+ five years (1825 days) and no later than one
379
+ year (366 days) in the future.
380
+ """
381
+
382
+ generate_time: timestamp_pb2.Timestamp = proto.Field(
383
+ proto.MESSAGE,
384
+ number=1,
385
+ message=timestamp_pb2.Timestamp,
386
+ )
387
+
388
+ bool_value: bool = proto.Field(
389
+ proto.BOOL,
390
+ number=1,
391
+ oneof="value",
392
+ )
393
+ double_value: float = proto.Field(
394
+ proto.DOUBLE,
395
+ number=2,
396
+ oneof="value",
397
+ )
398
+ int64_value: int = proto.Field(
399
+ proto.INT64,
400
+ number=5,
401
+ oneof="value",
402
+ )
403
+ string_value: str = proto.Field(
404
+ proto.STRING,
405
+ number=6,
406
+ oneof="value",
407
+ )
408
+ bool_array_value: types.BoolArray = proto.Field(
409
+ proto.MESSAGE,
410
+ number=7,
411
+ oneof="value",
412
+ message=types.BoolArray,
413
+ )
414
+ double_array_value: types.DoubleArray = proto.Field(
415
+ proto.MESSAGE,
416
+ number=8,
417
+ oneof="value",
418
+ message=types.DoubleArray,
419
+ )
420
+ int64_array_value: types.Int64Array = proto.Field(
421
+ proto.MESSAGE,
422
+ number=11,
423
+ oneof="value",
424
+ message=types.Int64Array,
425
+ )
426
+ string_array_value: types.StringArray = proto.Field(
427
+ proto.MESSAGE,
428
+ number=12,
429
+ oneof="value",
430
+ message=types.StringArray,
431
+ )
432
+ bytes_value: bytes = proto.Field(
433
+ proto.BYTES,
434
+ number=13,
435
+ oneof="value",
436
+ )
437
+ struct_value: "StructValue" = proto.Field(
438
+ proto.MESSAGE,
439
+ number=15,
440
+ oneof="value",
441
+ message="StructValue",
442
+ )
443
+ metadata: Metadata = proto.Field(
444
+ proto.MESSAGE,
445
+ number=14,
446
+ message=Metadata,
447
+ )
448
+
449
+
450
+ class StructValue(proto.Message):
451
+ r"""Struct (or object) type feature value.
452
+
453
+ Attributes:
454
+ values (MutableSequence[google.cloud.aiplatform_v1.types.StructFieldValue]):
455
+ A list of field values.
456
+ """
457
+
458
+ values: MutableSequence["StructFieldValue"] = proto.RepeatedField(
459
+ proto.MESSAGE,
460
+ number=1,
461
+ message="StructFieldValue",
462
+ )
463
+
464
+
465
+ class StructFieldValue(proto.Message):
466
+ r"""One field of a Struct (or object) type feature value.
467
+
468
+ Attributes:
469
+ name (str):
470
+ Name of the field in the struct feature.
471
+ value (google.cloud.aiplatform_v1.types.FeatureValue):
472
+ The value for this field.
473
+ """
474
+
475
+ name: str = proto.Field(
476
+ proto.STRING,
477
+ number=1,
478
+ )
479
+ value: "FeatureValue" = proto.Field(
480
+ proto.MESSAGE,
481
+ number=2,
482
+ message="FeatureValue",
483
+ )
484
+
485
+
486
+ class FeatureValueList(proto.Message):
487
+ r"""Container for list of values.
488
+
489
+ Attributes:
490
+ values (MutableSequence[google.cloud.aiplatform_v1.types.FeatureValue]):
491
+ A list of feature values. All of them should
492
+ be the same data type.
493
+ """
494
+
495
+ values: MutableSequence["FeatureValue"] = proto.RepeatedField(
496
+ proto.MESSAGE,
497
+ number=1,
498
+ message="FeatureValue",
499
+ )
500
+
501
+
502
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/featurestore_service.py ADDED
@@ -0,0 +1,1992 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import entity_type as gca_entity_type
23
+ from google.cloud.aiplatform_v1.types import feature as gca_feature
24
+ from google.cloud.aiplatform_v1.types import feature_selector as gca_feature_selector
25
+ from google.cloud.aiplatform_v1.types import featurestore as gca_featurestore
26
+ from google.cloud.aiplatform_v1.types import io
27
+ from google.cloud.aiplatform_v1.types import operation
28
+ import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
29
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
30
+ import google.type.interval_pb2 as interval_pb2 # type: ignore
31
+
32
+
33
+ __protobuf__ = proto.module(
34
+ package="google.cloud.aiplatform.v1",
35
+ manifest={
36
+ "CreateFeaturestoreRequest",
37
+ "GetFeaturestoreRequest",
38
+ "ListFeaturestoresRequest",
39
+ "ListFeaturestoresResponse",
40
+ "UpdateFeaturestoreRequest",
41
+ "DeleteFeaturestoreRequest",
42
+ "ImportFeatureValuesRequest",
43
+ "ImportFeatureValuesResponse",
44
+ "BatchReadFeatureValuesRequest",
45
+ "ExportFeatureValuesRequest",
46
+ "DestinationFeatureSetting",
47
+ "FeatureValueDestination",
48
+ "ExportFeatureValuesResponse",
49
+ "BatchReadFeatureValuesResponse",
50
+ "CreateEntityTypeRequest",
51
+ "GetEntityTypeRequest",
52
+ "ListEntityTypesRequest",
53
+ "ListEntityTypesResponse",
54
+ "UpdateEntityTypeRequest",
55
+ "DeleteEntityTypeRequest",
56
+ "CreateFeatureRequest",
57
+ "BatchCreateFeaturesRequest",
58
+ "BatchCreateFeaturesResponse",
59
+ "GetFeatureRequest",
60
+ "ListFeaturesRequest",
61
+ "ListFeaturesResponse",
62
+ "SearchFeaturesRequest",
63
+ "SearchFeaturesResponse",
64
+ "UpdateFeatureRequest",
65
+ "DeleteFeatureRequest",
66
+ "CreateFeaturestoreOperationMetadata",
67
+ "UpdateFeaturestoreOperationMetadata",
68
+ "ImportFeatureValuesOperationMetadata",
69
+ "ExportFeatureValuesOperationMetadata",
70
+ "BatchReadFeatureValuesOperationMetadata",
71
+ "DeleteFeatureValuesOperationMetadata",
72
+ "CreateEntityTypeOperationMetadata",
73
+ "CreateFeatureOperationMetadata",
74
+ "BatchCreateFeaturesOperationMetadata",
75
+ "DeleteFeatureValuesRequest",
76
+ "DeleteFeatureValuesResponse",
77
+ "EntityIdSelector",
78
+ },
79
+ )
80
+
81
+
82
+ class CreateFeaturestoreRequest(proto.Message):
83
+ r"""Request message for
84
+ [FeaturestoreService.CreateFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.CreateFeaturestore].
85
+
86
+ Attributes:
87
+ parent (str):
88
+ Required. The resource name of the Location to create
89
+ Featurestores. Format:
90
+ ``projects/{project}/locations/{location}``
91
+ featurestore (google.cloud.aiplatform_v1.types.Featurestore):
92
+ Required. The Featurestore to create.
93
+ featurestore_id (str):
94
+ Required. The ID to use for this Featurestore, which will
95
+ become the final component of the Featurestore's resource
96
+ name.
97
+
98
+ This value may be up to 60 characters, and valid characters
99
+ are ``[a-z0-9_]``. The first character cannot be a number.
100
+
101
+ The value must be unique within the project and location.
102
+ """
103
+
104
+ parent: str = proto.Field(
105
+ proto.STRING,
106
+ number=1,
107
+ )
108
+ featurestore: gca_featurestore.Featurestore = proto.Field(
109
+ proto.MESSAGE,
110
+ number=2,
111
+ message=gca_featurestore.Featurestore,
112
+ )
113
+ featurestore_id: str = proto.Field(
114
+ proto.STRING,
115
+ number=3,
116
+ )
117
+
118
+
119
+ class GetFeaturestoreRequest(proto.Message):
120
+ r"""Request message for
121
+ [FeaturestoreService.GetFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.GetFeaturestore].
122
+
123
+ Attributes:
124
+ name (str):
125
+ Required. The name of the Featurestore
126
+ resource.
127
+ """
128
+
129
+ name: str = proto.Field(
130
+ proto.STRING,
131
+ number=1,
132
+ )
133
+
134
+
135
+ class ListFeaturestoresRequest(proto.Message):
136
+ r"""Request message for
137
+ [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores].
138
+
139
+ Attributes:
140
+ parent (str):
141
+ Required. The resource name of the Location to list
142
+ Featurestores. Format:
143
+ ``projects/{project}/locations/{location}``
144
+ filter (str):
145
+ Lists the featurestores that match the filter expression.
146
+ The following fields are supported:
147
+
148
+ - ``create_time``: Supports ``=``, ``!=``, ``<``, ``>``,
149
+ ``<=``, and ``>=`` comparisons. Values must be in RFC 3339
150
+ format.
151
+ - ``update_time``: Supports ``=``, ``!=``, ``<``, ``>``,
152
+ ``<=``, and ``>=`` comparisons. Values must be in RFC 3339
153
+ format.
154
+ - ``online_serving_config.fixed_node_count``: Supports
155
+ ``=``, ``!=``, ``<``, ``>``, ``<=``, and ``>=``
156
+ comparisons.
157
+ - ``labels``: Supports key-value equality and key presence.
158
+
159
+ Examples:
160
+
161
+ - ``create_time > "2020-01-01" OR update_time > "2020-01-01"``
162
+ Featurestores created or updated after 2020-01-01.
163
+ - ``labels.env = "prod"`` Featurestores with label "env" set
164
+ to "prod".
165
+ page_size (int):
166
+ The maximum number of Featurestores to
167
+ return. The service may return fewer than this
168
+ value. If unspecified, at most 100 Featurestores
169
+ will be returned. The maximum value is 100; any
170
+ value greater than 100 will be coerced to 100.
171
+ page_token (str):
172
+ A page token, received from a previous
173
+ [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores]
174
+ call. Provide this to retrieve the subsequent page.
175
+
176
+ When paginating, all other parameters provided to
177
+ [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores]
178
+ must match the call that provided the page token.
179
+ order_by (str):
180
+ A comma-separated list of fields to order by, sorted in
181
+ ascending order. Use "desc" after a field name for
182
+ descending. Supported Fields:
183
+
184
+ - ``create_time``
185
+ - ``update_time``
186
+ - ``online_serving_config.fixed_node_count``
187
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
188
+ Mask specifying which fields to read.
189
+ """
190
+
191
+ parent: str = proto.Field(
192
+ proto.STRING,
193
+ number=1,
194
+ )
195
+ filter: str = proto.Field(
196
+ proto.STRING,
197
+ number=2,
198
+ )
199
+ page_size: int = proto.Field(
200
+ proto.INT32,
201
+ number=3,
202
+ )
203
+ page_token: str = proto.Field(
204
+ proto.STRING,
205
+ number=4,
206
+ )
207
+ order_by: str = proto.Field(
208
+ proto.STRING,
209
+ number=5,
210
+ )
211
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
212
+ proto.MESSAGE,
213
+ number=6,
214
+ message=field_mask_pb2.FieldMask,
215
+ )
216
+
217
+
218
+ class ListFeaturestoresResponse(proto.Message):
219
+ r"""Response message for
220
+ [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores].
221
+
222
+ Attributes:
223
+ featurestores (MutableSequence[google.cloud.aiplatform_v1.types.Featurestore]):
224
+ The Featurestores matching the request.
225
+ next_page_token (str):
226
+ A token, which can be sent as
227
+ [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1.ListFeaturestoresRequest.page_token]
228
+ to retrieve the next page. If this field is omitted, there
229
+ are no subsequent pages.
230
+ """
231
+
232
+ @property
233
+ def raw_page(self):
234
+ return self
235
+
236
+ featurestores: MutableSequence[gca_featurestore.Featurestore] = proto.RepeatedField(
237
+ proto.MESSAGE,
238
+ number=1,
239
+ message=gca_featurestore.Featurestore,
240
+ )
241
+ next_page_token: str = proto.Field(
242
+ proto.STRING,
243
+ number=2,
244
+ )
245
+
246
+
247
+ class UpdateFeaturestoreRequest(proto.Message):
248
+ r"""Request message for
249
+ [FeaturestoreService.UpdateFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeaturestore].
250
+
251
+ Attributes:
252
+ featurestore (google.cloud.aiplatform_v1.types.Featurestore):
253
+ Required. The Featurestore's ``name`` field is used to
254
+ identify the Featurestore to be updated. Format:
255
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}``
256
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
257
+ Field mask is used to specify the fields to be overwritten
258
+ in the Featurestore resource by the update. The fields
259
+ specified in the update_mask are relative to the resource,
260
+ not the full request. A field will be overwritten if it is
261
+ in the mask. If the user does not provide a mask then only
262
+ the non-empty fields present in the request will be
263
+ overwritten. Set the update_mask to ``*`` to override all
264
+ fields.
265
+
266
+ Updatable fields:
267
+
268
+ - ``labels``
269
+ - ``online_serving_config.fixed_node_count``
270
+ - ``online_serving_config.scaling``
271
+ - ``online_storage_ttl_days``
272
+ """
273
+
274
+ featurestore: gca_featurestore.Featurestore = proto.Field(
275
+ proto.MESSAGE,
276
+ number=1,
277
+ message=gca_featurestore.Featurestore,
278
+ )
279
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
280
+ proto.MESSAGE,
281
+ number=2,
282
+ message=field_mask_pb2.FieldMask,
283
+ )
284
+
285
+
286
+ class DeleteFeaturestoreRequest(proto.Message):
287
+ r"""Request message for
288
+ [FeaturestoreService.DeleteFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeaturestore].
289
+
290
+ Attributes:
291
+ name (str):
292
+ Required. The name of the Featurestore to be deleted.
293
+ Format:
294
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}``
295
+ force (bool):
296
+ If set to true, any EntityTypes and Features
297
+ for this Featurestore will also be deleted.
298
+ (Otherwise, the request will only work if the
299
+ Featurestore has no EntityTypes.)
300
+ """
301
+
302
+ name: str = proto.Field(
303
+ proto.STRING,
304
+ number=1,
305
+ )
306
+ force: bool = proto.Field(
307
+ proto.BOOL,
308
+ number=2,
309
+ )
310
+
311
+
312
+ class ImportFeatureValuesRequest(proto.Message):
313
+ r"""Request message for
314
+ [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues].
315
+
316
+ This message has `oneof`_ fields (mutually exclusive fields).
317
+ For each oneof, at most one member field can be set at the same time.
318
+ Setting any member of the oneof automatically clears all other
319
+ members.
320
+
321
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
322
+
323
+ Attributes:
324
+ avro_source (google.cloud.aiplatform_v1.types.AvroSource):
325
+
326
+ This field is a member of `oneof`_ ``source``.
327
+ bigquery_source (google.cloud.aiplatform_v1.types.BigQuerySource):
328
+
329
+ This field is a member of `oneof`_ ``source``.
330
+ csv_source (google.cloud.aiplatform_v1.types.CsvSource):
331
+
332
+ This field is a member of `oneof`_ ``source``.
333
+ feature_time_field (str):
334
+ Source column that holds the Feature
335
+ timestamp for all Feature values in each entity.
336
+
337
+ This field is a member of `oneof`_ ``feature_time_source``.
338
+ feature_time (google.protobuf.timestamp_pb2.Timestamp):
339
+ Single Feature timestamp for all entities
340
+ being imported. The timestamp must not have
341
+ higher than millisecond precision.
342
+
343
+ This field is a member of `oneof`_ ``feature_time_source``.
344
+ entity_type (str):
345
+ Required. The resource name of the EntityType grouping the
346
+ Features for which values are being imported. Format:
347
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}``
348
+ entity_id_field (str):
349
+ Source column that holds entity IDs. If not provided, entity
350
+ IDs are extracted from the column named entity_id.
351
+ feature_specs (MutableSequence[google.cloud.aiplatform_v1.types.ImportFeatureValuesRequest.FeatureSpec]):
352
+ Required. Specifications defining which Feature values to
353
+ import from the entity. The request fails if no
354
+ feature_specs are provided, and having multiple
355
+ feature_specs for one Feature is not allowed.
356
+ disable_online_serving (bool):
357
+ If set, data will not be imported for online
358
+ serving. This is typically used for backfilling,
359
+ where Feature generation timestamps are not in
360
+ the timestamp range needed for online serving.
361
+ worker_count (int):
362
+ Specifies the number of workers that are used
363
+ to write data to the Featurestore. Consider the
364
+ online serving capacity that you require to
365
+ achieve the desired import throughput without
366
+ interfering with online serving. The value must
367
+ be positive, and less than or equal to 100. If
368
+ not set, defaults to using 1 worker. The low
369
+ count ensures minimal impact on online serving
370
+ performance.
371
+ disable_ingestion_analysis (bool):
372
+ If true, API doesn't start ingestion analysis
373
+ pipeline.
374
+ """
375
+
376
+ class FeatureSpec(proto.Message):
377
+ r"""Defines the Feature value(s) to import.
378
+
379
+ Attributes:
380
+ id (str):
381
+ Required. ID of the Feature to import values
382
+ of. This Feature must exist in the target
383
+ EntityType, or the request will fail.
384
+ source_field (str):
385
+ Source column to get the Feature values from.
386
+ If not set, uses the column with the same name
387
+ as the Feature ID.
388
+ """
389
+
390
+ id: str = proto.Field(
391
+ proto.STRING,
392
+ number=1,
393
+ )
394
+ source_field: str = proto.Field(
395
+ proto.STRING,
396
+ number=2,
397
+ )
398
+
399
+ avro_source: io.AvroSource = proto.Field(
400
+ proto.MESSAGE,
401
+ number=2,
402
+ oneof="source",
403
+ message=io.AvroSource,
404
+ )
405
+ bigquery_source: io.BigQuerySource = proto.Field(
406
+ proto.MESSAGE,
407
+ number=3,
408
+ oneof="source",
409
+ message=io.BigQuerySource,
410
+ )
411
+ csv_source: io.CsvSource = proto.Field(
412
+ proto.MESSAGE,
413
+ number=4,
414
+ oneof="source",
415
+ message=io.CsvSource,
416
+ )
417
+ feature_time_field: str = proto.Field(
418
+ proto.STRING,
419
+ number=6,
420
+ oneof="feature_time_source",
421
+ )
422
+ feature_time: timestamp_pb2.Timestamp = proto.Field(
423
+ proto.MESSAGE,
424
+ number=7,
425
+ oneof="feature_time_source",
426
+ message=timestamp_pb2.Timestamp,
427
+ )
428
+ entity_type: str = proto.Field(
429
+ proto.STRING,
430
+ number=1,
431
+ )
432
+ entity_id_field: str = proto.Field(
433
+ proto.STRING,
434
+ number=5,
435
+ )
436
+ feature_specs: MutableSequence[FeatureSpec] = proto.RepeatedField(
437
+ proto.MESSAGE,
438
+ number=8,
439
+ message=FeatureSpec,
440
+ )
441
+ disable_online_serving: bool = proto.Field(
442
+ proto.BOOL,
443
+ number=9,
444
+ )
445
+ worker_count: int = proto.Field(
446
+ proto.INT32,
447
+ number=11,
448
+ )
449
+ disable_ingestion_analysis: bool = proto.Field(
450
+ proto.BOOL,
451
+ number=12,
452
+ )
453
+
454
+
455
+ class ImportFeatureValuesResponse(proto.Message):
456
+ r"""Response message for
457
+ [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues].
458
+
459
+ Attributes:
460
+ imported_entity_count (int):
461
+ Number of entities that have been imported by
462
+ the operation.
463
+ imported_feature_value_count (int):
464
+ Number of Feature values that have been
465
+ imported by the operation.
466
+ invalid_row_count (int):
467
+ The number of rows in input source that weren't imported due
468
+ to either
469
+
470
+ - Not having any featureValues.
471
+ - Having a null entityId.
472
+ - Having a null timestamp.
473
+ - Not being parsable (applicable for CSV sources).
474
+ timestamp_outside_retention_rows_count (int):
475
+ The number rows that weren't ingested due to
476
+ having feature timestamps outside the retention
477
+ boundary.
478
+ """
479
+
480
+ imported_entity_count: int = proto.Field(
481
+ proto.INT64,
482
+ number=1,
483
+ )
484
+ imported_feature_value_count: int = proto.Field(
485
+ proto.INT64,
486
+ number=2,
487
+ )
488
+ invalid_row_count: int = proto.Field(
489
+ proto.INT64,
490
+ number=6,
491
+ )
492
+ timestamp_outside_retention_rows_count: int = proto.Field(
493
+ proto.INT64,
494
+ number=4,
495
+ )
496
+
497
+
498
+ class BatchReadFeatureValuesRequest(proto.Message):
499
+ r"""Request message for
500
+ [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues].
501
+
502
+ This message has `oneof`_ fields (mutually exclusive fields).
503
+ For each oneof, at most one member field can be set at the same time.
504
+ Setting any member of the oneof automatically clears all other
505
+ members.
506
+
507
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
508
+
509
+ Attributes:
510
+ csv_read_instances (google.cloud.aiplatform_v1.types.CsvSource):
511
+ Each read instance consists of exactly one read timestamp
512
+ and one or more entity IDs identifying entities of the
513
+ corresponding EntityTypes whose Features are requested.
514
+
515
+ Each output instance contains Feature values of requested
516
+ entities concatenated together as of the read time.
517
+
518
+ An example read instance may be
519
+ ``foo_entity_id, bar_entity_id, 2020-01-01T10:00:00.123Z``.
520
+
521
+ An example output instance may be
522
+ ``foo_entity_id, bar_entity_id, 2020-01-01T10:00:00.123Z, foo_entity_feature1_value, bar_entity_feature2_value``.
523
+
524
+ Timestamp in each read instance must be millisecond-aligned.
525
+
526
+ ``csv_read_instances`` are read instances stored in a
527
+ plain-text CSV file. The header should be:
528
+ [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
529
+
530
+ The columns can be in any order.
531
+
532
+ Values in the timestamp column must use the RFC 3339 format,
533
+ e.g. ``2012-07-30T10:43:17.123Z``.
534
+
535
+ This field is a member of `oneof`_ ``read_option``.
536
+ bigquery_read_instances (google.cloud.aiplatform_v1.types.BigQuerySource):
537
+ Similar to csv_read_instances, but from BigQuery source.
538
+
539
+ This field is a member of `oneof`_ ``read_option``.
540
+ featurestore (str):
541
+ Required. The resource name of the Featurestore from which
542
+ to query Feature values. Format:
543
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}``
544
+ destination (google.cloud.aiplatform_v1.types.FeatureValueDestination):
545
+ Required. Specifies output location and
546
+ format.
547
+ pass_through_fields (MutableSequence[google.cloud.aiplatform_v1.types.BatchReadFeatureValuesRequest.PassThroughField]):
548
+ When not empty, the specified fields in the
549
+ \*_read_instances source will be joined as-is in the output,
550
+ in addition to those fields from the Featurestore Entity.
551
+
552
+ For BigQuery source, the type of the pass-through values
553
+ will be automatically inferred. For CSV source, the
554
+ pass-through values will be passed as opaque bytes.
555
+ entity_type_specs (MutableSequence[google.cloud.aiplatform_v1.types.BatchReadFeatureValuesRequest.EntityTypeSpec]):
556
+ Required. Specifies EntityType grouping
557
+ Features to read values of and settings.
558
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
559
+ Optional. Excludes Feature values with
560
+ feature generation timestamp before this
561
+ timestamp. If not set, retrieve oldest values
562
+ kept in Feature Store. Timestamp, if present,
563
+ must not have higher than millisecond precision.
564
+ """
565
+
566
+ class PassThroughField(proto.Message):
567
+ r"""Describe pass-through fields in read_instance source.
568
+
569
+ Attributes:
570
+ field_name (str):
571
+ Required. The name of the field in the CSV header or the
572
+ name of the column in BigQuery table. The naming restriction
573
+ is the same as
574
+ [Feature.name][google.cloud.aiplatform.v1.Feature.name].
575
+ """
576
+
577
+ field_name: str = proto.Field(
578
+ proto.STRING,
579
+ number=1,
580
+ )
581
+
582
+ class EntityTypeSpec(proto.Message):
583
+ r"""Selects Features of an EntityType to read values of and
584
+ specifies read settings.
585
+
586
+ Attributes:
587
+ entity_type_id (str):
588
+ Required. ID of the EntityType to select Features. The
589
+ EntityType id is the
590
+ [entity_type_id][google.cloud.aiplatform.v1.CreateEntityTypeRequest.entity_type_id]
591
+ specified during EntityType creation.
592
+ feature_selector (google.cloud.aiplatform_v1.types.FeatureSelector):
593
+ Required. Selectors choosing which Feature
594
+ values to read from the EntityType.
595
+ settings (MutableSequence[google.cloud.aiplatform_v1.types.DestinationFeatureSetting]):
596
+ Per-Feature settings for the batch read.
597
+ """
598
+
599
+ entity_type_id: str = proto.Field(
600
+ proto.STRING,
601
+ number=1,
602
+ )
603
+ feature_selector: gca_feature_selector.FeatureSelector = proto.Field(
604
+ proto.MESSAGE,
605
+ number=2,
606
+ message=gca_feature_selector.FeatureSelector,
607
+ )
608
+ settings: MutableSequence["DestinationFeatureSetting"] = proto.RepeatedField(
609
+ proto.MESSAGE,
610
+ number=3,
611
+ message="DestinationFeatureSetting",
612
+ )
613
+
614
+ csv_read_instances: io.CsvSource = proto.Field(
615
+ proto.MESSAGE,
616
+ number=3,
617
+ oneof="read_option",
618
+ message=io.CsvSource,
619
+ )
620
+ bigquery_read_instances: io.BigQuerySource = proto.Field(
621
+ proto.MESSAGE,
622
+ number=5,
623
+ oneof="read_option",
624
+ message=io.BigQuerySource,
625
+ )
626
+ featurestore: str = proto.Field(
627
+ proto.STRING,
628
+ number=1,
629
+ )
630
+ destination: "FeatureValueDestination" = proto.Field(
631
+ proto.MESSAGE,
632
+ number=4,
633
+ message="FeatureValueDestination",
634
+ )
635
+ pass_through_fields: MutableSequence[PassThroughField] = proto.RepeatedField(
636
+ proto.MESSAGE,
637
+ number=8,
638
+ message=PassThroughField,
639
+ )
640
+ entity_type_specs: MutableSequence[EntityTypeSpec] = proto.RepeatedField(
641
+ proto.MESSAGE,
642
+ number=7,
643
+ message=EntityTypeSpec,
644
+ )
645
+ start_time: timestamp_pb2.Timestamp = proto.Field(
646
+ proto.MESSAGE,
647
+ number=11,
648
+ message=timestamp_pb2.Timestamp,
649
+ )
650
+
651
+
652
+ class ExportFeatureValuesRequest(proto.Message):
653
+ r"""Request message for
654
+ [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValues].
655
+
656
+ This message has `oneof`_ fields (mutually exclusive fields).
657
+ For each oneof, at most one member field can be set at the same time.
658
+ Setting any member of the oneof automatically clears all other
659
+ members.
660
+
661
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
662
+
663
+ Attributes:
664
+ snapshot_export (google.cloud.aiplatform_v1.types.ExportFeatureValuesRequest.SnapshotExport):
665
+ Exports the latest Feature values of all
666
+ entities of the EntityType within a time range.
667
+
668
+ This field is a member of `oneof`_ ``mode``.
669
+ full_export (google.cloud.aiplatform_v1.types.ExportFeatureValuesRequest.FullExport):
670
+ Exports all historical values of all entities
671
+ of the EntityType within a time range
672
+
673
+ This field is a member of `oneof`_ ``mode``.
674
+ entity_type (str):
675
+ Required. The resource name of the EntityType from which to
676
+ export Feature values. Format:
677
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}``
678
+ destination (google.cloud.aiplatform_v1.types.FeatureValueDestination):
679
+ Required. Specifies destination location and
680
+ format.
681
+ feature_selector (google.cloud.aiplatform_v1.types.FeatureSelector):
682
+ Required. Selects Features to export values
683
+ of.
684
+ settings (MutableSequence[google.cloud.aiplatform_v1.types.DestinationFeatureSetting]):
685
+ Per-Feature export settings.
686
+ """
687
+
688
+ class SnapshotExport(proto.Message):
689
+ r"""Describes exporting the latest Feature values of all entities of the
690
+ EntityType between [start_time, snapshot_time].
691
+
692
+ Attributes:
693
+ snapshot_time (google.protobuf.timestamp_pb2.Timestamp):
694
+ Exports Feature values as of this timestamp.
695
+ If not set, retrieve values as of now.
696
+ Timestamp, if present, must not have higher than
697
+ millisecond precision.
698
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
699
+ Excludes Feature values with feature
700
+ generation timestamp before this timestamp. If
701
+ not set, retrieve oldest values kept in Feature
702
+ Store. Timestamp, if present, must not have
703
+ higher than millisecond precision.
704
+ """
705
+
706
+ snapshot_time: timestamp_pb2.Timestamp = proto.Field(
707
+ proto.MESSAGE,
708
+ number=1,
709
+ message=timestamp_pb2.Timestamp,
710
+ )
711
+ start_time: timestamp_pb2.Timestamp = proto.Field(
712
+ proto.MESSAGE,
713
+ number=2,
714
+ message=timestamp_pb2.Timestamp,
715
+ )
716
+
717
+ class FullExport(proto.Message):
718
+ r"""Describes exporting all historical Feature values of all entities of
719
+ the EntityType between [start_time, end_time].
720
+
721
+ Attributes:
722
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
723
+ Excludes Feature values with feature
724
+ generation timestamp before this timestamp. If
725
+ not set, retrieve oldest values kept in Feature
726
+ Store. Timestamp, if present, must not have
727
+ higher than millisecond precision.
728
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
729
+ Exports Feature values as of this timestamp.
730
+ If not set, retrieve values as of now.
731
+ Timestamp, if present, must not have higher than
732
+ millisecond precision.
733
+ """
734
+
735
+ start_time: timestamp_pb2.Timestamp = proto.Field(
736
+ proto.MESSAGE,
737
+ number=2,
738
+ message=timestamp_pb2.Timestamp,
739
+ )
740
+ end_time: timestamp_pb2.Timestamp = proto.Field(
741
+ proto.MESSAGE,
742
+ number=1,
743
+ message=timestamp_pb2.Timestamp,
744
+ )
745
+
746
+ snapshot_export: SnapshotExport = proto.Field(
747
+ proto.MESSAGE,
748
+ number=3,
749
+ oneof="mode",
750
+ message=SnapshotExport,
751
+ )
752
+ full_export: FullExport = proto.Field(
753
+ proto.MESSAGE,
754
+ number=7,
755
+ oneof="mode",
756
+ message=FullExport,
757
+ )
758
+ entity_type: str = proto.Field(
759
+ proto.STRING,
760
+ number=1,
761
+ )
762
+ destination: "FeatureValueDestination" = proto.Field(
763
+ proto.MESSAGE,
764
+ number=4,
765
+ message="FeatureValueDestination",
766
+ )
767
+ feature_selector: gca_feature_selector.FeatureSelector = proto.Field(
768
+ proto.MESSAGE,
769
+ number=5,
770
+ message=gca_feature_selector.FeatureSelector,
771
+ )
772
+ settings: MutableSequence["DestinationFeatureSetting"] = proto.RepeatedField(
773
+ proto.MESSAGE,
774
+ number=6,
775
+ message="DestinationFeatureSetting",
776
+ )
777
+
778
+
779
+ class DestinationFeatureSetting(proto.Message):
780
+ r"""
781
+
782
+ Attributes:
783
+ feature_id (str):
784
+ Required. The ID of the Feature to apply the
785
+ setting to.
786
+ destination_field (str):
787
+ Specify the field name in the export
788
+ destination. If not specified, Feature ID is
789
+ used.
790
+ """
791
+
792
+ feature_id: str = proto.Field(
793
+ proto.STRING,
794
+ number=1,
795
+ )
796
+ destination_field: str = proto.Field(
797
+ proto.STRING,
798
+ number=2,
799
+ )
800
+
801
+
802
+ class FeatureValueDestination(proto.Message):
803
+ r"""A destination location for Feature values and format.
804
+
805
+ This message has `oneof`_ fields (mutually exclusive fields).
806
+ For each oneof, at most one member field can be set at the same time.
807
+ Setting any member of the oneof automatically clears all other
808
+ members.
809
+
810
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
811
+
812
+ Attributes:
813
+ bigquery_destination (google.cloud.aiplatform_v1.types.BigQueryDestination):
814
+ Output in BigQuery format.
815
+ [BigQueryDestination.output_uri][google.cloud.aiplatform.v1.BigQueryDestination.output_uri]
816
+ in
817
+ [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1.FeatureValueDestination.bigquery_destination]
818
+ must refer to a table.
819
+
820
+ This field is a member of `oneof`_ ``destination``.
821
+ tfrecord_destination (google.cloud.aiplatform_v1.types.TFRecordDestination):
822
+ Output in TFRecord format.
823
+
824
+ Below are the mapping from Feature value type in
825
+ Featurestore to Feature value type in TFRecord:
826
+
827
+ ::
828
+
829
+ Value type in Featurestore | Value type in TFRecord
830
+ DOUBLE, DOUBLE_ARRAY | FLOAT_LIST
831
+ INT64, INT64_ARRAY | INT64_LIST
832
+ STRING, STRING_ARRAY, BYTES | BYTES_LIST
833
+ true -> byte_string("true"), false -> byte_string("false")
834
+ BOOL, BOOL_ARRAY (true, false) | BYTES_LIST
835
+
836
+ This field is a member of `oneof`_ ``destination``.
837
+ csv_destination (google.cloud.aiplatform_v1.types.CsvDestination):
838
+ Output in CSV format. Array Feature value
839
+ types are not allowed in CSV format.
840
+
841
+ This field is a member of `oneof`_ ``destination``.
842
+ """
843
+
844
+ bigquery_destination: io.BigQueryDestination = proto.Field(
845
+ proto.MESSAGE,
846
+ number=1,
847
+ oneof="destination",
848
+ message=io.BigQueryDestination,
849
+ )
850
+ tfrecord_destination: io.TFRecordDestination = proto.Field(
851
+ proto.MESSAGE,
852
+ number=2,
853
+ oneof="destination",
854
+ message=io.TFRecordDestination,
855
+ )
856
+ csv_destination: io.CsvDestination = proto.Field(
857
+ proto.MESSAGE,
858
+ number=3,
859
+ oneof="destination",
860
+ message=io.CsvDestination,
861
+ )
862
+
863
+
864
+ class ExportFeatureValuesResponse(proto.Message):
865
+ r"""Response message for
866
+ [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValues].
867
+
868
+ """
869
+
870
+
871
+ class BatchReadFeatureValuesResponse(proto.Message):
872
+ r"""Response message for
873
+ [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues].
874
+
875
+ """
876
+
877
+
878
+ class CreateEntityTypeRequest(proto.Message):
879
+ r"""Request message for
880
+ [FeaturestoreService.CreateEntityType][google.cloud.aiplatform.v1.FeaturestoreService.CreateEntityType].
881
+
882
+ Attributes:
883
+ parent (str):
884
+ Required. The resource name of the Featurestore to create
885
+ EntityTypes. Format:
886
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}``
887
+ entity_type (google.cloud.aiplatform_v1.types.EntityType):
888
+ The EntityType to create.
889
+ entity_type_id (str):
890
+ Required. The ID to use for the EntityType, which will
891
+ become the final component of the EntityType's resource
892
+ name.
893
+
894
+ This value may be up to 60 characters, and valid characters
895
+ are ``[a-z0-9_]``. The first character cannot be a number.
896
+
897
+ The value must be unique within a featurestore.
898
+ """
899
+
900
+ parent: str = proto.Field(
901
+ proto.STRING,
902
+ number=1,
903
+ )
904
+ entity_type: gca_entity_type.EntityType = proto.Field(
905
+ proto.MESSAGE,
906
+ number=2,
907
+ message=gca_entity_type.EntityType,
908
+ )
909
+ entity_type_id: str = proto.Field(
910
+ proto.STRING,
911
+ number=3,
912
+ )
913
+
914
+
915
+ class GetEntityTypeRequest(proto.Message):
916
+ r"""Request message for
917
+ [FeaturestoreService.GetEntityType][google.cloud.aiplatform.v1.FeaturestoreService.GetEntityType].
918
+
919
+ Attributes:
920
+ name (str):
921
+ Required. The name of the EntityType resource. Format:
922
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}``
923
+ """
924
+
925
+ name: str = proto.Field(
926
+ proto.STRING,
927
+ number=1,
928
+ )
929
+
930
+
931
+ class ListEntityTypesRequest(proto.Message):
932
+ r"""Request message for
933
+ [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes].
934
+
935
+ Attributes:
936
+ parent (str):
937
+ Required. The resource name of the Featurestore to list
938
+ EntityTypes. Format:
939
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}``
940
+ filter (str):
941
+ Lists the EntityTypes that match the filter expression. The
942
+ following filters are supported:
943
+
944
+ - ``create_time``: Supports ``=``, ``!=``, ``<``, ``>``,
945
+ ``>=``, and ``<=`` comparisons. Values must be in RFC 3339
946
+ format.
947
+ - ``update_time``: Supports ``=``, ``!=``, ``<``, ``>``,
948
+ ``>=``, and ``<=`` comparisons. Values must be in RFC 3339
949
+ format.
950
+ - ``labels``: Supports key-value equality as well as key
951
+ presence.
952
+
953
+ Examples:
954
+
955
+ - ``create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"``
956
+ --> EntityTypes created or updated after
957
+ 2020-01-31T15:30:00.000000Z.
958
+ - ``labels.active = yes AND labels.env = prod`` -->
959
+ EntityTypes having both (active: yes) and (env: prod)
960
+ labels.
961
+ - ``labels.env: *`` --> Any EntityType which has a label
962
+ with 'env' as the key.
963
+ page_size (int):
964
+ The maximum number of EntityTypes to return.
965
+ The service may return fewer than this value. If
966
+ unspecified, at most 1000 EntityTypes will be
967
+ returned. The maximum value is 1000; any value
968
+ greater than 1000 will be coerced to 1000.
969
+ page_token (str):
970
+ A page token, received from a previous
971
+ [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes]
972
+ call. Provide this to retrieve the subsequent page.
973
+
974
+ When paginating, all other parameters provided to
975
+ [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes]
976
+ must match the call that provided the page token.
977
+ order_by (str):
978
+ A comma-separated list of fields to order by, sorted in
979
+ ascending order. Use "desc" after a field name for
980
+ descending.
981
+
982
+ Supported fields:
983
+
984
+ - ``entity_type_id``
985
+ - ``create_time``
986
+ - ``update_time``
987
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
988
+ Mask specifying which fields to read.
989
+ """
990
+
991
+ parent: str = proto.Field(
992
+ proto.STRING,
993
+ number=1,
994
+ )
995
+ filter: str = proto.Field(
996
+ proto.STRING,
997
+ number=2,
998
+ )
999
+ page_size: int = proto.Field(
1000
+ proto.INT32,
1001
+ number=3,
1002
+ )
1003
+ page_token: str = proto.Field(
1004
+ proto.STRING,
1005
+ number=4,
1006
+ )
1007
+ order_by: str = proto.Field(
1008
+ proto.STRING,
1009
+ number=5,
1010
+ )
1011
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
1012
+ proto.MESSAGE,
1013
+ number=6,
1014
+ message=field_mask_pb2.FieldMask,
1015
+ )
1016
+
1017
+
1018
+ class ListEntityTypesResponse(proto.Message):
1019
+ r"""Response message for
1020
+ [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes].
1021
+
1022
+ Attributes:
1023
+ entity_types (MutableSequence[google.cloud.aiplatform_v1.types.EntityType]):
1024
+ The EntityTypes matching the request.
1025
+ next_page_token (str):
1026
+ A token, which can be sent as
1027
+ [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1.ListEntityTypesRequest.page_token]
1028
+ to retrieve the next page. If this field is omitted, there
1029
+ are no subsequent pages.
1030
+ """
1031
+
1032
+ @property
1033
+ def raw_page(self):
1034
+ return self
1035
+
1036
+ entity_types: MutableSequence[gca_entity_type.EntityType] = proto.RepeatedField(
1037
+ proto.MESSAGE,
1038
+ number=1,
1039
+ message=gca_entity_type.EntityType,
1040
+ )
1041
+ next_page_token: str = proto.Field(
1042
+ proto.STRING,
1043
+ number=2,
1044
+ )
1045
+
1046
+
1047
+ class UpdateEntityTypeRequest(proto.Message):
1048
+ r"""Request message for
1049
+ [FeaturestoreService.UpdateEntityType][google.cloud.aiplatform.v1.FeaturestoreService.UpdateEntityType].
1050
+
1051
+ Attributes:
1052
+ entity_type (google.cloud.aiplatform_v1.types.EntityType):
1053
+ Required. The EntityType's ``name`` field is used to
1054
+ identify the EntityType to be updated. Format:
1055
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}``
1056
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
1057
+ Field mask is used to specify the fields to be overwritten
1058
+ in the EntityType resource by the update. The fields
1059
+ specified in the update_mask are relative to the resource,
1060
+ not the full request. A field will be overwritten if it is
1061
+ in the mask. If the user does not provide a mask then only
1062
+ the non-empty fields present in the request will be
1063
+ overwritten. Set the update_mask to ``*`` to override all
1064
+ fields.
1065
+
1066
+ Updatable fields:
1067
+
1068
+ - ``description``
1069
+ - ``labels``
1070
+ - ``monitoring_config.snapshot_analysis.disabled``
1071
+ - ``monitoring_config.snapshot_analysis.monitoring_interval_days``
1072
+ - ``monitoring_config.snapshot_analysis.staleness_days``
1073
+ - ``monitoring_config.import_features_analysis.state``
1074
+ - ``monitoring_config.import_features_analysis.anomaly_detection_baseline``
1075
+ - ``monitoring_config.numerical_threshold_config.value``
1076
+ - ``monitoring_config.categorical_threshold_config.value``
1077
+ - ``offline_storage_ttl_days``
1078
+ """
1079
+
1080
+ entity_type: gca_entity_type.EntityType = proto.Field(
1081
+ proto.MESSAGE,
1082
+ number=1,
1083
+ message=gca_entity_type.EntityType,
1084
+ )
1085
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
1086
+ proto.MESSAGE,
1087
+ number=2,
1088
+ message=field_mask_pb2.FieldMask,
1089
+ )
1090
+
1091
+
1092
+ class DeleteEntityTypeRequest(proto.Message):
1093
+ r"""Request message for
1094
+ [FeaturestoreService.DeleteEntityType][google.cloud.aiplatform.v1.FeaturestoreService.DeleteEntityType].
1095
+
1096
+ Attributes:
1097
+ name (str):
1098
+ Required. The name of the EntityType to be deleted. Format:
1099
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}``
1100
+ force (bool):
1101
+ If set to true, any Features for this
1102
+ EntityType will also be deleted. (Otherwise, the
1103
+ request will only work if the EntityType has no
1104
+ Features.)
1105
+ """
1106
+
1107
+ name: str = proto.Field(
1108
+ proto.STRING,
1109
+ number=1,
1110
+ )
1111
+ force: bool = proto.Field(
1112
+ proto.BOOL,
1113
+ number=2,
1114
+ )
1115
+
1116
+
1117
+ class CreateFeatureRequest(proto.Message):
1118
+ r"""Request message for
1119
+ [FeaturestoreService.CreateFeature][google.cloud.aiplatform.v1.FeaturestoreService.CreateFeature].
1120
+ Request message for
1121
+ [FeatureRegistryService.CreateFeature][google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeature].
1122
+
1123
+ Attributes:
1124
+ parent (str):
1125
+ Required. The resource name of the EntityType or
1126
+ FeatureGroup to create a Feature. Format for entity_type as
1127
+ parent:
1128
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}``
1129
+ Format for feature_group as parent:
1130
+ ``projects/{project}/locations/{location}/featureGroups/{feature_group}``
1131
+ feature (google.cloud.aiplatform_v1.types.Feature):
1132
+ Required. The Feature to create.
1133
+ feature_id (str):
1134
+ Required. The ID to use for the Feature, which will become
1135
+ the final component of the Feature's resource name.
1136
+
1137
+ This value may be up to 128 characters, and valid characters
1138
+ are ``[a-z0-9_]``. The first character cannot be a number.
1139
+
1140
+ The value must be unique within an EntityType/FeatureGroup.
1141
+ """
1142
+
1143
+ parent: str = proto.Field(
1144
+ proto.STRING,
1145
+ number=1,
1146
+ )
1147
+ feature: gca_feature.Feature = proto.Field(
1148
+ proto.MESSAGE,
1149
+ number=2,
1150
+ message=gca_feature.Feature,
1151
+ )
1152
+ feature_id: str = proto.Field(
1153
+ proto.STRING,
1154
+ number=3,
1155
+ )
1156
+
1157
+
1158
+ class BatchCreateFeaturesRequest(proto.Message):
1159
+ r"""Request message for
1160
+ [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeatures].
1161
+ Request message for
1162
+ [FeatureRegistryService.BatchCreateFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.BatchCreateFeatures].
1163
+
1164
+ Attributes:
1165
+ parent (str):
1166
+ Required. The resource name of the EntityType/FeatureGroup
1167
+ to create the batch of Features under. Format:
1168
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}``
1169
+ ``projects/{project}/locations/{location}/featureGroups/{feature_group}``
1170
+ requests (MutableSequence[google.cloud.aiplatform_v1.types.CreateFeatureRequest]):
1171
+ Required. The request message specifying the Features to
1172
+ create. All Features must be created under the same parent
1173
+ EntityType / FeatureGroup. The ``parent`` field in each
1174
+ child request message can be omitted. If ``parent`` is set
1175
+ in a child request, then the value must match the ``parent``
1176
+ value in this request message.
1177
+ """
1178
+
1179
+ parent: str = proto.Field(
1180
+ proto.STRING,
1181
+ number=1,
1182
+ )
1183
+ requests: MutableSequence["CreateFeatureRequest"] = proto.RepeatedField(
1184
+ proto.MESSAGE,
1185
+ number=2,
1186
+ message="CreateFeatureRequest",
1187
+ )
1188
+
1189
+
1190
+ class BatchCreateFeaturesResponse(proto.Message):
1191
+ r"""Response message for
1192
+ [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeatures].
1193
+
1194
+ Attributes:
1195
+ features (MutableSequence[google.cloud.aiplatform_v1.types.Feature]):
1196
+ The Features created.
1197
+ """
1198
+
1199
+ features: MutableSequence[gca_feature.Feature] = proto.RepeatedField(
1200
+ proto.MESSAGE,
1201
+ number=1,
1202
+ message=gca_feature.Feature,
1203
+ )
1204
+
1205
+
1206
+ class GetFeatureRequest(proto.Message):
1207
+ r"""Request message for
1208
+ [FeaturestoreService.GetFeature][google.cloud.aiplatform.v1.FeaturestoreService.GetFeature].
1209
+ Request message for
1210
+ [FeatureRegistryService.GetFeature][google.cloud.aiplatform.v1.FeatureRegistryService.GetFeature].
1211
+
1212
+ Attributes:
1213
+ name (str):
1214
+ Required. The name of the Feature resource. Format for
1215
+ entity_type as parent:
1216
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}``
1217
+ Format for feature_group as parent:
1218
+ ``projects/{project}/locations/{location}/featureGroups/{feature_group}``
1219
+ """
1220
+
1221
+ name: str = proto.Field(
1222
+ proto.STRING,
1223
+ number=1,
1224
+ )
1225
+
1226
+
1227
+ class ListFeaturesRequest(proto.Message):
1228
+ r"""Request message for
1229
+ [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures].
1230
+ Request message for
1231
+ [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures].
1232
+
1233
+ Attributes:
1234
+ parent (str):
1235
+ Required. The resource name of the Location to list
1236
+ Features. Format for entity_type as parent:
1237
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}``
1238
+ Format for feature_group as parent:
1239
+ ``projects/{project}/locations/{location}/featureGroups/{feature_group}``
1240
+ filter (str):
1241
+ Lists the Features that match the filter expression. The
1242
+ following filters are supported:
1243
+
1244
+ - ``value_type``: Supports = and != comparisons.
1245
+ - ``create_time``: Supports =, !=, <, >, >=, and <=
1246
+ comparisons. Values must be in RFC 3339 format.
1247
+ - ``update_time``: Supports =, !=, <, >, >=, and <=
1248
+ comparisons. Values must be in RFC 3339 format.
1249
+ - ``labels``: Supports key-value equality as well as key
1250
+ presence.
1251
+
1252
+ Examples:
1253
+
1254
+ - ``value_type = DOUBLE`` --> Features whose type is DOUBLE.
1255
+ - ``create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"``
1256
+ --> EntityTypes created or updated after
1257
+ 2020-01-31T15:30:00.000000Z.
1258
+ - ``labels.active = yes AND labels.env = prod`` --> Features
1259
+ having both (active: yes) and (env: prod) labels.
1260
+ - ``labels.env: *`` --> Any Feature which has a label with
1261
+ 'env' as the key.
1262
+ page_size (int):
1263
+ The maximum number of Features to return. The
1264
+ service may return fewer than this value. If
1265
+ unspecified, at most 1000 Features will be
1266
+ returned. The maximum value is 1000; any value
1267
+ greater than 1000 will be coerced to 1000.
1268
+ page_token (str):
1269
+ A page token, received from a previous
1270
+ [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures]
1271
+ call or
1272
+ [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures]
1273
+ call. Provide this to retrieve the subsequent page.
1274
+
1275
+ When paginating, all other parameters provided to
1276
+ [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures]
1277
+ or
1278
+ [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures]
1279
+ must match the call that provided the page token.
1280
+ order_by (str):
1281
+ A comma-separated list of fields to order by, sorted in
1282
+ ascending order. Use "desc" after a field name for
1283
+ descending. Supported fields:
1284
+
1285
+ - ``feature_id``
1286
+ - ``value_type`` (Not supported for FeatureRegistry Feature)
1287
+ - ``create_time``
1288
+ - ``update_time``
1289
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
1290
+ Mask specifying which fields to read.
1291
+ latest_stats_count (int):
1292
+ Only applicable for Vertex AI Feature Store (Legacy). If
1293
+ set, return the most recent
1294
+ [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count]
1295
+ of stats for each Feature in response. Valid value is [0,
1296
+ 10]. If number of stats exists <
1297
+ [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count],
1298
+ return all existing stats.
1299
+ """
1300
+
1301
+ parent: str = proto.Field(
1302
+ proto.STRING,
1303
+ number=1,
1304
+ )
1305
+ filter: str = proto.Field(
1306
+ proto.STRING,
1307
+ number=2,
1308
+ )
1309
+ page_size: int = proto.Field(
1310
+ proto.INT32,
1311
+ number=3,
1312
+ )
1313
+ page_token: str = proto.Field(
1314
+ proto.STRING,
1315
+ number=4,
1316
+ )
1317
+ order_by: str = proto.Field(
1318
+ proto.STRING,
1319
+ number=5,
1320
+ )
1321
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
1322
+ proto.MESSAGE,
1323
+ number=6,
1324
+ message=field_mask_pb2.FieldMask,
1325
+ )
1326
+ latest_stats_count: int = proto.Field(
1327
+ proto.INT32,
1328
+ number=7,
1329
+ )
1330
+
1331
+
1332
+ class ListFeaturesResponse(proto.Message):
1333
+ r"""Response message for
1334
+ [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures].
1335
+ Response message for
1336
+ [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures].
1337
+
1338
+ Attributes:
1339
+ features (MutableSequence[google.cloud.aiplatform_v1.types.Feature]):
1340
+ The Features matching the request.
1341
+ next_page_token (str):
1342
+ A token, which can be sent as
1343
+ [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1.ListFeaturesRequest.page_token]
1344
+ to retrieve the next page. If this field is omitted, there
1345
+ are no subsequent pages.
1346
+ """
1347
+
1348
+ @property
1349
+ def raw_page(self):
1350
+ return self
1351
+
1352
+ features: MutableSequence[gca_feature.Feature] = proto.RepeatedField(
1353
+ proto.MESSAGE,
1354
+ number=1,
1355
+ message=gca_feature.Feature,
1356
+ )
1357
+ next_page_token: str = proto.Field(
1358
+ proto.STRING,
1359
+ number=2,
1360
+ )
1361
+
1362
+
1363
+ class SearchFeaturesRequest(proto.Message):
1364
+ r"""Request message for
1365
+ [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures].
1366
+
1367
+ Attributes:
1368
+ location (str):
1369
+ Required. The resource name of the Location to search
1370
+ Features. Format:
1371
+ ``projects/{project}/locations/{location}``
1372
+ query (str):
1373
+ Query string that is a conjunction of field-restricted
1374
+ queries and/or field-restricted filters. Field-restricted
1375
+ queries and filters can be combined using ``AND`` to form a
1376
+ conjunction.
1377
+
1378
+ A field query is in the form FIELD:QUERY. This implicitly
1379
+ checks if QUERY exists as a substring within Feature's
1380
+ FIELD. The QUERY and the FIELD are converted to a sequence
1381
+ of words (i.e. tokens) for comparison. This is done by:
1382
+
1383
+ - Removing leading/trailing whitespace and tokenizing the
1384
+ search value. Characters that are not one of alphanumeric
1385
+ ``[a-zA-Z0-9]``, underscore ``_``, or asterisk ``*`` are
1386
+ treated as delimiters for tokens. ``*`` is treated as a
1387
+ wildcard that matches characters within a token.
1388
+ - Ignoring case.
1389
+ - Prepending an asterisk to the first and appending an
1390
+ asterisk to the last token in QUERY.
1391
+
1392
+ A QUERY must be either a singular token or a phrase. A
1393
+ phrase is one or multiple words enclosed in double quotation
1394
+ marks ("). With phrases, the order of the words is
1395
+ important. Words in the phrase must be matching in order and
1396
+ consecutively.
1397
+
1398
+ Supported FIELDs for field-restricted queries:
1399
+
1400
+ - ``feature_id``
1401
+ - ``description``
1402
+ - ``entity_type_id``
1403
+
1404
+ Examples:
1405
+
1406
+ - ``feature_id: foo`` --> Matches a Feature with ID
1407
+ containing the substring ``foo`` (eg. ``foo``,
1408
+ ``foofeature``, ``barfoo``).
1409
+ - ``feature_id: foo*feature`` --> Matches a Feature with ID
1410
+ containing the substring ``foo*feature`` (eg.
1411
+ ``foobarfeature``).
1412
+ - ``feature_id: foo AND description: bar`` --> Matches a
1413
+ Feature with ID containing the substring ``foo`` and
1414
+ description containing the substring ``bar``.
1415
+
1416
+ Besides field queries, the following exact-match filters are
1417
+ supported. The exact-match filters do not support wildcards.
1418
+ Unlike field-restricted queries, exact-match filters are
1419
+ case-sensitive.
1420
+
1421
+ - ``feature_id``: Supports = comparisons.
1422
+ - ``description``: Supports = comparisons. Multi-token
1423
+ filters should be enclosed in quotes.
1424
+ - ``entity_type_id``: Supports = comparisons.
1425
+ - ``value_type``: Supports = and != comparisons.
1426
+ - ``labels``: Supports key-value equality as well as key
1427
+ presence.
1428
+ - ``featurestore_id``: Supports = comparisons.
1429
+
1430
+ Examples:
1431
+
1432
+ - ``description = "foo bar"`` --> Any Feature with
1433
+ description exactly equal to ``foo bar``
1434
+ - ``value_type = DOUBLE`` --> Features whose type is DOUBLE.
1435
+ - ``labels.active = yes AND labels.env = prod`` --> Features
1436
+ having both (active: yes) and (env: prod) labels.
1437
+ - ``labels.env: *`` --> Any Feature which has a label with
1438
+ ``env`` as the key.
1439
+ page_size (int):
1440
+ The maximum number of Features to return. The
1441
+ service may return fewer than this value. If
1442
+ unspecified, at most 100 Features will be
1443
+ returned. The maximum value is 100; any value
1444
+ greater than 100 will be coerced to 100.
1445
+ page_token (str):
1446
+ A page token, received from a previous
1447
+ [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures]
1448
+ call. Provide this to retrieve the subsequent page.
1449
+
1450
+ When paginating, all other parameters provided to
1451
+ [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures],
1452
+ except ``page_size``, must match the call that provided the
1453
+ page token.
1454
+ """
1455
+
1456
+ location: str = proto.Field(
1457
+ proto.STRING,
1458
+ number=1,
1459
+ )
1460
+ query: str = proto.Field(
1461
+ proto.STRING,
1462
+ number=3,
1463
+ )
1464
+ page_size: int = proto.Field(
1465
+ proto.INT32,
1466
+ number=4,
1467
+ )
1468
+ page_token: str = proto.Field(
1469
+ proto.STRING,
1470
+ number=5,
1471
+ )
1472
+
1473
+
1474
+ class SearchFeaturesResponse(proto.Message):
1475
+ r"""Response message for
1476
+ [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures].
1477
+
1478
+ Attributes:
1479
+ features (MutableSequence[google.cloud.aiplatform_v1.types.Feature]):
1480
+ The Features matching the request.
1481
+
1482
+ Fields returned:
1483
+
1484
+ - ``name``
1485
+ - ``description``
1486
+ - ``labels``
1487
+ - ``create_time``
1488
+ - ``update_time``
1489
+ next_page_token (str):
1490
+ A token, which can be sent as
1491
+ [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1.SearchFeaturesRequest.page_token]
1492
+ to retrieve the next page. If this field is omitted, there
1493
+ are no subsequent pages.
1494
+ """
1495
+
1496
+ @property
1497
+ def raw_page(self):
1498
+ return self
1499
+
1500
+ features: MutableSequence[gca_feature.Feature] = proto.RepeatedField(
1501
+ proto.MESSAGE,
1502
+ number=1,
1503
+ message=gca_feature.Feature,
1504
+ )
1505
+ next_page_token: str = proto.Field(
1506
+ proto.STRING,
1507
+ number=2,
1508
+ )
1509
+
1510
+
1511
+ class UpdateFeatureRequest(proto.Message):
1512
+ r"""Request message for
1513
+ [FeaturestoreService.UpdateFeature][google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeature].
1514
+ Request message for
1515
+ [FeatureRegistryService.UpdateFeature][google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeature].
1516
+
1517
+ Attributes:
1518
+ feature (google.cloud.aiplatform_v1.types.Feature):
1519
+ Required. The Feature's ``name`` field is used to identify
1520
+ the Feature to be updated. Format:
1521
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}``
1522
+ ``projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}``
1523
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
1524
+ Field mask is used to specify the fields to be overwritten
1525
+ in the Features resource by the update. The fields specified
1526
+ in the update_mask are relative to the resource, not the
1527
+ full request. A field will be overwritten if it is in the
1528
+ mask. If the user does not provide a mask then only the
1529
+ non-empty fields present in the request will be overwritten.
1530
+ Set the update_mask to ``*`` to override all fields.
1531
+
1532
+ Updatable fields:
1533
+
1534
+ - ``description``
1535
+ - ``labels``
1536
+ - ``disable_monitoring`` (Not supported for
1537
+ FeatureRegistryService Feature)
1538
+ - ``point_of_contact`` (Not supported for
1539
+ FeaturestoreService FeatureStore)
1540
+ """
1541
+
1542
+ feature: gca_feature.Feature = proto.Field(
1543
+ proto.MESSAGE,
1544
+ number=1,
1545
+ message=gca_feature.Feature,
1546
+ )
1547
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
1548
+ proto.MESSAGE,
1549
+ number=2,
1550
+ message=field_mask_pb2.FieldMask,
1551
+ )
1552
+
1553
+
1554
+ class DeleteFeatureRequest(proto.Message):
1555
+ r"""Request message for
1556
+ [FeaturestoreService.DeleteFeature][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeature].
1557
+ Request message for
1558
+ [FeatureRegistryService.DeleteFeature][google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeature].
1559
+
1560
+ Attributes:
1561
+ name (str):
1562
+ Required. The name of the Features to be deleted. Format:
1563
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}``
1564
+ ``projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}``
1565
+ """
1566
+
1567
+ name: str = proto.Field(
1568
+ proto.STRING,
1569
+ number=1,
1570
+ )
1571
+
1572
+
1573
+ class CreateFeaturestoreOperationMetadata(proto.Message):
1574
+ r"""Details of operations that perform create Featurestore.
1575
+
1576
+ Attributes:
1577
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1578
+ Operation metadata for Featurestore.
1579
+ """
1580
+
1581
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1582
+ proto.MESSAGE,
1583
+ number=1,
1584
+ message=operation.GenericOperationMetadata,
1585
+ )
1586
+
1587
+
1588
+ class UpdateFeaturestoreOperationMetadata(proto.Message):
1589
+ r"""Details of operations that perform update Featurestore.
1590
+
1591
+ Attributes:
1592
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1593
+ Operation metadata for Featurestore.
1594
+ """
1595
+
1596
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1597
+ proto.MESSAGE,
1598
+ number=1,
1599
+ message=operation.GenericOperationMetadata,
1600
+ )
1601
+
1602
+
1603
+ class ImportFeatureValuesOperationMetadata(proto.Message):
1604
+ r"""Details of operations that perform import Feature values.
1605
+
1606
+ Attributes:
1607
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1608
+ Operation metadata for Featurestore import
1609
+ Feature values.
1610
+ imported_entity_count (int):
1611
+ Number of entities that have been imported by
1612
+ the operation.
1613
+ imported_feature_value_count (int):
1614
+ Number of Feature values that have been
1615
+ imported by the operation.
1616
+ source_uris (MutableSequence[str]):
1617
+ The source URI from where Feature values are
1618
+ imported.
1619
+ invalid_row_count (int):
1620
+ The number of rows in input source that weren't imported due
1621
+ to either
1622
+
1623
+ - Not having any featureValues.
1624
+ - Having a null entityId.
1625
+ - Having a null timestamp.
1626
+ - Not being parsable (applicable for CSV sources).
1627
+ timestamp_outside_retention_rows_count (int):
1628
+ The number rows that weren't ingested due to
1629
+ having timestamps outside the retention
1630
+ boundary.
1631
+ blocking_operation_ids (MutableSequence[int]):
1632
+ List of ImportFeatureValues operations
1633
+ running under a single EntityType that are
1634
+ blocking this operation.
1635
+ """
1636
+
1637
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1638
+ proto.MESSAGE,
1639
+ number=1,
1640
+ message=operation.GenericOperationMetadata,
1641
+ )
1642
+ imported_entity_count: int = proto.Field(
1643
+ proto.INT64,
1644
+ number=2,
1645
+ )
1646
+ imported_feature_value_count: int = proto.Field(
1647
+ proto.INT64,
1648
+ number=3,
1649
+ )
1650
+ source_uris: MutableSequence[str] = proto.RepeatedField(
1651
+ proto.STRING,
1652
+ number=4,
1653
+ )
1654
+ invalid_row_count: int = proto.Field(
1655
+ proto.INT64,
1656
+ number=6,
1657
+ )
1658
+ timestamp_outside_retention_rows_count: int = proto.Field(
1659
+ proto.INT64,
1660
+ number=7,
1661
+ )
1662
+ blocking_operation_ids: MutableSequence[int] = proto.RepeatedField(
1663
+ proto.INT64,
1664
+ number=8,
1665
+ )
1666
+
1667
+
1668
+ class ExportFeatureValuesOperationMetadata(proto.Message):
1669
+ r"""Details of operations that exports Features values.
1670
+
1671
+ Attributes:
1672
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1673
+ Operation metadata for Featurestore export
1674
+ Feature values.
1675
+ """
1676
+
1677
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1678
+ proto.MESSAGE,
1679
+ number=1,
1680
+ message=operation.GenericOperationMetadata,
1681
+ )
1682
+
1683
+
1684
+ class BatchReadFeatureValuesOperationMetadata(proto.Message):
1685
+ r"""Details of operations that batch reads Feature values.
1686
+
1687
+ Attributes:
1688
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1689
+ Operation metadata for Featurestore batch
1690
+ read Features values.
1691
+ """
1692
+
1693
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1694
+ proto.MESSAGE,
1695
+ number=1,
1696
+ message=operation.GenericOperationMetadata,
1697
+ )
1698
+
1699
+
1700
+ class DeleteFeatureValuesOperationMetadata(proto.Message):
1701
+ r"""Details of operations that delete Feature values.
1702
+
1703
+ Attributes:
1704
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1705
+ Operation metadata for Featurestore delete
1706
+ Features values.
1707
+ """
1708
+
1709
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1710
+ proto.MESSAGE,
1711
+ number=1,
1712
+ message=operation.GenericOperationMetadata,
1713
+ )
1714
+
1715
+
1716
+ class CreateEntityTypeOperationMetadata(proto.Message):
1717
+ r"""Details of operations that perform create EntityType.
1718
+
1719
+ Attributes:
1720
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1721
+ Operation metadata for EntityType.
1722
+ """
1723
+
1724
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1725
+ proto.MESSAGE,
1726
+ number=1,
1727
+ message=operation.GenericOperationMetadata,
1728
+ )
1729
+
1730
+
1731
+ class CreateFeatureOperationMetadata(proto.Message):
1732
+ r"""Details of operations that perform create Feature.
1733
+
1734
+ Attributes:
1735
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1736
+ Operation metadata for Feature.
1737
+ """
1738
+
1739
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1740
+ proto.MESSAGE,
1741
+ number=1,
1742
+ message=operation.GenericOperationMetadata,
1743
+ )
1744
+
1745
+
1746
+ class BatchCreateFeaturesOperationMetadata(proto.Message):
1747
+ r"""Details of operations that perform batch create Features.
1748
+
1749
+ Attributes:
1750
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1751
+ Operation metadata for Feature.
1752
+ """
1753
+
1754
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1755
+ proto.MESSAGE,
1756
+ number=1,
1757
+ message=operation.GenericOperationMetadata,
1758
+ )
1759
+
1760
+
1761
+ class DeleteFeatureValuesRequest(proto.Message):
1762
+ r"""Request message for
1763
+ [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValues].
1764
+
1765
+ This message has `oneof`_ fields (mutually exclusive fields).
1766
+ For each oneof, at most one member field can be set at the same time.
1767
+ Setting any member of the oneof automatically clears all other
1768
+ members.
1769
+
1770
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1771
+
1772
+ Attributes:
1773
+ select_entity (google.cloud.aiplatform_v1.types.DeleteFeatureValuesRequest.SelectEntity):
1774
+ Select feature values to be deleted by
1775
+ specifying entities.
1776
+
1777
+ This field is a member of `oneof`_ ``DeleteOption``.
1778
+ select_time_range_and_feature (google.cloud.aiplatform_v1.types.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature):
1779
+ Select feature values to be deleted by
1780
+ specifying time range and features.
1781
+
1782
+ This field is a member of `oneof`_ ``DeleteOption``.
1783
+ entity_type (str):
1784
+ Required. The resource name of the EntityType grouping the
1785
+ Features for which values are being deleted from. Format:
1786
+ ``projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}``
1787
+ """
1788
+
1789
+ class SelectEntity(proto.Message):
1790
+ r"""Message to select entity.
1791
+ If an entity id is selected, all the feature values
1792
+ corresponding to the entity id will be deleted, including the
1793
+ entityId.
1794
+
1795
+ Attributes:
1796
+ entity_id_selector (google.cloud.aiplatform_v1.types.EntityIdSelector):
1797
+ Required. Selectors choosing feature values
1798
+ of which entity id to be deleted from the
1799
+ EntityType.
1800
+ """
1801
+
1802
+ entity_id_selector: "EntityIdSelector" = proto.Field(
1803
+ proto.MESSAGE,
1804
+ number=1,
1805
+ message="EntityIdSelector",
1806
+ )
1807
+
1808
+ class SelectTimeRangeAndFeature(proto.Message):
1809
+ r"""Message to select time range and feature.
1810
+ Values of the selected feature generated within an inclusive
1811
+ time range will be deleted. Using this option permanently
1812
+ deletes the feature values from the specified feature IDs within
1813
+ the specified time range. This might include data from the
1814
+ online storage. If you want to retain any deleted historical
1815
+ data in the online storage, you must re-ingest it.
1816
+
1817
+ Attributes:
1818
+ time_range (google.type.interval_pb2.Interval):
1819
+ Required. Select feature generated within a
1820
+ half-inclusive time range. The time range is
1821
+ lower inclusive and upper exclusive.
1822
+ feature_selector (google.cloud.aiplatform_v1.types.FeatureSelector):
1823
+ Required. Selectors choosing which feature
1824
+ values to be deleted from the EntityType.
1825
+ skip_online_storage_delete (bool):
1826
+ If set, data will not be deleted from online
1827
+ storage. When time range is older than the data
1828
+ in online storage, setting this to be true will
1829
+ make the deletion have no impact on online
1830
+ serving.
1831
+ """
1832
+
1833
+ time_range: interval_pb2.Interval = proto.Field(
1834
+ proto.MESSAGE,
1835
+ number=1,
1836
+ message=interval_pb2.Interval,
1837
+ )
1838
+ feature_selector: gca_feature_selector.FeatureSelector = proto.Field(
1839
+ proto.MESSAGE,
1840
+ number=2,
1841
+ message=gca_feature_selector.FeatureSelector,
1842
+ )
1843
+ skip_online_storage_delete: bool = proto.Field(
1844
+ proto.BOOL,
1845
+ number=3,
1846
+ )
1847
+
1848
+ select_entity: SelectEntity = proto.Field(
1849
+ proto.MESSAGE,
1850
+ number=2,
1851
+ oneof="DeleteOption",
1852
+ message=SelectEntity,
1853
+ )
1854
+ select_time_range_and_feature: SelectTimeRangeAndFeature = proto.Field(
1855
+ proto.MESSAGE,
1856
+ number=3,
1857
+ oneof="DeleteOption",
1858
+ message=SelectTimeRangeAndFeature,
1859
+ )
1860
+ entity_type: str = proto.Field(
1861
+ proto.STRING,
1862
+ number=1,
1863
+ )
1864
+
1865
+
1866
+ class DeleteFeatureValuesResponse(proto.Message):
1867
+ r"""Response message for
1868
+ [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValues].
1869
+
1870
+ This message has `oneof`_ fields (mutually exclusive fields).
1871
+ For each oneof, at most one member field can be set at the same time.
1872
+ Setting any member of the oneof automatically clears all other
1873
+ members.
1874
+
1875
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1876
+
1877
+ Attributes:
1878
+ select_entity (google.cloud.aiplatform_v1.types.DeleteFeatureValuesResponse.SelectEntity):
1879
+ Response for request specifying the entities
1880
+ to delete
1881
+
1882
+ This field is a member of `oneof`_ ``response``.
1883
+ select_time_range_and_feature (google.cloud.aiplatform_v1.types.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature):
1884
+ Response for request specifying time range
1885
+ and feature
1886
+
1887
+ This field is a member of `oneof`_ ``response``.
1888
+ """
1889
+
1890
+ class SelectEntity(proto.Message):
1891
+ r"""Response message if the request uses the SelectEntity option.
1892
+
1893
+ Attributes:
1894
+ offline_storage_deleted_entity_row_count (int):
1895
+ The count of deleted entity rows in the
1896
+ offline storage. Each row corresponds to the
1897
+ combination of an entity ID and a timestamp. One
1898
+ entity ID can have multiple rows in the offline
1899
+ storage.
1900
+ online_storage_deleted_entity_count (int):
1901
+ The count of deleted entities in the online
1902
+ storage. Each entity ID corresponds to one
1903
+ entity.
1904
+ """
1905
+
1906
+ offline_storage_deleted_entity_row_count: int = proto.Field(
1907
+ proto.INT64,
1908
+ number=1,
1909
+ )
1910
+ online_storage_deleted_entity_count: int = proto.Field(
1911
+ proto.INT64,
1912
+ number=2,
1913
+ )
1914
+
1915
+ class SelectTimeRangeAndFeature(proto.Message):
1916
+ r"""Response message if the request uses the
1917
+ SelectTimeRangeAndFeature option.
1918
+
1919
+ Attributes:
1920
+ impacted_feature_count (int):
1921
+ The count of the features or columns
1922
+ impacted. This is the same as the feature count
1923
+ in the request.
1924
+ offline_storage_modified_entity_row_count (int):
1925
+ The count of modified entity rows in the
1926
+ offline storage. Each row corresponds to the
1927
+ combination of an entity ID and a timestamp. One
1928
+ entity ID can have multiple rows in the offline
1929
+ storage. Within each row, only the features
1930
+ specified in the request are deleted.
1931
+ online_storage_modified_entity_count (int):
1932
+ The count of modified entities in the online
1933
+ storage. Each entity ID corresponds to one
1934
+ entity. Within each entity, only the features
1935
+ specified in the request are deleted.
1936
+ """
1937
+
1938
+ impacted_feature_count: int = proto.Field(
1939
+ proto.INT64,
1940
+ number=1,
1941
+ )
1942
+ offline_storage_modified_entity_row_count: int = proto.Field(
1943
+ proto.INT64,
1944
+ number=2,
1945
+ )
1946
+ online_storage_modified_entity_count: int = proto.Field(
1947
+ proto.INT64,
1948
+ number=3,
1949
+ )
1950
+
1951
+ select_entity: SelectEntity = proto.Field(
1952
+ proto.MESSAGE,
1953
+ number=1,
1954
+ oneof="response",
1955
+ message=SelectEntity,
1956
+ )
1957
+ select_time_range_and_feature: SelectTimeRangeAndFeature = proto.Field(
1958
+ proto.MESSAGE,
1959
+ number=2,
1960
+ oneof="response",
1961
+ message=SelectTimeRangeAndFeature,
1962
+ )
1963
+
1964
+
1965
+ class EntityIdSelector(proto.Message):
1966
+ r"""Selector for entityId. Getting ids from the given source.
1967
+
1968
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1969
+
1970
+ Attributes:
1971
+ csv_source (google.cloud.aiplatform_v1.types.CsvSource):
1972
+ Source of Csv
1973
+
1974
+ This field is a member of `oneof`_ ``EntityIdsSource``.
1975
+ entity_id_field (str):
1976
+ Source column that holds entity IDs. If not provided, entity
1977
+ IDs are extracted from the column named entity_id.
1978
+ """
1979
+
1980
+ csv_source: io.CsvSource = proto.Field(
1981
+ proto.MESSAGE,
1982
+ number=3,
1983
+ oneof="EntityIdsSource",
1984
+ message=io.CsvSource,
1985
+ )
1986
+ entity_id_field: str = proto.Field(
1987
+ proto.STRING,
1988
+ number=5,
1989
+ )
1990
+
1991
+
1992
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/gen_ai_cache_service.py ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import cached_content as gca_cached_content
23
+ import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "CreateCachedContentRequest",
30
+ "GetCachedContentRequest",
31
+ "UpdateCachedContentRequest",
32
+ "DeleteCachedContentRequest",
33
+ "ListCachedContentsRequest",
34
+ "ListCachedContentsResponse",
35
+ },
36
+ )
37
+
38
+
39
+ class CreateCachedContentRequest(proto.Message):
40
+ r"""Request message for
41
+ [GenAiCacheService.CreateCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.CreateCachedContent].
42
+
43
+ Attributes:
44
+ parent (str):
45
+ Required. The parent resource where the
46
+ cached content will be created
47
+ cached_content (google.cloud.aiplatform_v1.types.CachedContent):
48
+ Required. The cached content to create
49
+ """
50
+
51
+ parent: str = proto.Field(
52
+ proto.STRING,
53
+ number=1,
54
+ )
55
+ cached_content: gca_cached_content.CachedContent = proto.Field(
56
+ proto.MESSAGE,
57
+ number=2,
58
+ message=gca_cached_content.CachedContent,
59
+ )
60
+
61
+
62
+ class GetCachedContentRequest(proto.Message):
63
+ r"""Request message for
64
+ [GenAiCacheService.GetCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.GetCachedContent].
65
+
66
+ Attributes:
67
+ name (str):
68
+ Required. The resource name referring to the
69
+ cached content
70
+ """
71
+
72
+ name: str = proto.Field(
73
+ proto.STRING,
74
+ number=1,
75
+ )
76
+
77
+
78
+ class UpdateCachedContentRequest(proto.Message):
79
+ r"""Request message for
80
+ [GenAiCacheService.UpdateCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.UpdateCachedContent].
81
+ Only expire_time or ttl can be updated.
82
+
83
+ Attributes:
84
+ cached_content (google.cloud.aiplatform_v1.types.CachedContent):
85
+ Required. The cached content to update
86
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
87
+ Required. The list of fields to update.
88
+ """
89
+
90
+ cached_content: gca_cached_content.CachedContent = proto.Field(
91
+ proto.MESSAGE,
92
+ number=1,
93
+ message=gca_cached_content.CachedContent,
94
+ )
95
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
96
+ proto.MESSAGE,
97
+ number=2,
98
+ message=field_mask_pb2.FieldMask,
99
+ )
100
+
101
+
102
+ class DeleteCachedContentRequest(proto.Message):
103
+ r"""Request message for
104
+ [GenAiCacheService.DeleteCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.DeleteCachedContent].
105
+
106
+ Attributes:
107
+ name (str):
108
+ Required. The resource name referring to the
109
+ cached content
110
+ """
111
+
112
+ name: str = proto.Field(
113
+ proto.STRING,
114
+ number=1,
115
+ )
116
+
117
+
118
+ class ListCachedContentsRequest(proto.Message):
119
+ r"""Request to list CachedContents.
120
+
121
+ Attributes:
122
+ parent (str):
123
+ Required. The parent, which owns this
124
+ collection of cached contents.
125
+ page_size (int):
126
+ Optional. The maximum number of cached
127
+ contents to return. The service may return fewer
128
+ than this value. If unspecified, some default
129
+ (under maximum) number of items will be
130
+ returned. The maximum value is 1000; values
131
+ above 1000 will be coerced to 1000.
132
+ page_token (str):
133
+ Optional. A page token, received from a previous
134
+ ``ListCachedContents`` call. Provide this to retrieve the
135
+ subsequent page.
136
+
137
+ When paginating, all other parameters provided to
138
+ ``ListCachedContents`` must match the call that provided the
139
+ page token.
140
+ """
141
+
142
+ parent: str = proto.Field(
143
+ proto.STRING,
144
+ number=1,
145
+ )
146
+ page_size: int = proto.Field(
147
+ proto.INT32,
148
+ number=2,
149
+ )
150
+ page_token: str = proto.Field(
151
+ proto.STRING,
152
+ number=3,
153
+ )
154
+
155
+
156
+ class ListCachedContentsResponse(proto.Message):
157
+ r"""Response with a list of CachedContents.
158
+
159
+ Attributes:
160
+ cached_contents (MutableSequence[google.cloud.aiplatform_v1.types.CachedContent]):
161
+ List of cached contents.
162
+ next_page_token (str):
163
+ A token, which can be sent as ``page_token`` to retrieve the
164
+ next page. If this field is omitted, there are no subsequent
165
+ pages.
166
+ """
167
+
168
+ @property
169
+ def raw_page(self):
170
+ return self
171
+
172
+ cached_contents: MutableSequence[gca_cached_content.CachedContent] = (
173
+ proto.RepeatedField(
174
+ proto.MESSAGE,
175
+ number=1,
176
+ message=gca_cached_content.CachedContent,
177
+ )
178
+ )
179
+ next_page_token: str = proto.Field(
180
+ proto.STRING,
181
+ number=2,
182
+ )
183
+
184
+
185
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/hyperparameter_tuning_job.py ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import custom_job
23
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
24
+ from google.cloud.aiplatform_v1.types import job_state
25
+ from google.cloud.aiplatform_v1.types import study
26
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
27
+ import google.rpc.status_pb2 as status_pb2 # type: ignore
28
+
29
+
30
+ __protobuf__ = proto.module(
31
+ package="google.cloud.aiplatform.v1",
32
+ manifest={
33
+ "HyperparameterTuningJob",
34
+ },
35
+ )
36
+
37
+
38
+ class HyperparameterTuningJob(proto.Message):
39
+ r"""Represents a HyperparameterTuningJob. A
40
+ HyperparameterTuningJob has a Study specification and multiple
41
+ CustomJobs with identical CustomJob specification.
42
+
43
+ Attributes:
44
+ name (str):
45
+ Output only. Resource name of the
46
+ HyperparameterTuningJob.
47
+ display_name (str):
48
+ Required. The display name of the
49
+ HyperparameterTuningJob. The name can be up to
50
+ 128 characters long and can consist of any UTF-8
51
+ characters.
52
+ study_spec (google.cloud.aiplatform_v1.types.StudySpec):
53
+ Required. Study configuration of the
54
+ HyperparameterTuningJob.
55
+ max_trial_count (int):
56
+ Required. The desired total number of Trials.
57
+ parallel_trial_count (int):
58
+ Required. The desired number of Trials to run
59
+ in parallel.
60
+ max_failed_trial_count (int):
61
+ The number of failed Trials that need to be
62
+ seen before failing the HyperparameterTuningJob.
63
+
64
+ If set to 0, Vertex AI decides how many Trials
65
+ must fail before the whole job fails.
66
+ trial_job_spec (google.cloud.aiplatform_v1.types.CustomJobSpec):
67
+ Required. The spec of a trial job. The same
68
+ spec applies to the CustomJobs created in all
69
+ the trials.
70
+ trials (MutableSequence[google.cloud.aiplatform_v1.types.Trial]):
71
+ Output only. Trials of the
72
+ HyperparameterTuningJob.
73
+ state (google.cloud.aiplatform_v1.types.JobState):
74
+ Output only. The detailed state of the job.
75
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
76
+ Output only. Time when the
77
+ HyperparameterTuningJob was created.
78
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
79
+ Output only. Time when the HyperparameterTuningJob for the
80
+ first time entered the ``JOB_STATE_RUNNING`` state.
81
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
82
+ Output only. Time when the HyperparameterTuningJob entered
83
+ any of the following states: ``JOB_STATE_SUCCEEDED``,
84
+ ``JOB_STATE_FAILED``, ``JOB_STATE_CANCELLED``.
85
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
86
+ Output only. Time when the
87
+ HyperparameterTuningJob was most recently
88
+ updated.
89
+ error (google.rpc.status_pb2.Status):
90
+ Output only. Only populated when job's state is
91
+ JOB_STATE_FAILED or JOB_STATE_CANCELLED.
92
+ labels (MutableMapping[str, str]):
93
+ The labels with user-defined metadata to
94
+ organize HyperparameterTuningJobs.
95
+ Label keys and values can be no longer than 64
96
+ characters (Unicode codepoints), can only
97
+ contain lowercase letters, numeric characters,
98
+ underscores and dashes. International characters
99
+ are allowed.
100
+
101
+ See https://goo.gl/xmQnxf for more information
102
+ and examples of labels.
103
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
104
+ Customer-managed encryption key options for a
105
+ HyperparameterTuningJob. If this is set, then
106
+ all resources created by the
107
+ HyperparameterTuningJob will be encrypted with
108
+ the provided encryption key.
109
+ satisfies_pzs (bool):
110
+ Output only. Reserved for future use.
111
+ satisfies_pzi (bool):
112
+ Output only. Reserved for future use.
113
+ """
114
+
115
+ name: str = proto.Field(
116
+ proto.STRING,
117
+ number=1,
118
+ )
119
+ display_name: str = proto.Field(
120
+ proto.STRING,
121
+ number=2,
122
+ )
123
+ study_spec: study.StudySpec = proto.Field(
124
+ proto.MESSAGE,
125
+ number=4,
126
+ message=study.StudySpec,
127
+ )
128
+ max_trial_count: int = proto.Field(
129
+ proto.INT32,
130
+ number=5,
131
+ )
132
+ parallel_trial_count: int = proto.Field(
133
+ proto.INT32,
134
+ number=6,
135
+ )
136
+ max_failed_trial_count: int = proto.Field(
137
+ proto.INT32,
138
+ number=7,
139
+ )
140
+ trial_job_spec: custom_job.CustomJobSpec = proto.Field(
141
+ proto.MESSAGE,
142
+ number=8,
143
+ message=custom_job.CustomJobSpec,
144
+ )
145
+ trials: MutableSequence[study.Trial] = proto.RepeatedField(
146
+ proto.MESSAGE,
147
+ number=9,
148
+ message=study.Trial,
149
+ )
150
+ state: job_state.JobState = proto.Field(
151
+ proto.ENUM,
152
+ number=10,
153
+ enum=job_state.JobState,
154
+ )
155
+ create_time: timestamp_pb2.Timestamp = proto.Field(
156
+ proto.MESSAGE,
157
+ number=11,
158
+ message=timestamp_pb2.Timestamp,
159
+ )
160
+ start_time: timestamp_pb2.Timestamp = proto.Field(
161
+ proto.MESSAGE,
162
+ number=12,
163
+ message=timestamp_pb2.Timestamp,
164
+ )
165
+ end_time: timestamp_pb2.Timestamp = proto.Field(
166
+ proto.MESSAGE,
167
+ number=13,
168
+ message=timestamp_pb2.Timestamp,
169
+ )
170
+ update_time: timestamp_pb2.Timestamp = proto.Field(
171
+ proto.MESSAGE,
172
+ number=14,
173
+ message=timestamp_pb2.Timestamp,
174
+ )
175
+ error: status_pb2.Status = proto.Field(
176
+ proto.MESSAGE,
177
+ number=15,
178
+ message=status_pb2.Status,
179
+ )
180
+ labels: MutableMapping[str, str] = proto.MapField(
181
+ proto.STRING,
182
+ proto.STRING,
183
+ number=16,
184
+ )
185
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
186
+ proto.MESSAGE,
187
+ number=17,
188
+ message=gca_encryption_spec.EncryptionSpec,
189
+ )
190
+ satisfies_pzs: bool = proto.Field(
191
+ proto.BOOL,
192
+ number=19,
193
+ )
194
+ satisfies_pzi: bool = proto.Field(
195
+ proto.BOOL,
196
+ number=20,
197
+ )
198
+
199
+
200
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/index.py ADDED
@@ -0,0 +1,477 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import deployed_index_ref
23
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
24
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
25
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
26
+
27
+
28
+ __protobuf__ = proto.module(
29
+ package="google.cloud.aiplatform.v1",
30
+ manifest={
31
+ "Index",
32
+ "IndexDatapoint",
33
+ "IndexStats",
34
+ },
35
+ )
36
+
37
+
38
+ class Index(proto.Message):
39
+ r"""A representation of a collection of database items organized
40
+ in a way that allows for approximate nearest neighbor (a.k.a
41
+ ANN) algorithms search.
42
+
43
+ Attributes:
44
+ name (str):
45
+ Output only. The resource name of the Index.
46
+ display_name (str):
47
+ Required. The display name of the Index.
48
+ The name can be up to 128 characters long and
49
+ can consist of any UTF-8 characters.
50
+ description (str):
51
+ The description of the Index.
52
+ metadata_schema_uri (str):
53
+ Immutable. Points to a YAML file stored on Google Cloud
54
+ Storage describing additional information about the Index,
55
+ that is specific to it. Unset if the Index does not have any
56
+ additional information. The schema is defined as an OpenAPI
57
+ 3.0.2 `Schema
58
+ Object <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject>`__.
59
+ Note: The URI given on output will be immutable and probably
60
+ different, including the URI scheme, than the one given on
61
+ input. The output URI will point to a location where the
62
+ user only has a read access.
63
+ metadata (google.protobuf.struct_pb2.Value):
64
+ An additional information about the Index; the schema of the
65
+ metadata can be found in
66
+ [metadata_schema][google.cloud.aiplatform.v1.Index.metadata_schema_uri].
67
+ deployed_indexes (MutableSequence[google.cloud.aiplatform_v1.types.DeployedIndexRef]):
68
+ Output only. The pointers to DeployedIndexes
69
+ created from this Index. An Index can be only
70
+ deleted if all its DeployedIndexes had been
71
+ undeployed first.
72
+ etag (str):
73
+ Used to perform consistent read-modify-write
74
+ updates. If not set, a blind "overwrite" update
75
+ happens.
76
+ labels (MutableMapping[str, str]):
77
+ The labels with user-defined metadata to
78
+ organize your Indexes.
79
+ Label keys and values can be no longer than 64
80
+ characters (Unicode codepoints), can only
81
+ contain lowercase letters, numeric characters,
82
+ underscores and dashes. International characters
83
+ are allowed.
84
+
85
+ See https://goo.gl/xmQnxf for more information
86
+ and examples of labels.
87
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
88
+ Output only. Timestamp when this Index was
89
+ created.
90
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
91
+ Output only. Timestamp when this Index was most recently
92
+ updated. This also includes any update to the contents of
93
+ the Index. Note that Operations working on this Index may
94
+ have their
95
+ [Operations.metadata.generic_metadata.update_time]
96
+ [google.cloud.aiplatform.v1.GenericOperationMetadata.update_time]
97
+ a little after the value of this timestamp, yet that does
98
+ not mean their results are not already reflected in the
99
+ Index. Result of any successfully completed Operation on the
100
+ Index is reflected in it.
101
+ index_stats (google.cloud.aiplatform_v1.types.IndexStats):
102
+ Output only. Stats of the index resource.
103
+ index_update_method (google.cloud.aiplatform_v1.types.Index.IndexUpdateMethod):
104
+ Immutable. The update method to use with this Index. If not
105
+ set, BATCH_UPDATE will be used by default.
106
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
107
+ Immutable. Customer-managed encryption key
108
+ spec for an Index. If set, this Index and all
109
+ sub-resources of this Index will be secured by
110
+ this key.
111
+ satisfies_pzs (bool):
112
+ Output only. Reserved for future use.
113
+ satisfies_pzi (bool):
114
+ Output only. Reserved for future use.
115
+ """
116
+
117
+ class IndexUpdateMethod(proto.Enum):
118
+ r"""The update method of an Index.
119
+
120
+ Values:
121
+ INDEX_UPDATE_METHOD_UNSPECIFIED (0):
122
+ Should not be used.
123
+ BATCH_UPDATE (1):
124
+ BatchUpdate: user can call UpdateIndex with
125
+ files on Cloud Storage of Datapoints to update.
126
+ STREAM_UPDATE (2):
127
+ StreamUpdate: user can call
128
+ UpsertDatapoints/DeleteDatapoints to update the
129
+ Index and the updates will be applied in
130
+ corresponding DeployedIndexes in nearly
131
+ real-time.
132
+ """
133
+
134
+ INDEX_UPDATE_METHOD_UNSPECIFIED = 0
135
+ BATCH_UPDATE = 1
136
+ STREAM_UPDATE = 2
137
+
138
+ name: str = proto.Field(
139
+ proto.STRING,
140
+ number=1,
141
+ )
142
+ display_name: str = proto.Field(
143
+ proto.STRING,
144
+ number=2,
145
+ )
146
+ description: str = proto.Field(
147
+ proto.STRING,
148
+ number=3,
149
+ )
150
+ metadata_schema_uri: str = proto.Field(
151
+ proto.STRING,
152
+ number=4,
153
+ )
154
+ metadata: struct_pb2.Value = proto.Field(
155
+ proto.MESSAGE,
156
+ number=6,
157
+ message=struct_pb2.Value,
158
+ )
159
+ deployed_indexes: MutableSequence[deployed_index_ref.DeployedIndexRef] = (
160
+ proto.RepeatedField(
161
+ proto.MESSAGE,
162
+ number=7,
163
+ message=deployed_index_ref.DeployedIndexRef,
164
+ )
165
+ )
166
+ etag: str = proto.Field(
167
+ proto.STRING,
168
+ number=8,
169
+ )
170
+ labels: MutableMapping[str, str] = proto.MapField(
171
+ proto.STRING,
172
+ proto.STRING,
173
+ number=9,
174
+ )
175
+ create_time: timestamp_pb2.Timestamp = proto.Field(
176
+ proto.MESSAGE,
177
+ number=10,
178
+ message=timestamp_pb2.Timestamp,
179
+ )
180
+ update_time: timestamp_pb2.Timestamp = proto.Field(
181
+ proto.MESSAGE,
182
+ number=11,
183
+ message=timestamp_pb2.Timestamp,
184
+ )
185
+ index_stats: "IndexStats" = proto.Field(
186
+ proto.MESSAGE,
187
+ number=14,
188
+ message="IndexStats",
189
+ )
190
+ index_update_method: IndexUpdateMethod = proto.Field(
191
+ proto.ENUM,
192
+ number=16,
193
+ enum=IndexUpdateMethod,
194
+ )
195
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
196
+ proto.MESSAGE,
197
+ number=17,
198
+ message=gca_encryption_spec.EncryptionSpec,
199
+ )
200
+ satisfies_pzs: bool = proto.Field(
201
+ proto.BOOL,
202
+ number=18,
203
+ )
204
+ satisfies_pzi: bool = proto.Field(
205
+ proto.BOOL,
206
+ number=19,
207
+ )
208
+
209
+
210
+ class IndexDatapoint(proto.Message):
211
+ r"""A datapoint of Index.
212
+
213
+ Attributes:
214
+ datapoint_id (str):
215
+ Required. Unique identifier of the datapoint.
216
+ feature_vector (MutableSequence[float]):
217
+ Required. Feature embedding vector for dense index. An array
218
+ of numbers with the length of
219
+ [NearestNeighborSearchConfig.dimensions].
220
+ sparse_embedding (google.cloud.aiplatform_v1.types.IndexDatapoint.SparseEmbedding):
221
+ Optional. Feature embedding vector for sparse
222
+ index.
223
+ restricts (MutableSequence[google.cloud.aiplatform_v1.types.IndexDatapoint.Restriction]):
224
+ Optional. List of Restrict of the datapoint,
225
+ used to perform "restricted searches" where
226
+ boolean rule are used to filter the subset of
227
+ the database eligible for matching. This uses
228
+ categorical tokens. See:
229
+
230
+ https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
231
+ numeric_restricts (MutableSequence[google.cloud.aiplatform_v1.types.IndexDatapoint.NumericRestriction]):
232
+ Optional. List of Restrict of the datapoint,
233
+ used to perform "restricted searches" where
234
+ boolean rule are used to filter the subset of
235
+ the database eligible for matching. This uses
236
+ numeric comparisons.
237
+ crowding_tag (google.cloud.aiplatform_v1.types.IndexDatapoint.CrowdingTag):
238
+ Optional. CrowdingTag of the datapoint, the
239
+ number of neighbors to return in each crowding
240
+ can be configured during query.
241
+ embedding_metadata (google.protobuf.struct_pb2.Struct):
242
+ Optional. The key-value map of additional
243
+ metadata for the datapoint.
244
+ """
245
+
246
+ class SparseEmbedding(proto.Message):
247
+ r"""Feature embedding vector for sparse index. An array of
248
+ numbers whose values are located in the specified dimensions.
249
+
250
+ Attributes:
251
+ values (MutableSequence[float]):
252
+ Required. The list of embedding values of the
253
+ sparse vector.
254
+ dimensions (MutableSequence[int]):
255
+ Required. The list of indexes for the
256
+ embedding values of the sparse vector.
257
+ """
258
+
259
+ values: MutableSequence[float] = proto.RepeatedField(
260
+ proto.FLOAT,
261
+ number=1,
262
+ )
263
+ dimensions: MutableSequence[int] = proto.RepeatedField(
264
+ proto.INT64,
265
+ number=2,
266
+ )
267
+
268
+ class Restriction(proto.Message):
269
+ r"""Restriction of a datapoint which describe its
270
+ attributes(tokens) from each of several attribute
271
+ categories(namespaces).
272
+
273
+ Attributes:
274
+ namespace (str):
275
+ The namespace of this restriction. e.g.:
276
+ color.
277
+ allow_list (MutableSequence[str]):
278
+ The attributes to allow in this namespace.
279
+ e.g.: 'red'
280
+ deny_list (MutableSequence[str]):
281
+ The attributes to deny in this namespace.
282
+ e.g.: 'blue'
283
+ """
284
+
285
+ namespace: str = proto.Field(
286
+ proto.STRING,
287
+ number=1,
288
+ )
289
+ allow_list: MutableSequence[str] = proto.RepeatedField(
290
+ proto.STRING,
291
+ number=2,
292
+ )
293
+ deny_list: MutableSequence[str] = proto.RepeatedField(
294
+ proto.STRING,
295
+ number=3,
296
+ )
297
+
298
+ class NumericRestriction(proto.Message):
299
+ r"""This field allows restricts to be based on numeric
300
+ comparisons rather than categorical tokens.
301
+
302
+ This message has `oneof`_ fields (mutually exclusive fields).
303
+ For each oneof, at most one member field can be set at the same time.
304
+ Setting any member of the oneof automatically clears all other
305
+ members.
306
+
307
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
308
+
309
+ Attributes:
310
+ value_int (int):
311
+ Represents 64 bit integer.
312
+
313
+ This field is a member of `oneof`_ ``Value``.
314
+ value_float (float):
315
+ Represents 32 bit float.
316
+
317
+ This field is a member of `oneof`_ ``Value``.
318
+ value_double (float):
319
+ Represents 64 bit float.
320
+
321
+ This field is a member of `oneof`_ ``Value``.
322
+ namespace (str):
323
+ The namespace of this restriction. e.g.:
324
+ cost.
325
+ op (google.cloud.aiplatform_v1.types.IndexDatapoint.NumericRestriction.Operator):
326
+ This MUST be specified for queries and must
327
+ NOT be specified for datapoints.
328
+ """
329
+
330
+ class Operator(proto.Enum):
331
+ r"""Which comparison operator to use. Should be specified for
332
+ queries only; specifying this for a datapoint is an error.
333
+
334
+ Datapoints for which Operator is true relative to the query's
335
+ Value field will be allowlisted.
336
+
337
+ Values:
338
+ OPERATOR_UNSPECIFIED (0):
339
+ Default value of the enum.
340
+ LESS (1):
341
+ Datapoints are eligible iff their value is <
342
+ the query's.
343
+ LESS_EQUAL (2):
344
+ Datapoints are eligible iff their value is <=
345
+ the query's.
346
+ EQUAL (3):
347
+ Datapoints are eligible iff their value is ==
348
+ the query's.
349
+ GREATER_EQUAL (4):
350
+ Datapoints are eligible iff their value is >=
351
+ the query's.
352
+ GREATER (5):
353
+ Datapoints are eligible iff their value is >
354
+ the query's.
355
+ NOT_EQUAL (6):
356
+ Datapoints are eligible iff their value is !=
357
+ the query's.
358
+ """
359
+
360
+ OPERATOR_UNSPECIFIED = 0
361
+ LESS = 1
362
+ LESS_EQUAL = 2
363
+ EQUAL = 3
364
+ GREATER_EQUAL = 4
365
+ GREATER = 5
366
+ NOT_EQUAL = 6
367
+
368
+ value_int: int = proto.Field(
369
+ proto.INT64,
370
+ number=2,
371
+ oneof="Value",
372
+ )
373
+ value_float: float = proto.Field(
374
+ proto.FLOAT,
375
+ number=3,
376
+ oneof="Value",
377
+ )
378
+ value_double: float = proto.Field(
379
+ proto.DOUBLE,
380
+ number=4,
381
+ oneof="Value",
382
+ )
383
+ namespace: str = proto.Field(
384
+ proto.STRING,
385
+ number=1,
386
+ )
387
+ op: "IndexDatapoint.NumericRestriction.Operator" = proto.Field(
388
+ proto.ENUM,
389
+ number=5,
390
+ enum="IndexDatapoint.NumericRestriction.Operator",
391
+ )
392
+
393
+ class CrowdingTag(proto.Message):
394
+ r"""Crowding tag is a constraint on a neighbor list produced by nearest
395
+ neighbor search requiring that no more than some value k' of the k
396
+ neighbors returned have the same value of crowding_attribute.
397
+
398
+ Attributes:
399
+ crowding_attribute (str):
400
+ The attribute value used for crowding. The maximum number of
401
+ neighbors to return per crowding attribute value
402
+ (per_crowding_attribute_num_neighbors) is configured
403
+ per-query. This field is ignored if
404
+ per_crowding_attribute_num_neighbors is larger than the
405
+ total number of neighbors to return for a given query.
406
+ """
407
+
408
+ crowding_attribute: str = proto.Field(
409
+ proto.STRING,
410
+ number=1,
411
+ )
412
+
413
+ datapoint_id: str = proto.Field(
414
+ proto.STRING,
415
+ number=1,
416
+ )
417
+ feature_vector: MutableSequence[float] = proto.RepeatedField(
418
+ proto.FLOAT,
419
+ number=2,
420
+ )
421
+ sparse_embedding: SparseEmbedding = proto.Field(
422
+ proto.MESSAGE,
423
+ number=7,
424
+ message=SparseEmbedding,
425
+ )
426
+ restricts: MutableSequence[Restriction] = proto.RepeatedField(
427
+ proto.MESSAGE,
428
+ number=4,
429
+ message=Restriction,
430
+ )
431
+ numeric_restricts: MutableSequence[NumericRestriction] = proto.RepeatedField(
432
+ proto.MESSAGE,
433
+ number=6,
434
+ message=NumericRestriction,
435
+ )
436
+ crowding_tag: CrowdingTag = proto.Field(
437
+ proto.MESSAGE,
438
+ number=5,
439
+ message=CrowdingTag,
440
+ )
441
+ embedding_metadata: struct_pb2.Struct = proto.Field(
442
+ proto.MESSAGE,
443
+ number=8,
444
+ message=struct_pb2.Struct,
445
+ )
446
+
447
+
448
+ class IndexStats(proto.Message):
449
+ r"""Stats of the Index.
450
+
451
+ Attributes:
452
+ vectors_count (int):
453
+ Output only. The number of dense vectors in
454
+ the Index.
455
+ sparse_vectors_count (int):
456
+ Output only. The number of sparse vectors in
457
+ the Index.
458
+ shards_count (int):
459
+ Output only. The number of shards in the
460
+ Index.
461
+ """
462
+
463
+ vectors_count: int = proto.Field(
464
+ proto.INT64,
465
+ number=1,
466
+ )
467
+ sparse_vectors_count: int = proto.Field(
468
+ proto.INT64,
469
+ number=3,
470
+ )
471
+ shards_count: int = proto.Field(
472
+ proto.INT32,
473
+ number=2,
474
+ )
475
+
476
+
477
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/index_endpoint.py ADDED
@@ -0,0 +1,524 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
23
+ from google.cloud.aiplatform_v1.types import machine_resources
24
+ from google.cloud.aiplatform_v1.types import service_networking
25
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
26
+
27
+
28
+ __protobuf__ = proto.module(
29
+ package="google.cloud.aiplatform.v1",
30
+ manifest={
31
+ "IndexEndpoint",
32
+ "DeployedIndex",
33
+ "DeployedIndexAuthConfig",
34
+ "IndexPrivateEndpoints",
35
+ },
36
+ )
37
+
38
+
39
+ class IndexEndpoint(proto.Message):
40
+ r"""Indexes are deployed into it. An IndexEndpoint can have
41
+ multiple DeployedIndexes.
42
+
43
+ Attributes:
44
+ name (str):
45
+ Output only. The resource name of the
46
+ IndexEndpoint.
47
+ display_name (str):
48
+ Required. The display name of the
49
+ IndexEndpoint. The name can be up to 128
50
+ characters long and can consist of any UTF-8
51
+ characters.
52
+ description (str):
53
+ The description of the IndexEndpoint.
54
+ deployed_indexes (MutableSequence[google.cloud.aiplatform_v1.types.DeployedIndex]):
55
+ Output only. The indexes deployed in this
56
+ endpoint.
57
+ etag (str):
58
+ Used to perform consistent read-modify-write
59
+ updates. If not set, a blind "overwrite" update
60
+ happens.
61
+ labels (MutableMapping[str, str]):
62
+ The labels with user-defined metadata to
63
+ organize your IndexEndpoints.
64
+ Label keys and values can be no longer than 64
65
+ characters (Unicode codepoints), can only
66
+ contain lowercase letters, numeric characters,
67
+ underscores and dashes. International characters
68
+ are allowed.
69
+
70
+ See https://goo.gl/xmQnxf for more information
71
+ and examples of labels.
72
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
73
+ Output only. Timestamp when this
74
+ IndexEndpoint was created.
75
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
76
+ Output only. Timestamp when this
77
+ IndexEndpoint was last updated. This timestamp
78
+ is not updated when the endpoint's
79
+ DeployedIndexes are updated, e.g. due to updates
80
+ of the original Indexes they are the deployments
81
+ of.
82
+ network (str):
83
+ Optional. The full name of the Google Compute Engine
84
+ `network <https://cloud.google.com/compute/docs/networks-and-firewalls#networks>`__
85
+ to which the IndexEndpoint should be peered.
86
+
87
+ Private services access must already be configured for the
88
+ network. If left unspecified, the Endpoint is not peered
89
+ with any network.
90
+
91
+ [network][google.cloud.aiplatform.v1.IndexEndpoint.network]
92
+ and
93
+ [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config]
94
+ are mutually exclusive.
95
+
96
+ `Format <https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert>`__:
97
+ ``projects/{project}/global/networks/{network}``. Where
98
+ {project} is a project number, as in '12345', and {network}
99
+ is network name.
100
+ enable_private_service_connect (bool):
101
+ Optional. Deprecated: If true, expose the IndexEndpoint via
102
+ private service connect.
103
+
104
+ Only one of the fields,
105
+ [network][google.cloud.aiplatform.v1.IndexEndpoint.network]
106
+ or
107
+ [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect],
108
+ can be set.
109
+ private_service_connect_config (google.cloud.aiplatform_v1.types.PrivateServiceConnectConfig):
110
+ Optional. Configuration for private service connect.
111
+
112
+ [network][google.cloud.aiplatform.v1.IndexEndpoint.network]
113
+ and
114
+ [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config]
115
+ are mutually exclusive.
116
+ public_endpoint_enabled (bool):
117
+ Optional. If true, the deployed index will be
118
+ accessible through public endpoint.
119
+ public_endpoint_domain_name (str):
120
+ Output only. If
121
+ [public_endpoint_enabled][google.cloud.aiplatform.v1.IndexEndpoint.public_endpoint_enabled]
122
+ is true, this field will be populated with the domain name
123
+ to use for this index endpoint.
124
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
125
+ Immutable. Customer-managed encryption key
126
+ spec for an IndexEndpoint. If set, this
127
+ IndexEndpoint and all sub-resources of this
128
+ IndexEndpoint will be secured by this key.
129
+ satisfies_pzs (bool):
130
+ Output only. Reserved for future use.
131
+ satisfies_pzi (bool):
132
+ Output only. Reserved for future use.
133
+ """
134
+
135
+ name: str = proto.Field(
136
+ proto.STRING,
137
+ number=1,
138
+ )
139
+ display_name: str = proto.Field(
140
+ proto.STRING,
141
+ number=2,
142
+ )
143
+ description: str = proto.Field(
144
+ proto.STRING,
145
+ number=3,
146
+ )
147
+ deployed_indexes: MutableSequence["DeployedIndex"] = proto.RepeatedField(
148
+ proto.MESSAGE,
149
+ number=4,
150
+ message="DeployedIndex",
151
+ )
152
+ etag: str = proto.Field(
153
+ proto.STRING,
154
+ number=5,
155
+ )
156
+ labels: MutableMapping[str, str] = proto.MapField(
157
+ proto.STRING,
158
+ proto.STRING,
159
+ number=6,
160
+ )
161
+ create_time: timestamp_pb2.Timestamp = proto.Field(
162
+ proto.MESSAGE,
163
+ number=7,
164
+ message=timestamp_pb2.Timestamp,
165
+ )
166
+ update_time: timestamp_pb2.Timestamp = proto.Field(
167
+ proto.MESSAGE,
168
+ number=8,
169
+ message=timestamp_pb2.Timestamp,
170
+ )
171
+ network: str = proto.Field(
172
+ proto.STRING,
173
+ number=9,
174
+ )
175
+ enable_private_service_connect: bool = proto.Field(
176
+ proto.BOOL,
177
+ number=10,
178
+ )
179
+ private_service_connect_config: service_networking.PrivateServiceConnectConfig = (
180
+ proto.Field(
181
+ proto.MESSAGE,
182
+ number=12,
183
+ message=service_networking.PrivateServiceConnectConfig,
184
+ )
185
+ )
186
+ public_endpoint_enabled: bool = proto.Field(
187
+ proto.BOOL,
188
+ number=13,
189
+ )
190
+ public_endpoint_domain_name: str = proto.Field(
191
+ proto.STRING,
192
+ number=14,
193
+ )
194
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
195
+ proto.MESSAGE,
196
+ number=15,
197
+ message=gca_encryption_spec.EncryptionSpec,
198
+ )
199
+ satisfies_pzs: bool = proto.Field(
200
+ proto.BOOL,
201
+ number=17,
202
+ )
203
+ satisfies_pzi: bool = proto.Field(
204
+ proto.BOOL,
205
+ number=18,
206
+ )
207
+
208
+
209
+ class DeployedIndex(proto.Message):
210
+ r"""A deployment of an Index. IndexEndpoints contain one or more
211
+ DeployedIndexes.
212
+
213
+ Attributes:
214
+ id (str):
215
+ Required. The user specified ID of the
216
+ DeployedIndex. The ID can be up to 128
217
+ characters long and must start with a letter and
218
+ only contain letters, numbers, and underscores.
219
+ The ID must be unique within the project it is
220
+ created in.
221
+ index (str):
222
+ Required. The name of the Index this is the
223
+ deployment of. We may refer to this Index as the
224
+ DeployedIndex's "original" Index.
225
+ display_name (str):
226
+ The display name of the DeployedIndex. If not provided upon
227
+ creation, the Index's display_name is used.
228
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
229
+ Output only. Timestamp when the DeployedIndex
230
+ was created.
231
+ private_endpoints (google.cloud.aiplatform_v1.types.IndexPrivateEndpoints):
232
+ Output only. Provides paths for users to send requests
233
+ directly to the deployed index services running on Cloud via
234
+ private services access. This field is populated if
235
+ [network][google.cloud.aiplatform.v1.IndexEndpoint.network]
236
+ is configured.
237
+ index_sync_time (google.protobuf.timestamp_pb2.Timestamp):
238
+ Output only. The DeployedIndex may depend on various data on
239
+ its original Index. Additionally when certain changes to the
240
+ original Index are being done (e.g. when what the Index
241
+ contains is being changed) the DeployedIndex may be
242
+ asynchronously updated in the background to reflect these
243
+ changes. If this timestamp's value is at least the
244
+ [Index.update_time][google.cloud.aiplatform.v1.Index.update_time]
245
+ of the original Index, it means that this DeployedIndex and
246
+ the original Index are in sync. If this timestamp is older,
247
+ then to see which updates this DeployedIndex already
248
+ contains (and which it does not), one must
249
+ [list][google.longrunning.Operations.ListOperations] the
250
+ operations that are running on the original Index. Only the
251
+ successfully completed Operations with
252
+ [update_time][google.cloud.aiplatform.v1.GenericOperationMetadata.update_time]
253
+ equal or before this sync time are contained in this
254
+ DeployedIndex.
255
+ automatic_resources (google.cloud.aiplatform_v1.types.AutomaticResources):
256
+ Optional. A description of resources that the DeployedIndex
257
+ uses, which to large degree are decided by Vertex AI, and
258
+ optionally allows only a modest additional configuration. If
259
+ min_replica_count is not set, the default value is 2 (we
260
+ don't provide SLA when min_replica_count=1). If
261
+ max_replica_count is not set, the default value is
262
+ min_replica_count. The max allowed replica count is 1000.
263
+ dedicated_resources (google.cloud.aiplatform_v1.types.DedicatedResources):
264
+ Optional. A description of resources that are dedicated to
265
+ the DeployedIndex, and that need a higher degree of manual
266
+ configuration. The field min_replica_count must be set to a
267
+ value strictly greater than 0, or else validation will fail.
268
+ We don't provide SLA when min_replica_count=1. If
269
+ max_replica_count is not set, the default value is
270
+ min_replica_count. The max allowed replica count is 1000.
271
+
272
+ Available machine types for SMALL shard: e2-standard-2 and
273
+ all machine types available for MEDIUM and LARGE shard.
274
+
275
+ Available machine types for MEDIUM shard: e2-standard-16 and
276
+ all machine types available for LARGE shard.
277
+
278
+ Available machine types for LARGE shard: e2-highmem-16,
279
+ n2d-standard-32.
280
+
281
+ n1-standard-16 and n1-standard-32 are still available, but
282
+ we recommend e2-standard-16 and e2-highmem-16 for cost
283
+ efficiency.
284
+ enable_access_logging (bool):
285
+ Optional. If true, private endpoint's access
286
+ logs are sent to Cloud Logging.
287
+
288
+ These logs are like standard server access logs,
289
+ containing information like timestamp and
290
+ latency for each MatchRequest.
291
+
292
+ Note that logs may incur a cost, especially if
293
+ the deployed index receives a high queries per
294
+ second rate (QPS). Estimate your costs before
295
+ enabling this option.
296
+ enable_datapoint_upsert_logging (bool):
297
+ Optional. If true, logs to Cloud Logging
298
+ errors relating to datapoint upserts.
299
+
300
+ Under normal operation conditions, these log
301
+ entries should be very rare. However, if
302
+ incompatible datapoint updates are being
303
+ uploaded to an index, a high volume of log
304
+ entries may be generated in a short period of
305
+ time.
306
+
307
+ Note that logs may incur a cost, especially if
308
+ the deployed index receives a high volume of
309
+ datapoint upserts. Estimate your costs before
310
+ enabling this option.
311
+ deployed_index_auth_config (google.cloud.aiplatform_v1.types.DeployedIndexAuthConfig):
312
+ Optional. If set, the authentication is
313
+ enabled for the private endpoint.
314
+ reserved_ip_ranges (MutableSequence[str]):
315
+ Optional. A list of reserved ip ranges under the VPC network
316
+ that can be used for this DeployedIndex.
317
+
318
+ If set, we will deploy the index within the provided ip
319
+ ranges. Otherwise, the index might be deployed to any ip
320
+ ranges under the provided VPC network.
321
+
322
+ The value should be the name of the address
323
+ (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
324
+ Example: ['vertex-ai-ip-range'].
325
+
326
+ For more information about subnets and network IP ranges,
327
+ please see
328
+ https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges.
329
+ deployment_group (str):
330
+ Optional. The deployment group can be no longer than 64
331
+ characters (eg: 'test', 'prod'). If not set, we will use the
332
+ 'default' deployment group.
333
+
334
+ Creating ``deployment_groups`` with ``reserved_ip_ranges``
335
+ is a recommended practice when the peered network has
336
+ multiple peering ranges. This creates your deployments from
337
+ predictable IP spaces for easier traffic administration.
338
+ Also, one deployment_group (except 'default') can only be
339
+ used with the same reserved_ip_ranges which means if the
340
+ deployment_group has been used with reserved_ip_ranges: [a,
341
+ b, c], using it with [a, b] or [d, e] is disallowed.
342
+
343
+ Note: we only support up to 5 deployment groups(not
344
+ including 'default').
345
+ deployment_tier (google.cloud.aiplatform_v1.types.DeployedIndex.DeploymentTier):
346
+ Optional. The deployment tier that the index is deployed to.
347
+ DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default
348
+ tier.
349
+ psc_automation_configs (MutableSequence[google.cloud.aiplatform_v1.types.PSCAutomationConfig]):
350
+ Optional. If set for PSC deployed index, PSC connection will
351
+ be automatically created after deployment is done and the
352
+ endpoint information is populated in
353
+ private_endpoints.psc_automated_endpoints.
354
+ """
355
+
356
+ class DeploymentTier(proto.Enum):
357
+ r"""Tiers encapsulate serving time attributes like latency and
358
+ throughput.
359
+
360
+ Values:
361
+ DEPLOYMENT_TIER_UNSPECIFIED (0):
362
+ Default deployment tier.
363
+ STORAGE (2):
364
+ Optimized for costs.
365
+ """
366
+
367
+ DEPLOYMENT_TIER_UNSPECIFIED = 0
368
+ STORAGE = 2
369
+
370
+ id: str = proto.Field(
371
+ proto.STRING,
372
+ number=1,
373
+ )
374
+ index: str = proto.Field(
375
+ proto.STRING,
376
+ number=2,
377
+ )
378
+ display_name: str = proto.Field(
379
+ proto.STRING,
380
+ number=3,
381
+ )
382
+ create_time: timestamp_pb2.Timestamp = proto.Field(
383
+ proto.MESSAGE,
384
+ number=4,
385
+ message=timestamp_pb2.Timestamp,
386
+ )
387
+ private_endpoints: "IndexPrivateEndpoints" = proto.Field(
388
+ proto.MESSAGE,
389
+ number=5,
390
+ message="IndexPrivateEndpoints",
391
+ )
392
+ index_sync_time: timestamp_pb2.Timestamp = proto.Field(
393
+ proto.MESSAGE,
394
+ number=6,
395
+ message=timestamp_pb2.Timestamp,
396
+ )
397
+ automatic_resources: machine_resources.AutomaticResources = proto.Field(
398
+ proto.MESSAGE,
399
+ number=7,
400
+ message=machine_resources.AutomaticResources,
401
+ )
402
+ dedicated_resources: machine_resources.DedicatedResources = proto.Field(
403
+ proto.MESSAGE,
404
+ number=16,
405
+ message=machine_resources.DedicatedResources,
406
+ )
407
+ enable_access_logging: bool = proto.Field(
408
+ proto.BOOL,
409
+ number=8,
410
+ )
411
+ enable_datapoint_upsert_logging: bool = proto.Field(
412
+ proto.BOOL,
413
+ number=20,
414
+ )
415
+ deployed_index_auth_config: "DeployedIndexAuthConfig" = proto.Field(
416
+ proto.MESSAGE,
417
+ number=9,
418
+ message="DeployedIndexAuthConfig",
419
+ )
420
+ reserved_ip_ranges: MutableSequence[str] = proto.RepeatedField(
421
+ proto.STRING,
422
+ number=10,
423
+ )
424
+ deployment_group: str = proto.Field(
425
+ proto.STRING,
426
+ number=11,
427
+ )
428
+ deployment_tier: DeploymentTier = proto.Field(
429
+ proto.ENUM,
430
+ number=18,
431
+ enum=DeploymentTier,
432
+ )
433
+ psc_automation_configs: MutableSequence[service_networking.PSCAutomationConfig] = (
434
+ proto.RepeatedField(
435
+ proto.MESSAGE,
436
+ number=19,
437
+ message=service_networking.PSCAutomationConfig,
438
+ )
439
+ )
440
+
441
+
442
+ class DeployedIndexAuthConfig(proto.Message):
443
+ r"""Used to set up the auth on the DeployedIndex's private
444
+ endpoint.
445
+
446
+ Attributes:
447
+ auth_provider (google.cloud.aiplatform_v1.types.DeployedIndexAuthConfig.AuthProvider):
448
+ Defines the authentication provider that the
449
+ DeployedIndex uses.
450
+ """
451
+
452
+ class AuthProvider(proto.Message):
453
+ r"""Configuration for an authentication provider, including support for
454
+ `JSON Web Token
455
+ (JWT) <https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32>`__.
456
+
457
+ Attributes:
458
+ audiences (MutableSequence[str]):
459
+ The list of JWT
460
+ `audiences <https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3>`__.
461
+ that are allowed to access. A JWT containing any of these
462
+ audiences will be accepted.
463
+ allowed_issuers (MutableSequence[str]):
464
+ A list of allowed JWT issuers. Each entry must be a valid
465
+ Google service account, in the following format:
466
+
467
+ ``service-account-name@project-id.iam.gserviceaccount.com``
468
+ """
469
+
470
+ audiences: MutableSequence[str] = proto.RepeatedField(
471
+ proto.STRING,
472
+ number=1,
473
+ )
474
+ allowed_issuers: MutableSequence[str] = proto.RepeatedField(
475
+ proto.STRING,
476
+ number=2,
477
+ )
478
+
479
+ auth_provider: AuthProvider = proto.Field(
480
+ proto.MESSAGE,
481
+ number=1,
482
+ message=AuthProvider,
483
+ )
484
+
485
+
486
+ class IndexPrivateEndpoints(proto.Message):
487
+ r"""IndexPrivateEndpoints proto is used to provide paths for users to
488
+ send requests via private endpoints (e.g. private service access,
489
+ private service connect). To send request via private service
490
+ access, use match_grpc_address. To send request via private service
491
+ connect, use service_attachment.
492
+
493
+ Attributes:
494
+ match_grpc_address (str):
495
+ Output only. The ip address used to send
496
+ match gRPC requests.
497
+ service_attachment (str):
498
+ Output only. The name of the service
499
+ attachment resource. Populated if private
500
+ service connect is enabled.
501
+ psc_automated_endpoints (MutableSequence[google.cloud.aiplatform_v1.types.PscAutomatedEndpoints]):
502
+ Output only. PscAutomatedEndpoints is
503
+ populated if private service connect is enabled
504
+ if PscAutomatedConfig is set.
505
+ """
506
+
507
+ match_grpc_address: str = proto.Field(
508
+ proto.STRING,
509
+ number=1,
510
+ )
511
+ service_attachment: str = proto.Field(
512
+ proto.STRING,
513
+ number=2,
514
+ )
515
+ psc_automated_endpoints: MutableSequence[
516
+ service_networking.PscAutomatedEndpoints
517
+ ] = proto.RepeatedField(
518
+ proto.MESSAGE,
519
+ number=3,
520
+ message=service_networking.PscAutomatedEndpoints,
521
+ )
522
+
523
+
524
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/index_endpoint_service.py ADDED
@@ -0,0 +1,426 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import index_endpoint as gca_index_endpoint
23
+ from google.cloud.aiplatform_v1.types import operation
24
+ import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
25
+
26
+
27
+ __protobuf__ = proto.module(
28
+ package="google.cloud.aiplatform.v1",
29
+ manifest={
30
+ "CreateIndexEndpointRequest",
31
+ "CreateIndexEndpointOperationMetadata",
32
+ "GetIndexEndpointRequest",
33
+ "ListIndexEndpointsRequest",
34
+ "ListIndexEndpointsResponse",
35
+ "UpdateIndexEndpointRequest",
36
+ "DeleteIndexEndpointRequest",
37
+ "DeployIndexRequest",
38
+ "DeployIndexResponse",
39
+ "DeployIndexOperationMetadata",
40
+ "UndeployIndexRequest",
41
+ "UndeployIndexResponse",
42
+ "UndeployIndexOperationMetadata",
43
+ "MutateDeployedIndexRequest",
44
+ "MutateDeployedIndexResponse",
45
+ "MutateDeployedIndexOperationMetadata",
46
+ },
47
+ )
48
+
49
+
50
+ class CreateIndexEndpointRequest(proto.Message):
51
+ r"""Request message for
52
+ [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.CreateIndexEndpoint].
53
+
54
+ Attributes:
55
+ parent (str):
56
+ Required. The resource name of the Location to create the
57
+ IndexEndpoint in. Format:
58
+ ``projects/{project}/locations/{location}``
59
+ index_endpoint (google.cloud.aiplatform_v1.types.IndexEndpoint):
60
+ Required. The IndexEndpoint to create.
61
+ """
62
+
63
+ parent: str = proto.Field(
64
+ proto.STRING,
65
+ number=1,
66
+ )
67
+ index_endpoint: gca_index_endpoint.IndexEndpoint = proto.Field(
68
+ proto.MESSAGE,
69
+ number=2,
70
+ message=gca_index_endpoint.IndexEndpoint,
71
+ )
72
+
73
+
74
+ class CreateIndexEndpointOperationMetadata(proto.Message):
75
+ r"""Runtime operation information for
76
+ [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.CreateIndexEndpoint].
77
+
78
+ Attributes:
79
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
80
+ The operation generic information.
81
+ """
82
+
83
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
84
+ proto.MESSAGE,
85
+ number=1,
86
+ message=operation.GenericOperationMetadata,
87
+ )
88
+
89
+
90
+ class GetIndexEndpointRequest(proto.Message):
91
+ r"""Request message for
92
+ [IndexEndpointService.GetIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.GetIndexEndpoint]
93
+
94
+ Attributes:
95
+ name (str):
96
+ Required. The name of the IndexEndpoint resource. Format:
97
+ ``projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}``
98
+ """
99
+
100
+ name: str = proto.Field(
101
+ proto.STRING,
102
+ number=1,
103
+ )
104
+
105
+
106
+ class ListIndexEndpointsRequest(proto.Message):
107
+ r"""Request message for
108
+ [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints].
109
+
110
+ Attributes:
111
+ parent (str):
112
+ Required. The resource name of the Location from which to
113
+ list the IndexEndpoints. Format:
114
+ ``projects/{project}/locations/{location}``
115
+ filter (str):
116
+ Optional. An expression for filtering the results of the
117
+ request. For field names both snake_case and camelCase are
118
+ supported.
119
+
120
+ - ``index_endpoint`` supports = and !=. ``index_endpoint``
121
+ represents the IndexEndpoint ID, ie. the last segment of
122
+ the IndexEndpoint's
123
+ [resourcename][google.cloud.aiplatform.v1.IndexEndpoint.name].
124
+ - ``display_name`` supports =, != and regex() (uses
125
+ `re2 <https://github.com/google/re2/wiki/Syntax>`__
126
+ syntax)
127
+ - ``labels`` supports general map functions that is:
128
+ ``labels.key=value`` - key:value equality
129
+ ``labels.key:* or labels:key - key existence A key including a space must be quoted.``\ labels."a
130
+ key"\`.
131
+
132
+ Some examples:
133
+
134
+ - ``index_endpoint="1"``
135
+ - ``display_name="myDisplayName"``
136
+ - \`regex(display_name, "^A") -> The display name starts
137
+ with an A.
138
+ - ``labels.myKey="myValue"``
139
+ page_size (int):
140
+ Optional. The standard list page size.
141
+ page_token (str):
142
+ Optional. The standard list page token. Typically obtained
143
+ via
144
+ [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1.ListIndexEndpointsResponse.next_page_token]
145
+ of the previous
146
+ [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints]
147
+ call.
148
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
149
+ Optional. Mask specifying which fields to
150
+ read.
151
+ """
152
+
153
+ parent: str = proto.Field(
154
+ proto.STRING,
155
+ number=1,
156
+ )
157
+ filter: str = proto.Field(
158
+ proto.STRING,
159
+ number=2,
160
+ )
161
+ page_size: int = proto.Field(
162
+ proto.INT32,
163
+ number=3,
164
+ )
165
+ page_token: str = proto.Field(
166
+ proto.STRING,
167
+ number=4,
168
+ )
169
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
170
+ proto.MESSAGE,
171
+ number=5,
172
+ message=field_mask_pb2.FieldMask,
173
+ )
174
+
175
+
176
+ class ListIndexEndpointsResponse(proto.Message):
177
+ r"""Response message for
178
+ [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints].
179
+
180
+ Attributes:
181
+ index_endpoints (MutableSequence[google.cloud.aiplatform_v1.types.IndexEndpoint]):
182
+ List of IndexEndpoints in the requested page.
183
+ next_page_token (str):
184
+ A token to retrieve next page of results. Pass to
185
+ [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1.ListIndexEndpointsRequest.page_token]
186
+ to obtain that page.
187
+ """
188
+
189
+ @property
190
+ def raw_page(self):
191
+ return self
192
+
193
+ index_endpoints: MutableSequence[gca_index_endpoint.IndexEndpoint] = (
194
+ proto.RepeatedField(
195
+ proto.MESSAGE,
196
+ number=1,
197
+ message=gca_index_endpoint.IndexEndpoint,
198
+ )
199
+ )
200
+ next_page_token: str = proto.Field(
201
+ proto.STRING,
202
+ number=2,
203
+ )
204
+
205
+
206
+ class UpdateIndexEndpointRequest(proto.Message):
207
+ r"""Request message for
208
+ [IndexEndpointService.UpdateIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.UpdateIndexEndpoint].
209
+
210
+ Attributes:
211
+ index_endpoint (google.cloud.aiplatform_v1.types.IndexEndpoint):
212
+ Required. The IndexEndpoint which replaces
213
+ the resource on the server.
214
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
215
+ Required. The update mask applies to the resource. See
216
+ [google.protobuf.FieldMask][google.protobuf.FieldMask].
217
+ """
218
+
219
+ index_endpoint: gca_index_endpoint.IndexEndpoint = proto.Field(
220
+ proto.MESSAGE,
221
+ number=1,
222
+ message=gca_index_endpoint.IndexEndpoint,
223
+ )
224
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
225
+ proto.MESSAGE,
226
+ number=2,
227
+ message=field_mask_pb2.FieldMask,
228
+ )
229
+
230
+
231
+ class DeleteIndexEndpointRequest(proto.Message):
232
+ r"""Request message for
233
+ [IndexEndpointService.DeleteIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.DeleteIndexEndpoint].
234
+
235
+ Attributes:
236
+ name (str):
237
+ Required. The name of the IndexEndpoint resource to be
238
+ deleted. Format:
239
+ ``projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}``
240
+ """
241
+
242
+ name: str = proto.Field(
243
+ proto.STRING,
244
+ number=1,
245
+ )
246
+
247
+
248
+ class DeployIndexRequest(proto.Message):
249
+ r"""Request message for
250
+ [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex].
251
+
252
+ Attributes:
253
+ index_endpoint (str):
254
+ Required. The name of the IndexEndpoint resource into which
255
+ to deploy an Index. Format:
256
+ ``projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}``
257
+ deployed_index (google.cloud.aiplatform_v1.types.DeployedIndex):
258
+ Required. The DeployedIndex to be created
259
+ within the IndexEndpoint.
260
+ """
261
+
262
+ index_endpoint: str = proto.Field(
263
+ proto.STRING,
264
+ number=1,
265
+ )
266
+ deployed_index: gca_index_endpoint.DeployedIndex = proto.Field(
267
+ proto.MESSAGE,
268
+ number=2,
269
+ message=gca_index_endpoint.DeployedIndex,
270
+ )
271
+
272
+
273
+ class DeployIndexResponse(proto.Message):
274
+ r"""Response message for
275
+ [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex].
276
+
277
+ Attributes:
278
+ deployed_index (google.cloud.aiplatform_v1.types.DeployedIndex):
279
+ The DeployedIndex that had been deployed in
280
+ the IndexEndpoint.
281
+ """
282
+
283
+ deployed_index: gca_index_endpoint.DeployedIndex = proto.Field(
284
+ proto.MESSAGE,
285
+ number=1,
286
+ message=gca_index_endpoint.DeployedIndex,
287
+ )
288
+
289
+
290
+ class DeployIndexOperationMetadata(proto.Message):
291
+ r"""Runtime operation information for
292
+ [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex].
293
+
294
+ Attributes:
295
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
296
+ The operation generic information.
297
+ deployed_index_id (str):
298
+ The unique index id specified by user
299
+ """
300
+
301
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
302
+ proto.MESSAGE,
303
+ number=1,
304
+ message=operation.GenericOperationMetadata,
305
+ )
306
+ deployed_index_id: str = proto.Field(
307
+ proto.STRING,
308
+ number=2,
309
+ )
310
+
311
+
312
+ class UndeployIndexRequest(proto.Message):
313
+ r"""Request message for
314
+ [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex].
315
+
316
+ Attributes:
317
+ index_endpoint (str):
318
+ Required. The name of the IndexEndpoint resource from which
319
+ to undeploy an Index. Format:
320
+ ``projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}``
321
+ deployed_index_id (str):
322
+ Required. The ID of the DeployedIndex to be
323
+ undeployed from the IndexEndpoint.
324
+ """
325
+
326
+ index_endpoint: str = proto.Field(
327
+ proto.STRING,
328
+ number=1,
329
+ )
330
+ deployed_index_id: str = proto.Field(
331
+ proto.STRING,
332
+ number=2,
333
+ )
334
+
335
+
336
+ class UndeployIndexResponse(proto.Message):
337
+ r"""Response message for
338
+ [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex].
339
+
340
+ """
341
+
342
+
343
+ class UndeployIndexOperationMetadata(proto.Message):
344
+ r"""Runtime operation information for
345
+ [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex].
346
+
347
+ Attributes:
348
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
349
+ The operation generic information.
350
+ """
351
+
352
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
353
+ proto.MESSAGE,
354
+ number=1,
355
+ message=operation.GenericOperationMetadata,
356
+ )
357
+
358
+
359
+ class MutateDeployedIndexRequest(proto.Message):
360
+ r"""Request message for
361
+ [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndex].
362
+
363
+ Attributes:
364
+ index_endpoint (str):
365
+ Required. The name of the IndexEndpoint resource into which
366
+ to deploy an Index. Format:
367
+ ``projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}``
368
+ deployed_index (google.cloud.aiplatform_v1.types.DeployedIndex):
369
+ Required. The DeployedIndex to be updated within the
370
+ IndexEndpoint. Currently, the updatable fields are
371
+ [DeployedIndex.automatic_resources][google.cloud.aiplatform.v1.DeployedIndex.automatic_resources]
372
+ and
373
+ [DeployedIndex.dedicated_resources][google.cloud.aiplatform.v1.DeployedIndex.dedicated_resources]
374
+ """
375
+
376
+ index_endpoint: str = proto.Field(
377
+ proto.STRING,
378
+ number=1,
379
+ )
380
+ deployed_index: gca_index_endpoint.DeployedIndex = proto.Field(
381
+ proto.MESSAGE,
382
+ number=2,
383
+ message=gca_index_endpoint.DeployedIndex,
384
+ )
385
+
386
+
387
+ class MutateDeployedIndexResponse(proto.Message):
388
+ r"""Response message for
389
+ [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndex].
390
+
391
+ Attributes:
392
+ deployed_index (google.cloud.aiplatform_v1.types.DeployedIndex):
393
+ The DeployedIndex that had been updated in
394
+ the IndexEndpoint.
395
+ """
396
+
397
+ deployed_index: gca_index_endpoint.DeployedIndex = proto.Field(
398
+ proto.MESSAGE,
399
+ number=1,
400
+ message=gca_index_endpoint.DeployedIndex,
401
+ )
402
+
403
+
404
+ class MutateDeployedIndexOperationMetadata(proto.Message):
405
+ r"""Runtime operation information for
406
+ [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndex].
407
+
408
+ Attributes:
409
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
410
+ The operation generic information.
411
+ deployed_index_id (str):
412
+ The unique index id specified by user
413
+ """
414
+
415
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
416
+ proto.MESSAGE,
417
+ number=1,
418
+ message=operation.GenericOperationMetadata,
419
+ )
420
+ deployed_index_id: str = proto.Field(
421
+ proto.STRING,
422
+ number=2,
423
+ )
424
+
425
+
426
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/io.py ADDED
@@ -0,0 +1,554 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import api_auth
23
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
24
+
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.aiplatform.v1",
28
+ manifest={
29
+ "AvroSource",
30
+ "CsvSource",
31
+ "GcsSource",
32
+ "GcsDestination",
33
+ "BigQuerySource",
34
+ "BigQueryDestination",
35
+ "VertexMultimodalDatasetSource",
36
+ "VertexMultimodalDatasetDestination",
37
+ "CsvDestination",
38
+ "TFRecordDestination",
39
+ "ContainerRegistryDestination",
40
+ "GoogleDriveSource",
41
+ "DirectUploadSource",
42
+ "SlackSource",
43
+ "JiraSource",
44
+ "SharePointSources",
45
+ },
46
+ )
47
+
48
+
49
+ class AvroSource(proto.Message):
50
+ r"""The storage details for Avro input content.
51
+
52
+ Attributes:
53
+ gcs_source (google.cloud.aiplatform_v1.types.GcsSource):
54
+ Required. Google Cloud Storage location.
55
+ """
56
+
57
+ gcs_source: "GcsSource" = proto.Field(
58
+ proto.MESSAGE,
59
+ number=1,
60
+ message="GcsSource",
61
+ )
62
+
63
+
64
+ class CsvSource(proto.Message):
65
+ r"""The storage details for CSV input content.
66
+
67
+ Attributes:
68
+ gcs_source (google.cloud.aiplatform_v1.types.GcsSource):
69
+ Required. Google Cloud Storage location.
70
+ """
71
+
72
+ gcs_source: "GcsSource" = proto.Field(
73
+ proto.MESSAGE,
74
+ number=1,
75
+ message="GcsSource",
76
+ )
77
+
78
+
79
+ class GcsSource(proto.Message):
80
+ r"""The Google Cloud Storage location for the input content.
81
+
82
+ Attributes:
83
+ uris (MutableSequence[str]):
84
+ Required. Google Cloud Storage URI(-s) to the
85
+ input file(s). May contain wildcards. For more
86
+ information on wildcards, see
87
+ https://cloud.google.com/storage/docs/wildcards.
88
+ """
89
+
90
+ uris: MutableSequence[str] = proto.RepeatedField(
91
+ proto.STRING,
92
+ number=1,
93
+ )
94
+
95
+
96
+ class GcsDestination(proto.Message):
97
+ r"""The Google Cloud Storage location where the output is to be
98
+ written to.
99
+
100
+ Attributes:
101
+ output_uri_prefix (str):
102
+ Required. Google Cloud Storage URI to output
103
+ directory. If the uri doesn't end with
104
+ '/', a '/' will be automatically appended. The
105
+ directory is created if it doesn't exist.
106
+ """
107
+
108
+ output_uri_prefix: str = proto.Field(
109
+ proto.STRING,
110
+ number=1,
111
+ )
112
+
113
+
114
+ class BigQuerySource(proto.Message):
115
+ r"""The BigQuery location for the input content.
116
+
117
+ Attributes:
118
+ input_uri (str):
119
+ Required. BigQuery URI to a table, up to 2000 characters
120
+ long. Accepted forms:
121
+
122
+ - BigQuery path. For example:
123
+ ``bq://projectId.bqDatasetId.bqTableId``.
124
+ """
125
+
126
+ input_uri: str = proto.Field(
127
+ proto.STRING,
128
+ number=1,
129
+ )
130
+
131
+
132
+ class BigQueryDestination(proto.Message):
133
+ r"""The BigQuery location for the output content.
134
+
135
+ Attributes:
136
+ output_uri (str):
137
+ Required. BigQuery URI to a project or table, up to 2000
138
+ characters long.
139
+
140
+ When only the project is specified, the Dataset and Table is
141
+ created. When the full table reference is specified, the
142
+ Dataset must exist and table must not exist.
143
+
144
+ Accepted forms:
145
+
146
+ - BigQuery path. For example: ``bq://projectId`` or
147
+ ``bq://projectId.bqDatasetId`` or
148
+ ``bq://projectId.bqDatasetId.bqTableId``.
149
+ """
150
+
151
+ output_uri: str = proto.Field(
152
+ proto.STRING,
153
+ number=1,
154
+ )
155
+
156
+
157
+ class VertexMultimodalDatasetSource(proto.Message):
158
+ r"""The Vertex Multimodal Dataset for the input content.
159
+
160
+ Attributes:
161
+ dataset_name (str):
162
+ Required. The resource name of the Vertex Dataset. Format:
163
+ ``projects/{project}/locations/{location}/datasets/{dataset}``
164
+ """
165
+
166
+ dataset_name: str = proto.Field(
167
+ proto.STRING,
168
+ number=1,
169
+ )
170
+
171
+
172
+ class VertexMultimodalDatasetDestination(proto.Message):
173
+ r"""The details for a Vertex Multimodal Dataset output.
174
+
175
+ Attributes:
176
+ bigquery_destination (google.cloud.aiplatform_v1.types.BigQueryDestination):
177
+ Optional. The destination of the underlying
178
+ BigQuery table that will be created for the
179
+ output Multimodal Dataset. If not specified, the
180
+ BigQuery table will be created in a default
181
+ BigQuery dataset.
182
+ display_name (str):
183
+ Optional. Display name of the output dataset.
184
+ """
185
+
186
+ bigquery_destination: "BigQueryDestination" = proto.Field(
187
+ proto.MESSAGE,
188
+ number=1,
189
+ message="BigQueryDestination",
190
+ )
191
+ display_name: str = proto.Field(
192
+ proto.STRING,
193
+ number=2,
194
+ )
195
+
196
+
197
+ class CsvDestination(proto.Message):
198
+ r"""The storage details for CSV output content.
199
+
200
+ Attributes:
201
+ gcs_destination (google.cloud.aiplatform_v1.types.GcsDestination):
202
+ Required. Google Cloud Storage location.
203
+ """
204
+
205
+ gcs_destination: "GcsDestination" = proto.Field(
206
+ proto.MESSAGE,
207
+ number=1,
208
+ message="GcsDestination",
209
+ )
210
+
211
+
212
+ class TFRecordDestination(proto.Message):
213
+ r"""The storage details for TFRecord output content.
214
+
215
+ Attributes:
216
+ gcs_destination (google.cloud.aiplatform_v1.types.GcsDestination):
217
+ Required. Google Cloud Storage location.
218
+ """
219
+
220
+ gcs_destination: "GcsDestination" = proto.Field(
221
+ proto.MESSAGE,
222
+ number=1,
223
+ message="GcsDestination",
224
+ )
225
+
226
+
227
+ class ContainerRegistryDestination(proto.Message):
228
+ r"""The Container Registry location for the container image.
229
+
230
+ Attributes:
231
+ output_uri (str):
232
+ Required. Container Registry URI of a container image. Only
233
+ Google Container Registry and Artifact Registry are
234
+ supported now. Accepted forms:
235
+
236
+ - Google Container Registry path. For example:
237
+ ``gcr.io/projectId/imageName:tag``.
238
+
239
+ - Artifact Registry path. For example:
240
+ ``us-central1-docker.pkg.dev/projectId/repoName/imageName:tag``.
241
+
242
+ If a tag is not specified, "latest" will be used as the
243
+ default tag.
244
+ """
245
+
246
+ output_uri: str = proto.Field(
247
+ proto.STRING,
248
+ number=1,
249
+ )
250
+
251
+
252
+ class GoogleDriveSource(proto.Message):
253
+ r"""The Google Drive location for the input content.
254
+
255
+ Attributes:
256
+ resource_ids (MutableSequence[google.cloud.aiplatform_v1.types.GoogleDriveSource.ResourceId]):
257
+ Required. Google Drive resource IDs.
258
+ """
259
+
260
+ class ResourceId(proto.Message):
261
+ r"""The type and ID of the Google Drive resource.
262
+
263
+ Attributes:
264
+ resource_type (google.cloud.aiplatform_v1.types.GoogleDriveSource.ResourceId.ResourceType):
265
+ Required. The type of the Google Drive
266
+ resource.
267
+ resource_id (str):
268
+ Required. The ID of the Google Drive
269
+ resource.
270
+ """
271
+
272
+ class ResourceType(proto.Enum):
273
+ r"""The type of the Google Drive resource.
274
+
275
+ Values:
276
+ RESOURCE_TYPE_UNSPECIFIED (0):
277
+ Unspecified resource type.
278
+ RESOURCE_TYPE_FILE (1):
279
+ File resource type.
280
+ RESOURCE_TYPE_FOLDER (2):
281
+ Folder resource type.
282
+ """
283
+
284
+ RESOURCE_TYPE_UNSPECIFIED = 0
285
+ RESOURCE_TYPE_FILE = 1
286
+ RESOURCE_TYPE_FOLDER = 2
287
+
288
+ resource_type: "GoogleDriveSource.ResourceId.ResourceType" = proto.Field(
289
+ proto.ENUM,
290
+ number=1,
291
+ enum="GoogleDriveSource.ResourceId.ResourceType",
292
+ )
293
+ resource_id: str = proto.Field(
294
+ proto.STRING,
295
+ number=2,
296
+ )
297
+
298
+ resource_ids: MutableSequence[ResourceId] = proto.RepeatedField(
299
+ proto.MESSAGE,
300
+ number=1,
301
+ message=ResourceId,
302
+ )
303
+
304
+
305
+ class DirectUploadSource(proto.Message):
306
+ r"""The input content is encapsulated and uploaded in the
307
+ request.
308
+
309
+ """
310
+
311
+
312
+ class SlackSource(proto.Message):
313
+ r"""The Slack source for the ImportRagFilesRequest.
314
+
315
+ Attributes:
316
+ channels (MutableSequence[google.cloud.aiplatform_v1.types.SlackSource.SlackChannels]):
317
+ Required. The Slack channels.
318
+ """
319
+
320
+ class SlackChannels(proto.Message):
321
+ r"""SlackChannels contains the Slack channels and corresponding
322
+ access token.
323
+
324
+ Attributes:
325
+ channels (MutableSequence[google.cloud.aiplatform_v1.types.SlackSource.SlackChannels.SlackChannel]):
326
+ Required. The Slack channel IDs.
327
+ api_key_config (google.cloud.aiplatform_v1.types.ApiAuth.ApiKeyConfig):
328
+ Required. The SecretManager secret version
329
+ resource name (e.g.
330
+ projects/{project}/secrets/{secret}/versions/{version})
331
+ storing the Slack channel access token that has
332
+ access to the slack channel IDs. See:
333
+ https://api.slack.com/tutorials/tracks/getting-a-token.
334
+ """
335
+
336
+ class SlackChannel(proto.Message):
337
+ r"""SlackChannel contains the Slack channel ID and the time range
338
+ to import.
339
+
340
+ Attributes:
341
+ channel_id (str):
342
+ Required. The Slack channel ID.
343
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
344
+ Optional. The starting timestamp for messages
345
+ to import.
346
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
347
+ Optional. The ending timestamp for messages
348
+ to import.
349
+ """
350
+
351
+ channel_id: str = proto.Field(
352
+ proto.STRING,
353
+ number=1,
354
+ )
355
+ start_time: timestamp_pb2.Timestamp = proto.Field(
356
+ proto.MESSAGE,
357
+ number=2,
358
+ message=timestamp_pb2.Timestamp,
359
+ )
360
+ end_time: timestamp_pb2.Timestamp = proto.Field(
361
+ proto.MESSAGE,
362
+ number=3,
363
+ message=timestamp_pb2.Timestamp,
364
+ )
365
+
366
+ channels: MutableSequence["SlackSource.SlackChannels.SlackChannel"] = (
367
+ proto.RepeatedField(
368
+ proto.MESSAGE,
369
+ number=1,
370
+ message="SlackSource.SlackChannels.SlackChannel",
371
+ )
372
+ )
373
+ api_key_config: api_auth.ApiAuth.ApiKeyConfig = proto.Field(
374
+ proto.MESSAGE,
375
+ number=3,
376
+ message=api_auth.ApiAuth.ApiKeyConfig,
377
+ )
378
+
379
+ channels: MutableSequence[SlackChannels] = proto.RepeatedField(
380
+ proto.MESSAGE,
381
+ number=1,
382
+ message=SlackChannels,
383
+ )
384
+
385
+
386
+ class JiraSource(proto.Message):
387
+ r"""The Jira source for the ImportRagFilesRequest.
388
+
389
+ Attributes:
390
+ jira_queries (MutableSequence[google.cloud.aiplatform_v1.types.JiraSource.JiraQueries]):
391
+ Required. The Jira queries.
392
+ """
393
+
394
+ class JiraQueries(proto.Message):
395
+ r"""JiraQueries contains the Jira queries and corresponding
396
+ authentication.
397
+
398
+ Attributes:
399
+ projects (MutableSequence[str]):
400
+ A list of Jira projects to import in their
401
+ entirety.
402
+ custom_queries (MutableSequence[str]):
403
+ A list of custom Jira queries to import. For
404
+ information about JQL (Jira Query Language), see
405
+ https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
406
+ email (str):
407
+ Required. The Jira email address.
408
+ server_uri (str):
409
+ Required. The Jira server URI.
410
+ api_key_config (google.cloud.aiplatform_v1.types.ApiAuth.ApiKeyConfig):
411
+ Required. The SecretManager secret version resource name
412
+ (e.g.
413
+ projects/{project}/secrets/{secret}/versions/{version})
414
+ storing the Jira API key. See `Manage API tokens for your
415
+ Atlassian
416
+ account <https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/>`__.
417
+ """
418
+
419
+ projects: MutableSequence[str] = proto.RepeatedField(
420
+ proto.STRING,
421
+ number=3,
422
+ )
423
+ custom_queries: MutableSequence[str] = proto.RepeatedField(
424
+ proto.STRING,
425
+ number=4,
426
+ )
427
+ email: str = proto.Field(
428
+ proto.STRING,
429
+ number=5,
430
+ )
431
+ server_uri: str = proto.Field(
432
+ proto.STRING,
433
+ number=6,
434
+ )
435
+ api_key_config: api_auth.ApiAuth.ApiKeyConfig = proto.Field(
436
+ proto.MESSAGE,
437
+ number=7,
438
+ message=api_auth.ApiAuth.ApiKeyConfig,
439
+ )
440
+
441
+ jira_queries: MutableSequence[JiraQueries] = proto.RepeatedField(
442
+ proto.MESSAGE,
443
+ number=1,
444
+ message=JiraQueries,
445
+ )
446
+
447
+
448
+ class SharePointSources(proto.Message):
449
+ r"""The SharePointSources to pass to ImportRagFiles.
450
+
451
+ Attributes:
452
+ share_point_sources (MutableSequence[google.cloud.aiplatform_v1.types.SharePointSources.SharePointSource]):
453
+ The SharePoint sources.
454
+ """
455
+
456
+ class SharePointSource(proto.Message):
457
+ r"""An individual SharePointSource.
458
+
459
+ This message has `oneof`_ fields (mutually exclusive fields).
460
+ For each oneof, at most one member field can be set at the same time.
461
+ Setting any member of the oneof automatically clears all other
462
+ members.
463
+
464
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
465
+
466
+ Attributes:
467
+ sharepoint_folder_path (str):
468
+ The path of the SharePoint folder to download
469
+ from.
470
+
471
+ This field is a member of `oneof`_ ``folder_source``.
472
+ sharepoint_folder_id (str):
473
+ The ID of the SharePoint folder to download
474
+ from.
475
+
476
+ This field is a member of `oneof`_ ``folder_source``.
477
+ drive_name (str):
478
+ The name of the drive to download from.
479
+
480
+ This field is a member of `oneof`_ ``drive_source``.
481
+ drive_id (str):
482
+ The ID of the drive to download from.
483
+
484
+ This field is a member of `oneof`_ ``drive_source``.
485
+ client_id (str):
486
+ The Application ID for the app registered in
487
+ Microsoft Azure Portal. The application must
488
+ also be configured with MS Graph permissions
489
+ "Files.ReadAll", "Sites.ReadAll" and
490
+ BrowserSiteLists.Read.All.
491
+ client_secret (google.cloud.aiplatform_v1.types.ApiAuth.ApiKeyConfig):
492
+ The application secret for the app registered
493
+ in Azure.
494
+ tenant_id (str):
495
+ Unique identifier of the Azure Active
496
+ Directory Instance.
497
+ sharepoint_site_name (str):
498
+ The name of the SharePoint site to download
499
+ from. This can be the site name or the site id.
500
+ file_id (str):
501
+ Output only. The SharePoint file id. Output
502
+ only.
503
+ """
504
+
505
+ sharepoint_folder_path: str = proto.Field(
506
+ proto.STRING,
507
+ number=5,
508
+ oneof="folder_source",
509
+ )
510
+ sharepoint_folder_id: str = proto.Field(
511
+ proto.STRING,
512
+ number=6,
513
+ oneof="folder_source",
514
+ )
515
+ drive_name: str = proto.Field(
516
+ proto.STRING,
517
+ number=7,
518
+ oneof="drive_source",
519
+ )
520
+ drive_id: str = proto.Field(
521
+ proto.STRING,
522
+ number=8,
523
+ oneof="drive_source",
524
+ )
525
+ client_id: str = proto.Field(
526
+ proto.STRING,
527
+ number=1,
528
+ )
529
+ client_secret: api_auth.ApiAuth.ApiKeyConfig = proto.Field(
530
+ proto.MESSAGE,
531
+ number=2,
532
+ message=api_auth.ApiAuth.ApiKeyConfig,
533
+ )
534
+ tenant_id: str = proto.Field(
535
+ proto.STRING,
536
+ number=3,
537
+ )
538
+ sharepoint_site_name: str = proto.Field(
539
+ proto.STRING,
540
+ number=4,
541
+ )
542
+ file_id: str = proto.Field(
543
+ proto.STRING,
544
+ number=9,
545
+ )
546
+
547
+ share_point_sources: MutableSequence[SharePointSource] = proto.RepeatedField(
548
+ proto.MESSAGE,
549
+ number=1,
550
+ message=SharePointSource,
551
+ )
552
+
553
+
554
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/job_service.py ADDED
@@ -0,0 +1,1419 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import (
23
+ batch_prediction_job as gca_batch_prediction_job,
24
+ )
25
+ from google.cloud.aiplatform_v1.types import custom_job as gca_custom_job
26
+ from google.cloud.aiplatform_v1.types import data_labeling_job as gca_data_labeling_job
27
+ from google.cloud.aiplatform_v1.types import (
28
+ hyperparameter_tuning_job as gca_hyperparameter_tuning_job,
29
+ )
30
+ from google.cloud.aiplatform_v1.types import (
31
+ model_deployment_monitoring_job as gca_model_deployment_monitoring_job,
32
+ )
33
+ from google.cloud.aiplatform_v1.types import nas_job as gca_nas_job
34
+ from google.cloud.aiplatform_v1.types import operation
35
+ import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
36
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
37
+
38
+
39
+ __protobuf__ = proto.module(
40
+ package="google.cloud.aiplatform.v1",
41
+ manifest={
42
+ "CreateCustomJobRequest",
43
+ "GetCustomJobRequest",
44
+ "ListCustomJobsRequest",
45
+ "ListCustomJobsResponse",
46
+ "DeleteCustomJobRequest",
47
+ "CancelCustomJobRequest",
48
+ "CreateDataLabelingJobRequest",
49
+ "GetDataLabelingJobRequest",
50
+ "ListDataLabelingJobsRequest",
51
+ "ListDataLabelingJobsResponse",
52
+ "DeleteDataLabelingJobRequest",
53
+ "CancelDataLabelingJobRequest",
54
+ "CreateHyperparameterTuningJobRequest",
55
+ "GetHyperparameterTuningJobRequest",
56
+ "ListHyperparameterTuningJobsRequest",
57
+ "ListHyperparameterTuningJobsResponse",
58
+ "DeleteHyperparameterTuningJobRequest",
59
+ "CancelHyperparameterTuningJobRequest",
60
+ "CreateNasJobRequest",
61
+ "GetNasJobRequest",
62
+ "ListNasJobsRequest",
63
+ "ListNasJobsResponse",
64
+ "DeleteNasJobRequest",
65
+ "CancelNasJobRequest",
66
+ "GetNasTrialDetailRequest",
67
+ "ListNasTrialDetailsRequest",
68
+ "ListNasTrialDetailsResponse",
69
+ "CreateBatchPredictionJobRequest",
70
+ "GetBatchPredictionJobRequest",
71
+ "ListBatchPredictionJobsRequest",
72
+ "ListBatchPredictionJobsResponse",
73
+ "DeleteBatchPredictionJobRequest",
74
+ "CancelBatchPredictionJobRequest",
75
+ "CreateModelDeploymentMonitoringJobRequest",
76
+ "SearchModelDeploymentMonitoringStatsAnomaliesRequest",
77
+ "SearchModelDeploymentMonitoringStatsAnomaliesResponse",
78
+ "GetModelDeploymentMonitoringJobRequest",
79
+ "ListModelDeploymentMonitoringJobsRequest",
80
+ "ListModelDeploymentMonitoringJobsResponse",
81
+ "UpdateModelDeploymentMonitoringJobRequest",
82
+ "DeleteModelDeploymentMonitoringJobRequest",
83
+ "PauseModelDeploymentMonitoringJobRequest",
84
+ "ResumeModelDeploymentMonitoringJobRequest",
85
+ "UpdateModelDeploymentMonitoringJobOperationMetadata",
86
+ },
87
+ )
88
+
89
+
90
+ class CreateCustomJobRequest(proto.Message):
91
+ r"""Request message for
92
+ [JobService.CreateCustomJob][google.cloud.aiplatform.v1.JobService.CreateCustomJob].
93
+
94
+ Attributes:
95
+ parent (str):
96
+ Required. The resource name of the Location to create the
97
+ CustomJob in. Format:
98
+ ``projects/{project}/locations/{location}``
99
+ custom_job (google.cloud.aiplatform_v1.types.CustomJob):
100
+ Required. The CustomJob to create.
101
+ """
102
+
103
+ parent: str = proto.Field(
104
+ proto.STRING,
105
+ number=1,
106
+ )
107
+ custom_job: gca_custom_job.CustomJob = proto.Field(
108
+ proto.MESSAGE,
109
+ number=2,
110
+ message=gca_custom_job.CustomJob,
111
+ )
112
+
113
+
114
+ class GetCustomJobRequest(proto.Message):
115
+ r"""Request message for
116
+ [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob].
117
+
118
+ Attributes:
119
+ name (str):
120
+ Required. The name of the CustomJob resource. Format:
121
+ ``projects/{project}/locations/{location}/customJobs/{custom_job}``
122
+ """
123
+
124
+ name: str = proto.Field(
125
+ proto.STRING,
126
+ number=1,
127
+ )
128
+
129
+
130
+ class ListCustomJobsRequest(proto.Message):
131
+ r"""Request message for
132
+ [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs].
133
+
134
+ Attributes:
135
+ parent (str):
136
+ Required. The resource name of the Location to list the
137
+ CustomJobs from. Format:
138
+ ``projects/{project}/locations/{location}``
139
+ filter (str):
140
+ The standard list filter.
141
+
142
+ Supported fields:
143
+
144
+ - ``display_name`` supports ``=``, ``!=`` comparisons, and
145
+ ``:`` wildcard.
146
+ - ``state`` supports ``=``, ``!=`` comparisons.
147
+ - ``create_time`` supports ``=``, ``!=``,\ ``<``,
148
+ ``<=``,\ ``>``, ``>=`` comparisons. ``create_time`` must
149
+ be in RFC 3339 format.
150
+ - ``labels`` supports general map functions that is:
151
+ ``labels.key=value`` - key:value equality \`labels.key:\*
152
+ - key existence
153
+
154
+ Some examples of using the filter are:
155
+
156
+ - ``state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"``
157
+ - ``state!="JOB_STATE_FAILED" OR display_name="my_job"``
158
+ - ``NOT display_name="my_job"``
159
+ - ``create_time>"2021-05-18T00:00:00Z"``
160
+ - ``labels.keyA=valueA``
161
+ - ``labels.keyB:*``
162
+ page_size (int):
163
+ The standard list page size.
164
+ page_token (str):
165
+ The standard list page token. Typically obtained via
166
+ [ListCustomJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token]
167
+ of the previous
168
+ [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs]
169
+ call.
170
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
171
+ Mask specifying which fields to read.
172
+ """
173
+
174
+ parent: str = proto.Field(
175
+ proto.STRING,
176
+ number=1,
177
+ )
178
+ filter: str = proto.Field(
179
+ proto.STRING,
180
+ number=2,
181
+ )
182
+ page_size: int = proto.Field(
183
+ proto.INT32,
184
+ number=3,
185
+ )
186
+ page_token: str = proto.Field(
187
+ proto.STRING,
188
+ number=4,
189
+ )
190
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
191
+ proto.MESSAGE,
192
+ number=5,
193
+ message=field_mask_pb2.FieldMask,
194
+ )
195
+
196
+
197
+ class ListCustomJobsResponse(proto.Message):
198
+ r"""Response message for
199
+ [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs]
200
+
201
+ Attributes:
202
+ custom_jobs (MutableSequence[google.cloud.aiplatform_v1.types.CustomJob]):
203
+ List of CustomJobs in the requested page.
204
+ next_page_token (str):
205
+ A token to retrieve the next page of results. Pass to
206
+ [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1.ListCustomJobsRequest.page_token]
207
+ to obtain that page.
208
+ """
209
+
210
+ @property
211
+ def raw_page(self):
212
+ return self
213
+
214
+ custom_jobs: MutableSequence[gca_custom_job.CustomJob] = proto.RepeatedField(
215
+ proto.MESSAGE,
216
+ number=1,
217
+ message=gca_custom_job.CustomJob,
218
+ )
219
+ next_page_token: str = proto.Field(
220
+ proto.STRING,
221
+ number=2,
222
+ )
223
+
224
+
225
+ class DeleteCustomJobRequest(proto.Message):
226
+ r"""Request message for
227
+ [JobService.DeleteCustomJob][google.cloud.aiplatform.v1.JobService.DeleteCustomJob].
228
+
229
+ Attributes:
230
+ name (str):
231
+ Required. The name of the CustomJob resource to be deleted.
232
+ Format:
233
+ ``projects/{project}/locations/{location}/customJobs/{custom_job}``
234
+ """
235
+
236
+ name: str = proto.Field(
237
+ proto.STRING,
238
+ number=1,
239
+ )
240
+
241
+
242
+ class CancelCustomJobRequest(proto.Message):
243
+ r"""Request message for
244
+ [JobService.CancelCustomJob][google.cloud.aiplatform.v1.JobService.CancelCustomJob].
245
+
246
+ Attributes:
247
+ name (str):
248
+ Required. The name of the CustomJob to cancel. Format:
249
+ ``projects/{project}/locations/{location}/customJobs/{custom_job}``
250
+ """
251
+
252
+ name: str = proto.Field(
253
+ proto.STRING,
254
+ number=1,
255
+ )
256
+
257
+
258
+ class CreateDataLabelingJobRequest(proto.Message):
259
+ r"""Request message for
260
+ [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1.JobService.CreateDataLabelingJob].
261
+
262
+ Attributes:
263
+ parent (str):
264
+ Required. The parent of the DataLabelingJob. Format:
265
+ ``projects/{project}/locations/{location}``
266
+ data_labeling_job (google.cloud.aiplatform_v1.types.DataLabelingJob):
267
+ Required. The DataLabelingJob to create.
268
+ """
269
+
270
+ parent: str = proto.Field(
271
+ proto.STRING,
272
+ number=1,
273
+ )
274
+ data_labeling_job: gca_data_labeling_job.DataLabelingJob = proto.Field(
275
+ proto.MESSAGE,
276
+ number=2,
277
+ message=gca_data_labeling_job.DataLabelingJob,
278
+ )
279
+
280
+
281
+ class GetDataLabelingJobRequest(proto.Message):
282
+ r"""Request message for
283
+ [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1.JobService.GetDataLabelingJob].
284
+
285
+ Attributes:
286
+ name (str):
287
+ Required. The name of the DataLabelingJob. Format:
288
+ ``projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}``
289
+ """
290
+
291
+ name: str = proto.Field(
292
+ proto.STRING,
293
+ number=1,
294
+ )
295
+
296
+
297
+ class ListDataLabelingJobsRequest(proto.Message):
298
+ r"""Request message for
299
+ [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs].
300
+
301
+ Attributes:
302
+ parent (str):
303
+ Required. The parent of the DataLabelingJob. Format:
304
+ ``projects/{project}/locations/{location}``
305
+ filter (str):
306
+ The standard list filter.
307
+
308
+ Supported fields:
309
+
310
+ - ``display_name`` supports ``=``, ``!=`` comparisons, and
311
+ ``:`` wildcard.
312
+ - ``state`` supports ``=``, ``!=`` comparisons.
313
+ - ``create_time`` supports ``=``, ``!=``,\ ``<``,
314
+ ``<=``,\ ``>``, ``>=`` comparisons. ``create_time`` must
315
+ be in RFC 3339 format.
316
+ - ``labels`` supports general map functions that is:
317
+ ``labels.key=value`` - key:value equality \`labels.key:\*
318
+ - key existence
319
+
320
+ Some examples of using the filter are:
321
+
322
+ - ``state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"``
323
+ - ``state!="JOB_STATE_FAILED" OR display_name="my_job"``
324
+ - ``NOT display_name="my_job"``
325
+ - ``create_time>"2021-05-18T00:00:00Z"``
326
+ - ``labels.keyA=valueA``
327
+ - ``labels.keyB:*``
328
+ page_size (int):
329
+ The standard list page size.
330
+ page_token (str):
331
+ The standard list page token.
332
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
333
+ Mask specifying which fields to read. FieldMask represents a
334
+ set of symbolic field paths. For example, the mask can be
335
+ ``paths: "name"``. The "name" here is a field in
336
+ DataLabelingJob. If this field is not set, all fields of the
337
+ DataLabelingJob are returned.
338
+ order_by (str):
339
+ A comma-separated list of fields to order by, sorted in
340
+ ascending order by default. Use ``desc`` after a field name
341
+ for descending.
342
+ """
343
+
344
+ parent: str = proto.Field(
345
+ proto.STRING,
346
+ number=1,
347
+ )
348
+ filter: str = proto.Field(
349
+ proto.STRING,
350
+ number=2,
351
+ )
352
+ page_size: int = proto.Field(
353
+ proto.INT32,
354
+ number=3,
355
+ )
356
+ page_token: str = proto.Field(
357
+ proto.STRING,
358
+ number=4,
359
+ )
360
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
361
+ proto.MESSAGE,
362
+ number=5,
363
+ message=field_mask_pb2.FieldMask,
364
+ )
365
+ order_by: str = proto.Field(
366
+ proto.STRING,
367
+ number=6,
368
+ )
369
+
370
+
371
+ class ListDataLabelingJobsResponse(proto.Message):
372
+ r"""Response message for
373
+ [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs].
374
+
375
+ Attributes:
376
+ data_labeling_jobs (MutableSequence[google.cloud.aiplatform_v1.types.DataLabelingJob]):
377
+ A list of DataLabelingJobs that matches the
378
+ specified filter in the request.
379
+ next_page_token (str):
380
+ The standard List next-page token.
381
+ """
382
+
383
+ @property
384
+ def raw_page(self):
385
+ return self
386
+
387
+ data_labeling_jobs: MutableSequence[gca_data_labeling_job.DataLabelingJob] = (
388
+ proto.RepeatedField(
389
+ proto.MESSAGE,
390
+ number=1,
391
+ message=gca_data_labeling_job.DataLabelingJob,
392
+ )
393
+ )
394
+ next_page_token: str = proto.Field(
395
+ proto.STRING,
396
+ number=2,
397
+ )
398
+
399
+
400
+ class DeleteDataLabelingJobRequest(proto.Message):
401
+ r"""Request message for
402
+ [JobService.DeleteDataLabelingJob][google.cloud.aiplatform.v1.JobService.DeleteDataLabelingJob].
403
+
404
+ Attributes:
405
+ name (str):
406
+ Required. The name of the DataLabelingJob to be deleted.
407
+ Format:
408
+ ``projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}``
409
+ """
410
+
411
+ name: str = proto.Field(
412
+ proto.STRING,
413
+ number=1,
414
+ )
415
+
416
+
417
+ class CancelDataLabelingJobRequest(proto.Message):
418
+ r"""Request message for
419
+ [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1.JobService.CancelDataLabelingJob].
420
+
421
+ Attributes:
422
+ name (str):
423
+ Required. The name of the DataLabelingJob. Format:
424
+ ``projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}``
425
+ """
426
+
427
+ name: str = proto.Field(
428
+ proto.STRING,
429
+ number=1,
430
+ )
431
+
432
+
433
+ class CreateHyperparameterTuningJobRequest(proto.Message):
434
+ r"""Request message for
435
+ [JobService.CreateHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CreateHyperparameterTuningJob].
436
+
437
+ Attributes:
438
+ parent (str):
439
+ Required. The resource name of the Location to create the
440
+ HyperparameterTuningJob in. Format:
441
+ ``projects/{project}/locations/{location}``
442
+ hyperparameter_tuning_job (google.cloud.aiplatform_v1.types.HyperparameterTuningJob):
443
+ Required. The HyperparameterTuningJob to
444
+ create.
445
+ """
446
+
447
+ parent: str = proto.Field(
448
+ proto.STRING,
449
+ number=1,
450
+ )
451
+ hyperparameter_tuning_job: gca_hyperparameter_tuning_job.HyperparameterTuningJob = (
452
+ proto.Field(
453
+ proto.MESSAGE,
454
+ number=2,
455
+ message=gca_hyperparameter_tuning_job.HyperparameterTuningJob,
456
+ )
457
+ )
458
+
459
+
460
+ class GetHyperparameterTuningJobRequest(proto.Message):
461
+ r"""Request message for
462
+ [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob].
463
+
464
+ Attributes:
465
+ name (str):
466
+ Required. The name of the HyperparameterTuningJob resource.
467
+ Format:
468
+ ``projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}``
469
+ """
470
+
471
+ name: str = proto.Field(
472
+ proto.STRING,
473
+ number=1,
474
+ )
475
+
476
+
477
+ class ListHyperparameterTuningJobsRequest(proto.Message):
478
+ r"""Request message for
479
+ [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs].
480
+
481
+ Attributes:
482
+ parent (str):
483
+ Required. The resource name of the Location to list the
484
+ HyperparameterTuningJobs from. Format:
485
+ ``projects/{project}/locations/{location}``
486
+ filter (str):
487
+ The standard list filter.
488
+
489
+ Supported fields:
490
+
491
+ - ``display_name`` supports ``=``, ``!=`` comparisons, and
492
+ ``:`` wildcard.
493
+ - ``state`` supports ``=``, ``!=`` comparisons.
494
+ - ``create_time`` supports ``=``, ``!=``,\ ``<``,
495
+ ``<=``,\ ``>``, ``>=`` comparisons. ``create_time`` must
496
+ be in RFC 3339 format.
497
+ - ``labels`` supports general map functions that is:
498
+ ``labels.key=value`` - key:value equality \`labels.key:\*
499
+ - key existence
500
+
501
+ Some examples of using the filter are:
502
+
503
+ - ``state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"``
504
+ - ``state!="JOB_STATE_FAILED" OR display_name="my_job"``
505
+ - ``NOT display_name="my_job"``
506
+ - ``create_time>"2021-05-18T00:00:00Z"``
507
+ - ``labels.keyA=valueA``
508
+ - ``labels.keyB:*``
509
+ page_size (int):
510
+ The standard list page size.
511
+ page_token (str):
512
+ The standard list page token. Typically obtained via
513
+ [ListHyperparameterTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token]
514
+ of the previous
515
+ [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs]
516
+ call.
517
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
518
+ Mask specifying which fields to read.
519
+ """
520
+
521
+ parent: str = proto.Field(
522
+ proto.STRING,
523
+ number=1,
524
+ )
525
+ filter: str = proto.Field(
526
+ proto.STRING,
527
+ number=2,
528
+ )
529
+ page_size: int = proto.Field(
530
+ proto.INT32,
531
+ number=3,
532
+ )
533
+ page_token: str = proto.Field(
534
+ proto.STRING,
535
+ number=4,
536
+ )
537
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
538
+ proto.MESSAGE,
539
+ number=5,
540
+ message=field_mask_pb2.FieldMask,
541
+ )
542
+
543
+
544
+ class ListHyperparameterTuningJobsResponse(proto.Message):
545
+ r"""Response message for
546
+ [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs]
547
+
548
+ Attributes:
549
+ hyperparameter_tuning_jobs (MutableSequence[google.cloud.aiplatform_v1.types.HyperparameterTuningJob]):
550
+ List of HyperparameterTuningJobs in the requested page.
551
+ [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]
552
+ of the jobs will be not be returned.
553
+ next_page_token (str):
554
+ A token to retrieve the next page of results. Pass to
555
+ [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.page_token]
556
+ to obtain that page.
557
+ """
558
+
559
+ @property
560
+ def raw_page(self):
561
+ return self
562
+
563
+ hyperparameter_tuning_jobs: MutableSequence[
564
+ gca_hyperparameter_tuning_job.HyperparameterTuningJob
565
+ ] = proto.RepeatedField(
566
+ proto.MESSAGE,
567
+ number=1,
568
+ message=gca_hyperparameter_tuning_job.HyperparameterTuningJob,
569
+ )
570
+ next_page_token: str = proto.Field(
571
+ proto.STRING,
572
+ number=2,
573
+ )
574
+
575
+
576
+ class DeleteHyperparameterTuningJobRequest(proto.Message):
577
+ r"""Request message for
578
+ [JobService.DeleteHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.DeleteHyperparameterTuningJob].
579
+
580
+ Attributes:
581
+ name (str):
582
+ Required. The name of the HyperparameterTuningJob resource
583
+ to be deleted. Format:
584
+ ``projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}``
585
+ """
586
+
587
+ name: str = proto.Field(
588
+ proto.STRING,
589
+ number=1,
590
+ )
591
+
592
+
593
+ class CancelHyperparameterTuningJobRequest(proto.Message):
594
+ r"""Request message for
595
+ [JobService.CancelHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CancelHyperparameterTuningJob].
596
+
597
+ Attributes:
598
+ name (str):
599
+ Required. The name of the HyperparameterTuningJob to cancel.
600
+ Format:
601
+ ``projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}``
602
+ """
603
+
604
+ name: str = proto.Field(
605
+ proto.STRING,
606
+ number=1,
607
+ )
608
+
609
+
610
+ class CreateNasJobRequest(proto.Message):
611
+ r"""Request message for
612
+ [JobService.CreateNasJob][google.cloud.aiplatform.v1.JobService.CreateNasJob].
613
+
614
+ Attributes:
615
+ parent (str):
616
+ Required. The resource name of the Location to create the
617
+ NasJob in. Format:
618
+ ``projects/{project}/locations/{location}``
619
+ nas_job (google.cloud.aiplatform_v1.types.NasJob):
620
+ Required. The NasJob to create.
621
+ """
622
+
623
+ parent: str = proto.Field(
624
+ proto.STRING,
625
+ number=1,
626
+ )
627
+ nas_job: gca_nas_job.NasJob = proto.Field(
628
+ proto.MESSAGE,
629
+ number=2,
630
+ message=gca_nas_job.NasJob,
631
+ )
632
+
633
+
634
+ class GetNasJobRequest(proto.Message):
635
+ r"""Request message for
636
+ [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob].
637
+
638
+ Attributes:
639
+ name (str):
640
+ Required. The name of the NasJob resource. Format:
641
+ ``projects/{project}/locations/{location}/nasJobs/{nas_job}``
642
+ """
643
+
644
+ name: str = proto.Field(
645
+ proto.STRING,
646
+ number=1,
647
+ )
648
+
649
+
650
+ class ListNasJobsRequest(proto.Message):
651
+ r"""Request message for
652
+ [JobService.ListNasJobs][google.cloud.aiplatform.v1.JobService.ListNasJobs].
653
+
654
+ Attributes:
655
+ parent (str):
656
+ Required. The resource name of the Location to list the
657
+ NasJobs from. Format:
658
+ ``projects/{project}/locations/{location}``
659
+ filter (str):
660
+ The standard list filter.
661
+
662
+ Supported fields:
663
+
664
+ - ``display_name`` supports ``=``, ``!=`` comparisons, and
665
+ ``:`` wildcard.
666
+ - ``state`` supports ``=``, ``!=`` comparisons.
667
+ - ``create_time`` supports ``=``, ``!=``,\ ``<``,
668
+ ``<=``,\ ``>``, ``>=`` comparisons. ``create_time`` must
669
+ be in RFC 3339 format.
670
+ - ``labels`` supports general map functions that is:
671
+ ``labels.key=value`` - key:value equality \`labels.key:\*
672
+ - key existence
673
+
674
+ Some examples of using the filter are:
675
+
676
+ - ``state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"``
677
+ - ``state!="JOB_STATE_FAILED" OR display_name="my_job"``
678
+ - ``NOT display_name="my_job"``
679
+ - ``create_time>"2021-05-18T00:00:00Z"``
680
+ - ``labels.keyA=valueA``
681
+ - ``labels.keyB:*``
682
+ page_size (int):
683
+ The standard list page size.
684
+ page_token (str):
685
+ The standard list page token. Typically obtained via
686
+ [ListNasJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token]
687
+ of the previous
688
+ [JobService.ListNasJobs][google.cloud.aiplatform.v1.JobService.ListNasJobs]
689
+ call.
690
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
691
+ Mask specifying which fields to read.
692
+ """
693
+
694
+ parent: str = proto.Field(
695
+ proto.STRING,
696
+ number=1,
697
+ )
698
+ filter: str = proto.Field(
699
+ proto.STRING,
700
+ number=2,
701
+ )
702
+ page_size: int = proto.Field(
703
+ proto.INT32,
704
+ number=3,
705
+ )
706
+ page_token: str = proto.Field(
707
+ proto.STRING,
708
+ number=4,
709
+ )
710
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
711
+ proto.MESSAGE,
712
+ number=5,
713
+ message=field_mask_pb2.FieldMask,
714
+ )
715
+
716
+
717
+ class ListNasJobsResponse(proto.Message):
718
+ r"""Response message for
719
+ [JobService.ListNasJobs][google.cloud.aiplatform.v1.JobService.ListNasJobs]
720
+
721
+ Attributes:
722
+ nas_jobs (MutableSequence[google.cloud.aiplatform_v1.types.NasJob]):
723
+ List of NasJobs in the requested page.
724
+ [NasJob.nas_job_output][google.cloud.aiplatform.v1.NasJob.nas_job_output]
725
+ of the jobs will not be returned.
726
+ next_page_token (str):
727
+ A token to retrieve the next page of results. Pass to
728
+ [ListNasJobsRequest.page_token][google.cloud.aiplatform.v1.ListNasJobsRequest.page_token]
729
+ to obtain that page.
730
+ """
731
+
732
+ @property
733
+ def raw_page(self):
734
+ return self
735
+
736
+ nas_jobs: MutableSequence[gca_nas_job.NasJob] = proto.RepeatedField(
737
+ proto.MESSAGE,
738
+ number=1,
739
+ message=gca_nas_job.NasJob,
740
+ )
741
+ next_page_token: str = proto.Field(
742
+ proto.STRING,
743
+ number=2,
744
+ )
745
+
746
+
747
+ class DeleteNasJobRequest(proto.Message):
748
+ r"""Request message for
749
+ [JobService.DeleteNasJob][google.cloud.aiplatform.v1.JobService.DeleteNasJob].
750
+
751
+ Attributes:
752
+ name (str):
753
+ Required. The name of the NasJob resource to be deleted.
754
+ Format:
755
+ ``projects/{project}/locations/{location}/nasJobs/{nas_job}``
756
+ """
757
+
758
+ name: str = proto.Field(
759
+ proto.STRING,
760
+ number=1,
761
+ )
762
+
763
+
764
+ class CancelNasJobRequest(proto.Message):
765
+ r"""Request message for
766
+ [JobService.CancelNasJob][google.cloud.aiplatform.v1.JobService.CancelNasJob].
767
+
768
+ Attributes:
769
+ name (str):
770
+ Required. The name of the NasJob to cancel. Format:
771
+ ``projects/{project}/locations/{location}/nasJobs/{nas_job}``
772
+ """
773
+
774
+ name: str = proto.Field(
775
+ proto.STRING,
776
+ number=1,
777
+ )
778
+
779
+
780
+ class GetNasTrialDetailRequest(proto.Message):
781
+ r"""Request message for
782
+ [JobService.GetNasTrialDetail][google.cloud.aiplatform.v1.JobService.GetNasTrialDetail].
783
+
784
+ Attributes:
785
+ name (str):
786
+ Required. The name of the NasTrialDetail resource. Format:
787
+ ``projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}``
788
+ """
789
+
790
+ name: str = proto.Field(
791
+ proto.STRING,
792
+ number=1,
793
+ )
794
+
795
+
796
+ class ListNasTrialDetailsRequest(proto.Message):
797
+ r"""Request message for
798
+ [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1.JobService.ListNasTrialDetails].
799
+
800
+ Attributes:
801
+ parent (str):
802
+ Required. The name of the NasJob resource. Format:
803
+ ``projects/{project}/locations/{location}/nasJobs/{nas_job}``
804
+ page_size (int):
805
+ The standard list page size.
806
+ page_token (str):
807
+ The standard list page token. Typically obtained via
808
+ [ListNasTrialDetailsResponse.next_page_token][google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token]
809
+ of the previous
810
+ [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1.JobService.ListNasTrialDetails]
811
+ call.
812
+ """
813
+
814
+ parent: str = proto.Field(
815
+ proto.STRING,
816
+ number=1,
817
+ )
818
+ page_size: int = proto.Field(
819
+ proto.INT32,
820
+ number=2,
821
+ )
822
+ page_token: str = proto.Field(
823
+ proto.STRING,
824
+ number=3,
825
+ )
826
+
827
+
828
+ class ListNasTrialDetailsResponse(proto.Message):
829
+ r"""Response message for
830
+ [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1.JobService.ListNasTrialDetails]
831
+
832
+ Attributes:
833
+ nas_trial_details (MutableSequence[google.cloud.aiplatform_v1.types.NasTrialDetail]):
834
+ List of top NasTrials in the requested page.
835
+ next_page_token (str):
836
+ A token to retrieve the next page of results. Pass to
837
+ [ListNasTrialDetailsRequest.page_token][google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.page_token]
838
+ to obtain that page.
839
+ """
840
+
841
+ @property
842
+ def raw_page(self):
843
+ return self
844
+
845
+ nas_trial_details: MutableSequence[gca_nas_job.NasTrialDetail] = (
846
+ proto.RepeatedField(
847
+ proto.MESSAGE,
848
+ number=1,
849
+ message=gca_nas_job.NasTrialDetail,
850
+ )
851
+ )
852
+ next_page_token: str = proto.Field(
853
+ proto.STRING,
854
+ number=2,
855
+ )
856
+
857
+
858
+ class CreateBatchPredictionJobRequest(proto.Message):
859
+ r"""Request message for
860
+ [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJob].
861
+
862
+ Attributes:
863
+ parent (str):
864
+ Required. The resource name of the Location to create the
865
+ BatchPredictionJob in. Format:
866
+ ``projects/{project}/locations/{location}``
867
+ batch_prediction_job (google.cloud.aiplatform_v1.types.BatchPredictionJob):
868
+ Required. The BatchPredictionJob to create.
869
+ """
870
+
871
+ parent: str = proto.Field(
872
+ proto.STRING,
873
+ number=1,
874
+ )
875
+ batch_prediction_job: gca_batch_prediction_job.BatchPredictionJob = proto.Field(
876
+ proto.MESSAGE,
877
+ number=2,
878
+ message=gca_batch_prediction_job.BatchPredictionJob,
879
+ )
880
+
881
+
882
+ class GetBatchPredictionJobRequest(proto.Message):
883
+ r"""Request message for
884
+ [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob].
885
+
886
+ Attributes:
887
+ name (str):
888
+ Required. The name of the BatchPredictionJob resource.
889
+ Format:
890
+ ``projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}``
891
+ """
892
+
893
+ name: str = proto.Field(
894
+ proto.STRING,
895
+ number=1,
896
+ )
897
+
898
+
899
+ class ListBatchPredictionJobsRequest(proto.Message):
900
+ r"""Request message for
901
+ [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs].
902
+
903
+ Attributes:
904
+ parent (str):
905
+ Required. The resource name of the Location to list the
906
+ BatchPredictionJobs from. Format:
907
+ ``projects/{project}/locations/{location}``
908
+ filter (str):
909
+ The standard list filter.
910
+
911
+ Supported fields:
912
+
913
+ - ``display_name`` supports ``=``, ``!=`` comparisons, and
914
+ ``:`` wildcard.
915
+ - ``model_display_name`` supports ``=``, ``!=`` comparisons.
916
+ - ``state`` supports ``=``, ``!=`` comparisons.
917
+ - ``create_time`` supports ``=``, ``!=``,\ ``<``,
918
+ ``<=``,\ ``>``, ``>=`` comparisons. ``create_time`` must
919
+ be in RFC 3339 format.
920
+ - ``labels`` supports general map functions that is:
921
+ ``labels.key=value`` - key:value equality \`labels.key:\*
922
+ - key existence
923
+
924
+ Some examples of using the filter are:
925
+
926
+ - ``state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"``
927
+ - ``state!="JOB_STATE_FAILED" OR display_name="my_job"``
928
+ - ``NOT display_name="my_job"``
929
+ - ``create_time>"2021-05-18T00:00:00Z"``
930
+ - ``labels.keyA=valueA``
931
+ - ``labels.keyB:*``
932
+ page_size (int):
933
+ The standard list page size.
934
+ page_token (str):
935
+ The standard list page token. Typically obtained via
936
+ [ListBatchPredictionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.next_page_token]
937
+ of the previous
938
+ [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs]
939
+ call.
940
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
941
+ Mask specifying which fields to read.
942
+ """
943
+
944
+ parent: str = proto.Field(
945
+ proto.STRING,
946
+ number=1,
947
+ )
948
+ filter: str = proto.Field(
949
+ proto.STRING,
950
+ number=2,
951
+ )
952
+ page_size: int = proto.Field(
953
+ proto.INT32,
954
+ number=3,
955
+ )
956
+ page_token: str = proto.Field(
957
+ proto.STRING,
958
+ number=4,
959
+ )
960
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
961
+ proto.MESSAGE,
962
+ number=5,
963
+ message=field_mask_pb2.FieldMask,
964
+ )
965
+
966
+
967
+ class ListBatchPredictionJobsResponse(proto.Message):
968
+ r"""Response message for
969
+ [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs]
970
+
971
+ Attributes:
972
+ batch_prediction_jobs (MutableSequence[google.cloud.aiplatform_v1.types.BatchPredictionJob]):
973
+ List of BatchPredictionJobs in the requested
974
+ page.
975
+ next_page_token (str):
976
+ A token to retrieve the next page of results. Pass to
977
+ [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.page_token]
978
+ to obtain that page.
979
+ """
980
+
981
+ @property
982
+ def raw_page(self):
983
+ return self
984
+
985
+ batch_prediction_jobs: MutableSequence[
986
+ gca_batch_prediction_job.BatchPredictionJob
987
+ ] = proto.RepeatedField(
988
+ proto.MESSAGE,
989
+ number=1,
990
+ message=gca_batch_prediction_job.BatchPredictionJob,
991
+ )
992
+ next_page_token: str = proto.Field(
993
+ proto.STRING,
994
+ number=2,
995
+ )
996
+
997
+
998
+ class DeleteBatchPredictionJobRequest(proto.Message):
999
+ r"""Request message for
1000
+ [JobService.DeleteBatchPredictionJob][google.cloud.aiplatform.v1.JobService.DeleteBatchPredictionJob].
1001
+
1002
+ Attributes:
1003
+ name (str):
1004
+ Required. The name of the BatchPredictionJob resource to be
1005
+ deleted. Format:
1006
+ ``projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}``
1007
+ """
1008
+
1009
+ name: str = proto.Field(
1010
+ proto.STRING,
1011
+ number=1,
1012
+ )
1013
+
1014
+
1015
+ class CancelBatchPredictionJobRequest(proto.Message):
1016
+ r"""Request message for
1017
+ [JobService.CancelBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CancelBatchPredictionJob].
1018
+
1019
+ Attributes:
1020
+ name (str):
1021
+ Required. The name of the BatchPredictionJob to cancel.
1022
+ Format:
1023
+ ``projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}``
1024
+ """
1025
+
1026
+ name: str = proto.Field(
1027
+ proto.STRING,
1028
+ number=1,
1029
+ )
1030
+
1031
+
1032
+ class CreateModelDeploymentMonitoringJobRequest(proto.Message):
1033
+ r"""Request message for
1034
+ [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob].
1035
+
1036
+ Attributes:
1037
+ parent (str):
1038
+ Required. The parent of the ModelDeploymentMonitoringJob.
1039
+ Format: ``projects/{project}/locations/{location}``
1040
+ model_deployment_monitoring_job (google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringJob):
1041
+ Required. The ModelDeploymentMonitoringJob to
1042
+ create
1043
+ """
1044
+
1045
+ parent: str = proto.Field(
1046
+ proto.STRING,
1047
+ number=1,
1048
+ )
1049
+ model_deployment_monitoring_job: (
1050
+ gca_model_deployment_monitoring_job.ModelDeploymentMonitoringJob
1051
+ ) = proto.Field(
1052
+ proto.MESSAGE,
1053
+ number=2,
1054
+ message=gca_model_deployment_monitoring_job.ModelDeploymentMonitoringJob,
1055
+ )
1056
+
1057
+
1058
+ class SearchModelDeploymentMonitoringStatsAnomaliesRequest(proto.Message):
1059
+ r"""Request message for
1060
+ [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1.JobService.SearchModelDeploymentMonitoringStatsAnomalies].
1061
+
1062
+ Attributes:
1063
+ model_deployment_monitoring_job (str):
1064
+ Required. ModelDeploymentMonitoring Job resource name.
1065
+ Format:
1066
+ ``projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}``
1067
+ deployed_model_id (str):
1068
+ Required. The DeployedModel ID of the
1069
+ [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
1070
+ feature_display_name (str):
1071
+ The feature display name. If specified, only return the
1072
+ stats belonging to this feature. Format:
1073
+ [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
1074
+ example: "user_destination".
1075
+ objectives (MutableSequence[google.cloud.aiplatform_v1.types.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective]):
1076
+ Required. Objectives of the stats to
1077
+ retrieve.
1078
+ page_size (int):
1079
+ The standard list page size.
1080
+ page_token (str):
1081
+ A page token received from a previous
1082
+ [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
1083
+ call.
1084
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
1085
+ The earliest timestamp of stats being
1086
+ generated. If not set, indicates fetching stats
1087
+ till the earliest possible one.
1088
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
1089
+ The latest timestamp of stats being
1090
+ generated. If not set, indicates feching stats
1091
+ till the latest possible one.
1092
+ """
1093
+
1094
+ class StatsAnomaliesObjective(proto.Message):
1095
+ r"""Stats requested for specific objective.
1096
+
1097
+ Attributes:
1098
+ type_ (google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringObjectiveType):
1099
+
1100
+ top_feature_count (int):
1101
+ If set, all attribution scores between
1102
+ [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time]
1103
+ and
1104
+ [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time]
1105
+ are fetched, and page token doesn't take effect in this
1106
+ case. Only used to retrieve attribution score for the top
1107
+ Features which has the highest attribution score in the
1108
+ latest monitoring run.
1109
+ """
1110
+
1111
+ type_: (
1112
+ gca_model_deployment_monitoring_job.ModelDeploymentMonitoringObjectiveType
1113
+ ) = proto.Field(
1114
+ proto.ENUM,
1115
+ number=1,
1116
+ enum=gca_model_deployment_monitoring_job.ModelDeploymentMonitoringObjectiveType,
1117
+ )
1118
+ top_feature_count: int = proto.Field(
1119
+ proto.INT32,
1120
+ number=4,
1121
+ )
1122
+
1123
+ model_deployment_monitoring_job: str = proto.Field(
1124
+ proto.STRING,
1125
+ number=1,
1126
+ )
1127
+ deployed_model_id: str = proto.Field(
1128
+ proto.STRING,
1129
+ number=2,
1130
+ )
1131
+ feature_display_name: str = proto.Field(
1132
+ proto.STRING,
1133
+ number=3,
1134
+ )
1135
+ objectives: MutableSequence[StatsAnomaliesObjective] = proto.RepeatedField(
1136
+ proto.MESSAGE,
1137
+ number=4,
1138
+ message=StatsAnomaliesObjective,
1139
+ )
1140
+ page_size: int = proto.Field(
1141
+ proto.INT32,
1142
+ number=5,
1143
+ )
1144
+ page_token: str = proto.Field(
1145
+ proto.STRING,
1146
+ number=6,
1147
+ )
1148
+ start_time: timestamp_pb2.Timestamp = proto.Field(
1149
+ proto.MESSAGE,
1150
+ number=7,
1151
+ message=timestamp_pb2.Timestamp,
1152
+ )
1153
+ end_time: timestamp_pb2.Timestamp = proto.Field(
1154
+ proto.MESSAGE,
1155
+ number=8,
1156
+ message=timestamp_pb2.Timestamp,
1157
+ )
1158
+
1159
+
1160
+ class SearchModelDeploymentMonitoringStatsAnomaliesResponse(proto.Message):
1161
+ r"""Response message for
1162
+ [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1.JobService.SearchModelDeploymentMonitoringStatsAnomalies].
1163
+
1164
+ Attributes:
1165
+ monitoring_stats (MutableSequence[google.cloud.aiplatform_v1.types.ModelMonitoringStatsAnomalies]):
1166
+ Stats retrieved for requested objectives. There are at most
1167
+ 1000
1168
+ [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
1169
+ in the response.
1170
+ next_page_token (str):
1171
+ The page token that can be used by the next
1172
+ [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
1173
+ call.
1174
+ """
1175
+
1176
+ @property
1177
+ def raw_page(self):
1178
+ return self
1179
+
1180
+ monitoring_stats: MutableSequence[
1181
+ gca_model_deployment_monitoring_job.ModelMonitoringStatsAnomalies
1182
+ ] = proto.RepeatedField(
1183
+ proto.MESSAGE,
1184
+ number=1,
1185
+ message=gca_model_deployment_monitoring_job.ModelMonitoringStatsAnomalies,
1186
+ )
1187
+ next_page_token: str = proto.Field(
1188
+ proto.STRING,
1189
+ number=2,
1190
+ )
1191
+
1192
+
1193
+ class GetModelDeploymentMonitoringJobRequest(proto.Message):
1194
+ r"""Request message for
1195
+ [JobService.GetModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.GetModelDeploymentMonitoringJob].
1196
+
1197
+ Attributes:
1198
+ name (str):
1199
+ Required. The resource name of the
1200
+ ModelDeploymentMonitoringJob. Format:
1201
+ ``projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}``
1202
+ """
1203
+
1204
+ name: str = proto.Field(
1205
+ proto.STRING,
1206
+ number=1,
1207
+ )
1208
+
1209
+
1210
+ class ListModelDeploymentMonitoringJobsRequest(proto.Message):
1211
+ r"""Request message for
1212
+ [JobService.ListModelDeploymentMonitoringJobs][google.cloud.aiplatform.v1.JobService.ListModelDeploymentMonitoringJobs].
1213
+
1214
+ Attributes:
1215
+ parent (str):
1216
+ Required. The parent of the ModelDeploymentMonitoringJob.
1217
+ Format: ``projects/{project}/locations/{location}``
1218
+ filter (str):
1219
+ The standard list filter.
1220
+
1221
+ Supported fields:
1222
+
1223
+ - ``display_name`` supports ``=``, ``!=`` comparisons, and
1224
+ ``:`` wildcard.
1225
+ - ``state`` supports ``=``, ``!=`` comparisons.
1226
+ - ``create_time`` supports ``=``, ``!=``,\ ``<``,
1227
+ ``<=``,\ ``>``, ``>=`` comparisons. ``create_time`` must
1228
+ be in RFC 3339 format.
1229
+ - ``labels`` supports general map functions that is:
1230
+ ``labels.key=value`` - key:value equality \`labels.key:\*
1231
+ - key existence
1232
+
1233
+ Some examples of using the filter are:
1234
+
1235
+ - ``state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"``
1236
+ - ``state!="JOB_STATE_FAILED" OR display_name="my_job"``
1237
+ - ``NOT display_name="my_job"``
1238
+ - ``create_time>"2021-05-18T00:00:00Z"``
1239
+ - ``labels.keyA=valueA``
1240
+ - ``labels.keyB:*``
1241
+ page_size (int):
1242
+ The standard list page size.
1243
+ page_token (str):
1244
+ The standard list page token.
1245
+ read_mask (google.protobuf.field_mask_pb2.FieldMask):
1246
+ Mask specifying which fields to read
1247
+ """
1248
+
1249
+ parent: str = proto.Field(
1250
+ proto.STRING,
1251
+ number=1,
1252
+ )
1253
+ filter: str = proto.Field(
1254
+ proto.STRING,
1255
+ number=2,
1256
+ )
1257
+ page_size: int = proto.Field(
1258
+ proto.INT32,
1259
+ number=3,
1260
+ )
1261
+ page_token: str = proto.Field(
1262
+ proto.STRING,
1263
+ number=4,
1264
+ )
1265
+ read_mask: field_mask_pb2.FieldMask = proto.Field(
1266
+ proto.MESSAGE,
1267
+ number=5,
1268
+ message=field_mask_pb2.FieldMask,
1269
+ )
1270
+
1271
+
1272
+ class ListModelDeploymentMonitoringJobsResponse(proto.Message):
1273
+ r"""Response message for
1274
+ [JobService.ListModelDeploymentMonitoringJobs][google.cloud.aiplatform.v1.JobService.ListModelDeploymentMonitoringJobs].
1275
+
1276
+ Attributes:
1277
+ model_deployment_monitoring_jobs (MutableSequence[google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringJob]):
1278
+ A list of ModelDeploymentMonitoringJobs that
1279
+ matches the specified filter in the request.
1280
+ next_page_token (str):
1281
+ The standard List next-page token.
1282
+ """
1283
+
1284
+ @property
1285
+ def raw_page(self):
1286
+ return self
1287
+
1288
+ model_deployment_monitoring_jobs: MutableSequence[
1289
+ gca_model_deployment_monitoring_job.ModelDeploymentMonitoringJob
1290
+ ] = proto.RepeatedField(
1291
+ proto.MESSAGE,
1292
+ number=1,
1293
+ message=gca_model_deployment_monitoring_job.ModelDeploymentMonitoringJob,
1294
+ )
1295
+ next_page_token: str = proto.Field(
1296
+ proto.STRING,
1297
+ number=2,
1298
+ )
1299
+
1300
+
1301
+ class UpdateModelDeploymentMonitoringJobRequest(proto.Message):
1302
+ r"""Request message for
1303
+ [JobService.UpdateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.UpdateModelDeploymentMonitoringJob].
1304
+
1305
+ Attributes:
1306
+ model_deployment_monitoring_job (google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringJob):
1307
+ Required. The model monitoring configuration
1308
+ which replaces the resource on the server.
1309
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
1310
+ Required. The update mask is used to specify the fields to
1311
+ be overwritten in the ModelDeploymentMonitoringJob resource
1312
+ by the update. The fields specified in the update_mask are
1313
+ relative to the resource, not the full request. A field will
1314
+ be overwritten if it is in the mask. If the user does not
1315
+ provide a mask then only the non-empty fields present in the
1316
+ request will be overwritten. Set the update_mask to ``*`` to
1317
+ override all fields. For the objective config, the user can
1318
+ either provide the update mask for
1319
+ model_deployment_monitoring_objective_configs or any
1320
+ combination of its nested fields, such as:
1321
+ model_deployment_monitoring_objective_configs.objective_config.training_dataset.
1322
+
1323
+ Updatable fields:
1324
+
1325
+ - ``display_name``
1326
+ - ``model_deployment_monitoring_schedule_config``
1327
+ - ``model_monitoring_alert_config``
1328
+ - ``logging_sampling_strategy``
1329
+ - ``labels``
1330
+ - ``log_ttl``
1331
+ - ``enable_monitoring_pipeline_logs`` . and
1332
+ - ``model_deployment_monitoring_objective_configs`` . or
1333
+ - ``model_deployment_monitoring_objective_configs.objective_config.training_dataset``
1334
+ - ``model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config``
1335
+ - ``model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config``
1336
+ """
1337
+
1338
+ model_deployment_monitoring_job: (
1339
+ gca_model_deployment_monitoring_job.ModelDeploymentMonitoringJob
1340
+ ) = proto.Field(
1341
+ proto.MESSAGE,
1342
+ number=1,
1343
+ message=gca_model_deployment_monitoring_job.ModelDeploymentMonitoringJob,
1344
+ )
1345
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
1346
+ proto.MESSAGE,
1347
+ number=2,
1348
+ message=field_mask_pb2.FieldMask,
1349
+ )
1350
+
1351
+
1352
+ class DeleteModelDeploymentMonitoringJobRequest(proto.Message):
1353
+ r"""Request message for
1354
+ [JobService.DeleteModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.DeleteModelDeploymentMonitoringJob].
1355
+
1356
+ Attributes:
1357
+ name (str):
1358
+ Required. The resource name of the model monitoring job to
1359
+ delete. Format:
1360
+ ``projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}``
1361
+ """
1362
+
1363
+ name: str = proto.Field(
1364
+ proto.STRING,
1365
+ number=1,
1366
+ )
1367
+
1368
+
1369
+ class PauseModelDeploymentMonitoringJobRequest(proto.Message):
1370
+ r"""Request message for
1371
+ [JobService.PauseModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.PauseModelDeploymentMonitoringJob].
1372
+
1373
+ Attributes:
1374
+ name (str):
1375
+ Required. The resource name of the
1376
+ ModelDeploymentMonitoringJob to pause. Format:
1377
+ ``projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}``
1378
+ """
1379
+
1380
+ name: str = proto.Field(
1381
+ proto.STRING,
1382
+ number=1,
1383
+ )
1384
+
1385
+
1386
+ class ResumeModelDeploymentMonitoringJobRequest(proto.Message):
1387
+ r"""Request message for
1388
+ [JobService.ResumeModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.ResumeModelDeploymentMonitoringJob].
1389
+
1390
+ Attributes:
1391
+ name (str):
1392
+ Required. The resource name of the
1393
+ ModelDeploymentMonitoringJob to resume. Format:
1394
+ ``projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}``
1395
+ """
1396
+
1397
+ name: str = proto.Field(
1398
+ proto.STRING,
1399
+ number=1,
1400
+ )
1401
+
1402
+
1403
+ class UpdateModelDeploymentMonitoringJobOperationMetadata(proto.Message):
1404
+ r"""Runtime operation information for
1405
+ [JobService.UpdateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.UpdateModelDeploymentMonitoringJob].
1406
+
1407
+ Attributes:
1408
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1409
+ The operation generic information.
1410
+ """
1411
+
1412
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1413
+ proto.MESSAGE,
1414
+ number=1,
1415
+ message=operation.GenericOperationMetadata,
1416
+ )
1417
+
1418
+
1419
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/job_state.py ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+
23
+ __protobuf__ = proto.module(
24
+ package="google.cloud.aiplatform.v1",
25
+ manifest={
26
+ "JobState",
27
+ },
28
+ )
29
+
30
+
31
+ class JobState(proto.Enum):
32
+ r"""Describes the state of a job.
33
+
34
+ Values:
35
+ JOB_STATE_UNSPECIFIED (0):
36
+ The job state is unspecified.
37
+ JOB_STATE_QUEUED (1):
38
+ The job has been just created or resumed and
39
+ processing has not yet begun.
40
+ JOB_STATE_PENDING (2):
41
+ The service is preparing to run the job.
42
+ JOB_STATE_RUNNING (3):
43
+ The job is in progress.
44
+ JOB_STATE_SUCCEEDED (4):
45
+ The job completed successfully.
46
+ JOB_STATE_FAILED (5):
47
+ The job failed.
48
+ JOB_STATE_CANCELLING (6):
49
+ The job is being cancelled. From this state the job may only
50
+ go to either ``JOB_STATE_SUCCEEDED``, ``JOB_STATE_FAILED``
51
+ or ``JOB_STATE_CANCELLED``.
52
+ JOB_STATE_CANCELLED (7):
53
+ The job has been cancelled.
54
+ JOB_STATE_PAUSED (8):
55
+ The job has been stopped, and can be resumed.
56
+ JOB_STATE_EXPIRED (9):
57
+ The job has expired.
58
+ JOB_STATE_UPDATING (10):
59
+ The job is being updated. Only jobs in the ``RUNNING`` state
60
+ can be updated. After updating, the job goes back to the
61
+ ``RUNNING`` state.
62
+ JOB_STATE_PARTIALLY_SUCCEEDED (11):
63
+ The job is partially succeeded, some results
64
+ may be missing due to errors.
65
+ """
66
+
67
+ JOB_STATE_UNSPECIFIED = 0
68
+ JOB_STATE_QUEUED = 1
69
+ JOB_STATE_PENDING = 2
70
+ JOB_STATE_RUNNING = 3
71
+ JOB_STATE_SUCCEEDED = 4
72
+ JOB_STATE_FAILED = 5
73
+ JOB_STATE_CANCELLING = 6
74
+ JOB_STATE_CANCELLED = 7
75
+ JOB_STATE_PAUSED = 8
76
+ JOB_STATE_EXPIRED = 9
77
+ JOB_STATE_UPDATING = 10
78
+ JOB_STATE_PARTIALLY_SUCCEEDED = 11
79
+
80
+
81
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/lineage_subgraph.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import artifact
23
+ from google.cloud.aiplatform_v1.types import event
24
+ from google.cloud.aiplatform_v1.types import execution
25
+
26
+
27
+ __protobuf__ = proto.module(
28
+ package="google.cloud.aiplatform.v1",
29
+ manifest={
30
+ "LineageSubgraph",
31
+ },
32
+ )
33
+
34
+
35
+ class LineageSubgraph(proto.Message):
36
+ r"""A subgraph of the overall lineage graph. Event edges connect
37
+ Artifact and Execution nodes.
38
+
39
+ Attributes:
40
+ artifacts (MutableSequence[google.cloud.aiplatform_v1.types.Artifact]):
41
+ The Artifact nodes in the subgraph.
42
+ executions (MutableSequence[google.cloud.aiplatform_v1.types.Execution]):
43
+ The Execution nodes in the subgraph.
44
+ events (MutableSequence[google.cloud.aiplatform_v1.types.Event]):
45
+ The Event edges between Artifacts and
46
+ Executions in the subgraph.
47
+ """
48
+
49
+ artifacts: MutableSequence[artifact.Artifact] = proto.RepeatedField(
50
+ proto.MESSAGE,
51
+ number=1,
52
+ message=artifact.Artifact,
53
+ )
54
+ executions: MutableSequence[execution.Execution] = proto.RepeatedField(
55
+ proto.MESSAGE,
56
+ number=2,
57
+ message=execution.Execution,
58
+ )
59
+ events: MutableSequence[event.Event] = proto.RepeatedField(
60
+ proto.MESSAGE,
61
+ number=3,
62
+ message=event.Event,
63
+ )
64
+
65
+
66
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/match_service.py ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import index
23
+
24
+
25
+ __protobuf__ = proto.module(
26
+ package="google.cloud.aiplatform.v1",
27
+ manifest={
28
+ "FindNeighborsRequest",
29
+ "FindNeighborsResponse",
30
+ "ReadIndexDatapointsRequest",
31
+ "ReadIndexDatapointsResponse",
32
+ },
33
+ )
34
+
35
+
36
+ class FindNeighborsRequest(proto.Message):
37
+ r"""The request message for
38
+ [MatchService.FindNeighbors][google.cloud.aiplatform.v1.MatchService.FindNeighbors].
39
+
40
+ Attributes:
41
+ index_endpoint (str):
42
+ Required. The name of the index endpoint. Format:
43
+ ``projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}``
44
+ deployed_index_id (str):
45
+ The ID of the DeployedIndex that will serve the request.
46
+ This request is sent to a specific IndexEndpoint, as per the
47
+ IndexEndpoint.network. That IndexEndpoint also has
48
+ IndexEndpoint.deployed_indexes, and each such index has a
49
+ DeployedIndex.id field. The value of the field below must
50
+ equal one of the DeployedIndex.id fields of the
51
+ IndexEndpoint that is being called for this request.
52
+ queries (MutableSequence[google.cloud.aiplatform_v1.types.FindNeighborsRequest.Query]):
53
+ The list of queries.
54
+ return_full_datapoint (bool):
55
+ If set to true, the full datapoints
56
+ (including all vector values and restricts) of
57
+ the nearest neighbors are returned. Note that
58
+ returning full datapoint will significantly
59
+ increase the latency and cost of the query.
60
+ """
61
+
62
+ class Query(proto.Message):
63
+ r"""A query to find a number of the nearest neighbors (most
64
+ similar vectors) of a vector.
65
+
66
+
67
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
68
+
69
+ Attributes:
70
+ rrf (google.cloud.aiplatform_v1.types.FindNeighborsRequest.Query.RRF):
71
+ Optional. Represents RRF algorithm that
72
+ combines search results.
73
+
74
+ This field is a member of `oneof`_ ``ranking``.
75
+ datapoint (google.cloud.aiplatform_v1.types.IndexDatapoint):
76
+ Required. The datapoint/vector whose nearest
77
+ neighbors should be searched for.
78
+ neighbor_count (int):
79
+ The number of nearest neighbors to be
80
+ retrieved from database for each query. If not
81
+ set, will use the default from the service
82
+ configuration
83
+ (https://cloud.google.com/vertex-ai/docs/matching-engine/configuring-indexes#nearest-neighbor-search-config).
84
+ per_crowding_attribute_neighbor_count (int):
85
+ Crowding is a constraint on a neighbor list produced by
86
+ nearest neighbor search requiring that no more than some
87
+ value k' of the k neighbors returned have the same value of
88
+ crowding_attribute. It's used for improving result
89
+ diversity. This field is the maximum number of matches with
90
+ the same crowding tag.
91
+ approximate_neighbor_count (int):
92
+ The number of neighbors to find via
93
+ approximate search before exact reordering is
94
+ performed. If not set, the default value from
95
+ scam config is used; if set, this value must be
96
+ > 0.
97
+ fraction_leaf_nodes_to_search_override (float):
98
+ The fraction of the number of leaves to search, set at query
99
+ time allows user to tune search performance. This value
100
+ increase result in both search accuracy and latency
101
+ increase. The value should be between 0.0 and 1.0. If not
102
+ set or set to 0.0, query uses the default value specified in
103
+ NearestNeighborSearchConfig.TreeAHConfig.fraction_leaf_nodes_to_search.
104
+ """
105
+
106
+ class RRF(proto.Message):
107
+ r"""Parameters for RRF algorithm that combines search results.
108
+
109
+ Attributes:
110
+ alpha (float):
111
+ Required. Users can provide an alpha value to
112
+ give more weight to dense vs sparse results. For
113
+ example, if the alpha is 0, we only return
114
+ sparse and if the alpha is 1, we only return
115
+ dense.
116
+ """
117
+
118
+ alpha: float = proto.Field(
119
+ proto.FLOAT,
120
+ number=1,
121
+ )
122
+
123
+ rrf: "FindNeighborsRequest.Query.RRF" = proto.Field(
124
+ proto.MESSAGE,
125
+ number=6,
126
+ oneof="ranking",
127
+ message="FindNeighborsRequest.Query.RRF",
128
+ )
129
+ datapoint: index.IndexDatapoint = proto.Field(
130
+ proto.MESSAGE,
131
+ number=1,
132
+ message=index.IndexDatapoint,
133
+ )
134
+ neighbor_count: int = proto.Field(
135
+ proto.INT32,
136
+ number=2,
137
+ )
138
+ per_crowding_attribute_neighbor_count: int = proto.Field(
139
+ proto.INT32,
140
+ number=3,
141
+ )
142
+ approximate_neighbor_count: int = proto.Field(
143
+ proto.INT32,
144
+ number=4,
145
+ )
146
+ fraction_leaf_nodes_to_search_override: float = proto.Field(
147
+ proto.DOUBLE,
148
+ number=5,
149
+ )
150
+
151
+ index_endpoint: str = proto.Field(
152
+ proto.STRING,
153
+ number=1,
154
+ )
155
+ deployed_index_id: str = proto.Field(
156
+ proto.STRING,
157
+ number=2,
158
+ )
159
+ queries: MutableSequence[Query] = proto.RepeatedField(
160
+ proto.MESSAGE,
161
+ number=3,
162
+ message=Query,
163
+ )
164
+ return_full_datapoint: bool = proto.Field(
165
+ proto.BOOL,
166
+ number=4,
167
+ )
168
+
169
+
170
+ class FindNeighborsResponse(proto.Message):
171
+ r"""The response message for
172
+ [MatchService.FindNeighbors][google.cloud.aiplatform.v1.MatchService.FindNeighbors].
173
+
174
+ Attributes:
175
+ nearest_neighbors (MutableSequence[google.cloud.aiplatform_v1.types.FindNeighborsResponse.NearestNeighbors]):
176
+ The nearest neighbors of the query
177
+ datapoints.
178
+ """
179
+
180
+ class Neighbor(proto.Message):
181
+ r"""A neighbor of the query vector.
182
+
183
+ Attributes:
184
+ datapoint (google.cloud.aiplatform_v1.types.IndexDatapoint):
185
+ The datapoint of the neighbor. Note that full datapoints are
186
+ returned only when "return_full_datapoint" is set to true.
187
+ Otherwise, only the "datapoint_id" and "crowding_tag" fields
188
+ are populated.
189
+ distance (float):
190
+ The distance between the neighbor and the
191
+ dense embedding query.
192
+ sparse_distance (float):
193
+ The distance between the neighbor and the query
194
+ sparse_embedding.
195
+ """
196
+
197
+ datapoint: index.IndexDatapoint = proto.Field(
198
+ proto.MESSAGE,
199
+ number=1,
200
+ message=index.IndexDatapoint,
201
+ )
202
+ distance: float = proto.Field(
203
+ proto.DOUBLE,
204
+ number=2,
205
+ )
206
+ sparse_distance: float = proto.Field(
207
+ proto.DOUBLE,
208
+ number=3,
209
+ )
210
+
211
+ class NearestNeighbors(proto.Message):
212
+ r"""Nearest neighbors for one query.
213
+
214
+ Attributes:
215
+ id (str):
216
+ The ID of the query datapoint.
217
+ neighbors (MutableSequence[google.cloud.aiplatform_v1.types.FindNeighborsResponse.Neighbor]):
218
+ All its neighbors.
219
+ """
220
+
221
+ id: str = proto.Field(
222
+ proto.STRING,
223
+ number=1,
224
+ )
225
+ neighbors: MutableSequence["FindNeighborsResponse.Neighbor"] = (
226
+ proto.RepeatedField(
227
+ proto.MESSAGE,
228
+ number=2,
229
+ message="FindNeighborsResponse.Neighbor",
230
+ )
231
+ )
232
+
233
+ nearest_neighbors: MutableSequence[NearestNeighbors] = proto.RepeatedField(
234
+ proto.MESSAGE,
235
+ number=1,
236
+ message=NearestNeighbors,
237
+ )
238
+
239
+
240
+ class ReadIndexDatapointsRequest(proto.Message):
241
+ r"""The request message for
242
+ [MatchService.ReadIndexDatapoints][google.cloud.aiplatform.v1.MatchService.ReadIndexDatapoints].
243
+
244
+ Attributes:
245
+ index_endpoint (str):
246
+ Required. The name of the index endpoint. Format:
247
+ ``projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}``
248
+ deployed_index_id (str):
249
+ The ID of the DeployedIndex that will serve
250
+ the request.
251
+ ids (MutableSequence[str]):
252
+ IDs of the datapoints to be searched for.
253
+ """
254
+
255
+ index_endpoint: str = proto.Field(
256
+ proto.STRING,
257
+ number=1,
258
+ )
259
+ deployed_index_id: str = proto.Field(
260
+ proto.STRING,
261
+ number=2,
262
+ )
263
+ ids: MutableSequence[str] = proto.RepeatedField(
264
+ proto.STRING,
265
+ number=3,
266
+ )
267
+
268
+
269
+ class ReadIndexDatapointsResponse(proto.Message):
270
+ r"""The response message for
271
+ [MatchService.ReadIndexDatapoints][google.cloud.aiplatform.v1.MatchService.ReadIndexDatapoints].
272
+
273
+ Attributes:
274
+ datapoints (MutableSequence[google.cloud.aiplatform_v1.types.IndexDatapoint]):
275
+ The result list of datapoints.
276
+ """
277
+
278
+ datapoints: MutableSequence[index.IndexDatapoint] = proto.RepeatedField(
279
+ proto.MESSAGE,
280
+ number=1,
281
+ message=index.IndexDatapoint,
282
+ )
283
+
284
+
285
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/metadata_service.py ADDED
@@ -0,0 +1,1568 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import artifact as gca_artifact
23
+ from google.cloud.aiplatform_v1.types import context as gca_context
24
+ from google.cloud.aiplatform_v1.types import event
25
+ from google.cloud.aiplatform_v1.types import execution as gca_execution
26
+ from google.cloud.aiplatform_v1.types import metadata_schema as gca_metadata_schema
27
+ from google.cloud.aiplatform_v1.types import metadata_store as gca_metadata_store
28
+ from google.cloud.aiplatform_v1.types import operation
29
+ import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
30
+
31
+
32
+ __protobuf__ = proto.module(
33
+ package="google.cloud.aiplatform.v1",
34
+ manifest={
35
+ "CreateMetadataStoreRequest",
36
+ "CreateMetadataStoreOperationMetadata",
37
+ "GetMetadataStoreRequest",
38
+ "ListMetadataStoresRequest",
39
+ "ListMetadataStoresResponse",
40
+ "DeleteMetadataStoreRequest",
41
+ "DeleteMetadataStoreOperationMetadata",
42
+ "CreateArtifactRequest",
43
+ "GetArtifactRequest",
44
+ "ListArtifactsRequest",
45
+ "ListArtifactsResponse",
46
+ "UpdateArtifactRequest",
47
+ "DeleteArtifactRequest",
48
+ "PurgeArtifactsRequest",
49
+ "PurgeArtifactsResponse",
50
+ "PurgeArtifactsMetadata",
51
+ "CreateContextRequest",
52
+ "GetContextRequest",
53
+ "ListContextsRequest",
54
+ "ListContextsResponse",
55
+ "UpdateContextRequest",
56
+ "DeleteContextRequest",
57
+ "PurgeContextsRequest",
58
+ "PurgeContextsResponse",
59
+ "PurgeContextsMetadata",
60
+ "AddContextArtifactsAndExecutionsRequest",
61
+ "AddContextArtifactsAndExecutionsResponse",
62
+ "AddContextChildrenRequest",
63
+ "AddContextChildrenResponse",
64
+ "RemoveContextChildrenRequest",
65
+ "RemoveContextChildrenResponse",
66
+ "QueryContextLineageSubgraphRequest",
67
+ "CreateExecutionRequest",
68
+ "GetExecutionRequest",
69
+ "ListExecutionsRequest",
70
+ "ListExecutionsResponse",
71
+ "UpdateExecutionRequest",
72
+ "DeleteExecutionRequest",
73
+ "PurgeExecutionsRequest",
74
+ "PurgeExecutionsResponse",
75
+ "PurgeExecutionsMetadata",
76
+ "AddExecutionEventsRequest",
77
+ "AddExecutionEventsResponse",
78
+ "QueryExecutionInputsAndOutputsRequest",
79
+ "CreateMetadataSchemaRequest",
80
+ "GetMetadataSchemaRequest",
81
+ "ListMetadataSchemasRequest",
82
+ "ListMetadataSchemasResponse",
83
+ "QueryArtifactLineageSubgraphRequest",
84
+ },
85
+ )
86
+
87
+
88
+ class CreateMetadataStoreRequest(proto.Message):
89
+ r"""Request message for
90
+ [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1.MetadataService.CreateMetadataStore].
91
+
92
+ Attributes:
93
+ parent (str):
94
+ Required. The resource name of the Location where the
95
+ MetadataStore should be created. Format:
96
+ ``projects/{project}/locations/{location}/``
97
+ metadata_store (google.cloud.aiplatform_v1.types.MetadataStore):
98
+ Required. The MetadataStore to create.
99
+ metadata_store_id (str):
100
+ The {metadatastore} portion of the resource name with the
101
+ format:
102
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
103
+ If not provided, the MetadataStore's ID will be a UUID
104
+ generated by the service. Must be 4-128 characters in
105
+ length. Valid characters are ``/[a-z][0-9]-/``. Must be
106
+ unique across all MetadataStores in the parent Location.
107
+ (Otherwise the request will fail with ALREADY_EXISTS, or
108
+ PERMISSION_DENIED if the caller can't view the preexisting
109
+ MetadataStore.)
110
+ """
111
+
112
+ parent: str = proto.Field(
113
+ proto.STRING,
114
+ number=1,
115
+ )
116
+ metadata_store: gca_metadata_store.MetadataStore = proto.Field(
117
+ proto.MESSAGE,
118
+ number=2,
119
+ message=gca_metadata_store.MetadataStore,
120
+ )
121
+ metadata_store_id: str = proto.Field(
122
+ proto.STRING,
123
+ number=3,
124
+ )
125
+
126
+
127
+ class CreateMetadataStoreOperationMetadata(proto.Message):
128
+ r"""Details of operations that perform
129
+ [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1.MetadataService.CreateMetadataStore].
130
+
131
+ Attributes:
132
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
133
+ Operation metadata for creating a
134
+ MetadataStore.
135
+ """
136
+
137
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
138
+ proto.MESSAGE,
139
+ number=1,
140
+ message=operation.GenericOperationMetadata,
141
+ )
142
+
143
+
144
+ class GetMetadataStoreRequest(proto.Message):
145
+ r"""Request message for
146
+ [MetadataService.GetMetadataStore][google.cloud.aiplatform.v1.MetadataService.GetMetadataStore].
147
+
148
+ Attributes:
149
+ name (str):
150
+ Required. The resource name of the MetadataStore to
151
+ retrieve. Format:
152
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
153
+ """
154
+
155
+ name: str = proto.Field(
156
+ proto.STRING,
157
+ number=1,
158
+ )
159
+
160
+
161
+ class ListMetadataStoresRequest(proto.Message):
162
+ r"""Request message for
163
+ [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1.MetadataService.ListMetadataStores].
164
+
165
+ Attributes:
166
+ parent (str):
167
+ Required. The Location whose MetadataStores should be
168
+ listed. Format: ``projects/{project}/locations/{location}``
169
+ page_size (int):
170
+ The maximum number of Metadata Stores to
171
+ return. The service may return fewer.
172
+ Must be in range 1-1000, inclusive. Defaults to
173
+ 100.
174
+ page_token (str):
175
+ A page token, received from a previous
176
+ [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1.MetadataService.ListMetadataStores]
177
+ call. Provide this to retrieve the subsequent page.
178
+
179
+ When paginating, all other provided parameters must match
180
+ the call that provided the page token. (Otherwise the
181
+ request will fail with INVALID_ARGUMENT error.)
182
+ """
183
+
184
+ parent: str = proto.Field(
185
+ proto.STRING,
186
+ number=1,
187
+ )
188
+ page_size: int = proto.Field(
189
+ proto.INT32,
190
+ number=2,
191
+ )
192
+ page_token: str = proto.Field(
193
+ proto.STRING,
194
+ number=3,
195
+ )
196
+
197
+
198
+ class ListMetadataStoresResponse(proto.Message):
199
+ r"""Response message for
200
+ [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1.MetadataService.ListMetadataStores].
201
+
202
+ Attributes:
203
+ metadata_stores (MutableSequence[google.cloud.aiplatform_v1.types.MetadataStore]):
204
+ The MetadataStores found for the Location.
205
+ next_page_token (str):
206
+ A token, which can be sent as
207
+ [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1.ListMetadataStoresRequest.page_token]
208
+ to retrieve the next page. If this field is not populated,
209
+ there are no subsequent pages.
210
+ """
211
+
212
+ @property
213
+ def raw_page(self):
214
+ return self
215
+
216
+ metadata_stores: MutableSequence[gca_metadata_store.MetadataStore] = (
217
+ proto.RepeatedField(
218
+ proto.MESSAGE,
219
+ number=1,
220
+ message=gca_metadata_store.MetadataStore,
221
+ )
222
+ )
223
+ next_page_token: str = proto.Field(
224
+ proto.STRING,
225
+ number=2,
226
+ )
227
+
228
+
229
+ class DeleteMetadataStoreRequest(proto.Message):
230
+ r"""Request message for
231
+ [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStore].
232
+
233
+ Attributes:
234
+ name (str):
235
+ Required. The resource name of the MetadataStore to delete.
236
+ Format:
237
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
238
+ force (bool):
239
+ Deprecated: Field is no longer supported.
240
+ """
241
+
242
+ name: str = proto.Field(
243
+ proto.STRING,
244
+ number=1,
245
+ )
246
+ force: bool = proto.Field(
247
+ proto.BOOL,
248
+ number=2,
249
+ )
250
+
251
+
252
+ class DeleteMetadataStoreOperationMetadata(proto.Message):
253
+ r"""Details of operations that perform
254
+ [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStore].
255
+
256
+ Attributes:
257
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
258
+ Operation metadata for deleting a
259
+ MetadataStore.
260
+ """
261
+
262
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
263
+ proto.MESSAGE,
264
+ number=1,
265
+ message=operation.GenericOperationMetadata,
266
+ )
267
+
268
+
269
+ class CreateArtifactRequest(proto.Message):
270
+ r"""Request message for
271
+ [MetadataService.CreateArtifact][google.cloud.aiplatform.v1.MetadataService.CreateArtifact].
272
+
273
+ Attributes:
274
+ parent (str):
275
+ Required. The resource name of the MetadataStore where the
276
+ Artifact should be created. Format:
277
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
278
+ artifact (google.cloud.aiplatform_v1.types.Artifact):
279
+ Required. The Artifact to create.
280
+ artifact_id (str):
281
+ The {artifact} portion of the resource name with the format:
282
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}``
283
+ If not provided, the Artifact's ID will be a UUID generated
284
+ by the service. Must be 4-128 characters in length. Valid
285
+ characters are ``/[a-z][0-9]-/``. Must be unique across all
286
+ Artifacts in the parent MetadataStore. (Otherwise the
287
+ request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
288
+ if the caller can't view the preexisting Artifact.)
289
+ """
290
+
291
+ parent: str = proto.Field(
292
+ proto.STRING,
293
+ number=1,
294
+ )
295
+ artifact: gca_artifact.Artifact = proto.Field(
296
+ proto.MESSAGE,
297
+ number=2,
298
+ message=gca_artifact.Artifact,
299
+ )
300
+ artifact_id: str = proto.Field(
301
+ proto.STRING,
302
+ number=3,
303
+ )
304
+
305
+
306
+ class GetArtifactRequest(proto.Message):
307
+ r"""Request message for
308
+ [MetadataService.GetArtifact][google.cloud.aiplatform.v1.MetadataService.GetArtifact].
309
+
310
+ Attributes:
311
+ name (str):
312
+ Required. The resource name of the Artifact to retrieve.
313
+ Format:
314
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}``
315
+ """
316
+
317
+ name: str = proto.Field(
318
+ proto.STRING,
319
+ number=1,
320
+ )
321
+
322
+
323
+ class ListArtifactsRequest(proto.Message):
324
+ r"""Request message for
325
+ [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts].
326
+
327
+ Attributes:
328
+ parent (str):
329
+ Required. The MetadataStore whose Artifacts should be
330
+ listed. Format:
331
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
332
+ page_size (int):
333
+ The maximum number of Artifacts to return.
334
+ The service may return fewer. Must be in range
335
+ 1-1000, inclusive. Defaults to 100.
336
+ page_token (str):
337
+ A page token, received from a previous
338
+ [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts]
339
+ call. Provide this to retrieve the subsequent page.
340
+
341
+ When paginating, all other provided parameters must match
342
+ the call that provided the page token. (Otherwise the
343
+ request will fail with INVALID_ARGUMENT error.)
344
+ filter (str):
345
+ Filter specifying the boolean condition for the Artifacts to
346
+ satisfy in order to be part of the result set. The syntax to
347
+ define filter query is based on https://google.aip.dev/160.
348
+ The supported set of filters include the following:
349
+
350
+ - **Attribute filtering**: For example:
351
+ ``display_name = "test"``. Supported fields include:
352
+ ``name``, ``display_name``, ``uri``, ``state``,
353
+ ``schema_title``, ``create_time``, and ``update_time``.
354
+ Time fields, such as ``create_time`` and ``update_time``,
355
+ require values specified in RFC-3339 format. For example:
356
+ ``create_time = "2020-11-19T11:30:00-04:00"``
357
+ - **Metadata field**: To filter on metadata fields use
358
+ traversal operation as follows:
359
+ ``metadata.<field_name>.<type_value>``. For example:
360
+ ``metadata.field_1.number_value = 10.0`` In case the field
361
+ name contains special characters (such as colon), one can
362
+ embed it inside double quote. For example:
363
+ ``metadata."field:1".number_value = 10.0``
364
+ - **Context based filtering**: To filter Artifacts based on
365
+ the contexts to which they belong, use the function
366
+ operator with the full resource name
367
+ ``in_context(<context-name>)``. For example:
368
+ ``in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")``
369
+
370
+ Each of the above supported filter types can be combined
371
+ together using logical operators (``AND`` & ``OR``). Maximum
372
+ nested expression depth allowed is 5.
373
+
374
+ For example:
375
+ ``display_name = "test" AND metadata.field1.bool_value = true``.
376
+ order_by (str):
377
+ How the list of messages is ordered. Specify the values to
378
+ order by and an ordering operation. The default sorting
379
+ order is ascending. To specify descending order for a field,
380
+ users append a " desc" suffix; for example: "foo desc, bar".
381
+ Subfields are specified with a ``.`` character, such as
382
+ foo.bar. see https://google.aip.dev/132#ordering for more
383
+ details.
384
+ """
385
+
386
+ parent: str = proto.Field(
387
+ proto.STRING,
388
+ number=1,
389
+ )
390
+ page_size: int = proto.Field(
391
+ proto.INT32,
392
+ number=2,
393
+ )
394
+ page_token: str = proto.Field(
395
+ proto.STRING,
396
+ number=3,
397
+ )
398
+ filter: str = proto.Field(
399
+ proto.STRING,
400
+ number=4,
401
+ )
402
+ order_by: str = proto.Field(
403
+ proto.STRING,
404
+ number=5,
405
+ )
406
+
407
+
408
+ class ListArtifactsResponse(proto.Message):
409
+ r"""Response message for
410
+ [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts].
411
+
412
+ Attributes:
413
+ artifacts (MutableSequence[google.cloud.aiplatform_v1.types.Artifact]):
414
+ The Artifacts retrieved from the
415
+ MetadataStore.
416
+ next_page_token (str):
417
+ A token, which can be sent as
418
+ [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1.ListArtifactsRequest.page_token]
419
+ to retrieve the next page. If this field is not populated,
420
+ there are no subsequent pages.
421
+ """
422
+
423
+ @property
424
+ def raw_page(self):
425
+ return self
426
+
427
+ artifacts: MutableSequence[gca_artifact.Artifact] = proto.RepeatedField(
428
+ proto.MESSAGE,
429
+ number=1,
430
+ message=gca_artifact.Artifact,
431
+ )
432
+ next_page_token: str = proto.Field(
433
+ proto.STRING,
434
+ number=2,
435
+ )
436
+
437
+
438
+ class UpdateArtifactRequest(proto.Message):
439
+ r"""Request message for
440
+ [MetadataService.UpdateArtifact][google.cloud.aiplatform.v1.MetadataService.UpdateArtifact].
441
+
442
+ Attributes:
443
+ artifact (google.cloud.aiplatform_v1.types.Artifact):
444
+ Required. The Artifact containing updates. The Artifact's
445
+ [Artifact.name][google.cloud.aiplatform.v1.Artifact.name]
446
+ field is used to identify the Artifact to be updated.
447
+ Format:
448
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}``
449
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
450
+ Optional. A FieldMask indicating which fields
451
+ should be updated.
452
+ allow_missing (bool):
453
+ If set to true, and the
454
+ [Artifact][google.cloud.aiplatform.v1.Artifact] is not
455
+ found, a new [Artifact][google.cloud.aiplatform.v1.Artifact]
456
+ is created.
457
+ """
458
+
459
+ artifact: gca_artifact.Artifact = proto.Field(
460
+ proto.MESSAGE,
461
+ number=1,
462
+ message=gca_artifact.Artifact,
463
+ )
464
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
465
+ proto.MESSAGE,
466
+ number=2,
467
+ message=field_mask_pb2.FieldMask,
468
+ )
469
+ allow_missing: bool = proto.Field(
470
+ proto.BOOL,
471
+ number=3,
472
+ )
473
+
474
+
475
+ class DeleteArtifactRequest(proto.Message):
476
+ r"""Request message for
477
+ [MetadataService.DeleteArtifact][google.cloud.aiplatform.v1.MetadataService.DeleteArtifact].
478
+
479
+ Attributes:
480
+ name (str):
481
+ Required. The resource name of the Artifact to delete.
482
+ Format:
483
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}``
484
+ etag (str):
485
+ Optional. The etag of the Artifact to delete. If this is
486
+ provided, it must match the server's etag. Otherwise, the
487
+ request will fail with a FAILED_PRECONDITION.
488
+ """
489
+
490
+ name: str = proto.Field(
491
+ proto.STRING,
492
+ number=1,
493
+ )
494
+ etag: str = proto.Field(
495
+ proto.STRING,
496
+ number=2,
497
+ )
498
+
499
+
500
+ class PurgeArtifactsRequest(proto.Message):
501
+ r"""Request message for
502
+ [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts].
503
+
504
+ Attributes:
505
+ parent (str):
506
+ Required. The metadata store to purge Artifacts from.
507
+ Format:
508
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
509
+ filter (str):
510
+ Required. A required filter matching the Artifacts to be
511
+ purged. E.g., ``update_time <= 2020-11-19T11:30:00-04:00``.
512
+ force (bool):
513
+ Optional. Flag to indicate to actually perform the purge. If
514
+ ``force`` is set to false, the method will return a sample
515
+ of Artifact names that would be deleted.
516
+ """
517
+
518
+ parent: str = proto.Field(
519
+ proto.STRING,
520
+ number=1,
521
+ )
522
+ filter: str = proto.Field(
523
+ proto.STRING,
524
+ number=2,
525
+ )
526
+ force: bool = proto.Field(
527
+ proto.BOOL,
528
+ number=3,
529
+ )
530
+
531
+
532
+ class PurgeArtifactsResponse(proto.Message):
533
+ r"""Response message for
534
+ [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts].
535
+
536
+ Attributes:
537
+ purge_count (int):
538
+ The number of Artifacts that this request deleted (or, if
539
+ ``force`` is false, the number of Artifacts that will be
540
+ deleted). This can be an estimate.
541
+ purge_sample (MutableSequence[str]):
542
+ A sample of the Artifact names that will be deleted. Only
543
+ populated if ``force`` is set to false. The maximum number
544
+ of samples is 100 (it is possible to return fewer).
545
+ """
546
+
547
+ purge_count: int = proto.Field(
548
+ proto.INT64,
549
+ number=1,
550
+ )
551
+ purge_sample: MutableSequence[str] = proto.RepeatedField(
552
+ proto.STRING,
553
+ number=2,
554
+ )
555
+
556
+
557
+ class PurgeArtifactsMetadata(proto.Message):
558
+ r"""Details of operations that perform
559
+ [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts].
560
+
561
+ Attributes:
562
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
563
+ Operation metadata for purging Artifacts.
564
+ """
565
+
566
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
567
+ proto.MESSAGE,
568
+ number=1,
569
+ message=operation.GenericOperationMetadata,
570
+ )
571
+
572
+
573
+ class CreateContextRequest(proto.Message):
574
+ r"""Request message for
575
+ [MetadataService.CreateContext][google.cloud.aiplatform.v1.MetadataService.CreateContext].
576
+
577
+ Attributes:
578
+ parent (str):
579
+ Required. The resource name of the MetadataStore where the
580
+ Context should be created. Format:
581
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
582
+ context (google.cloud.aiplatform_v1.types.Context):
583
+ Required. The Context to create.
584
+ context_id (str):
585
+ The {context} portion of the resource name with the format:
586
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}``.
587
+ If not provided, the Context's ID will be a UUID generated
588
+ by the service. Must be 4-128 characters in length. Valid
589
+ characters are ``/[a-z][0-9]-/``. Must be unique across all
590
+ Contexts in the parent MetadataStore. (Otherwise the request
591
+ will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
592
+ caller can't view the preexisting Context.)
593
+ """
594
+
595
+ parent: str = proto.Field(
596
+ proto.STRING,
597
+ number=1,
598
+ )
599
+ context: gca_context.Context = proto.Field(
600
+ proto.MESSAGE,
601
+ number=2,
602
+ message=gca_context.Context,
603
+ )
604
+ context_id: str = proto.Field(
605
+ proto.STRING,
606
+ number=3,
607
+ )
608
+
609
+
610
+ class GetContextRequest(proto.Message):
611
+ r"""Request message for
612
+ [MetadataService.GetContext][google.cloud.aiplatform.v1.MetadataService.GetContext].
613
+
614
+ Attributes:
615
+ name (str):
616
+ Required. The resource name of the Context to retrieve.
617
+ Format:
618
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}``
619
+ """
620
+
621
+ name: str = proto.Field(
622
+ proto.STRING,
623
+ number=1,
624
+ )
625
+
626
+
627
+ class ListContextsRequest(proto.Message):
628
+ r"""Request message for
629
+ [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts]
630
+
631
+ Attributes:
632
+ parent (str):
633
+ Required. The MetadataStore whose Contexts should be listed.
634
+ Format:
635
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
636
+ page_size (int):
637
+ The maximum number of Contexts to return. The
638
+ service may return fewer. Must be in range
639
+ 1-1000, inclusive. Defaults to 100.
640
+ page_token (str):
641
+ A page token, received from a previous
642
+ [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts]
643
+ call. Provide this to retrieve the subsequent page.
644
+
645
+ When paginating, all other provided parameters must match
646
+ the call that provided the page token. (Otherwise the
647
+ request will fail with INVALID_ARGUMENT error.)
648
+ filter (str):
649
+ Filter specifying the boolean condition for the Contexts to
650
+ satisfy in order to be part of the result set. The syntax to
651
+ define filter query is based on https://google.aip.dev/160.
652
+ Following are the supported set of filters:
653
+
654
+ - **Attribute filtering**: For example:
655
+ ``display_name = "test"``. Supported fields include:
656
+ ``name``, ``display_name``, ``schema_title``,
657
+ ``create_time``, and ``update_time``. Time fields, such as
658
+ ``create_time`` and ``update_time``, require values
659
+ specified in RFC-3339 format. For example:
660
+ ``create_time = "2020-11-19T11:30:00-04:00"``.
661
+
662
+ - **Metadata field**: To filter on metadata fields use
663
+ traversal operation as follows:
664
+ ``metadata.<field_name>.<type_value>``. For example:
665
+ ``metadata.field_1.number_value = 10.0``. In case the
666
+ field name contains special characters (such as colon),
667
+ one can embed it inside double quote. For example:
668
+ ``metadata."field:1".number_value = 10.0``
669
+
670
+ - **Parent Child filtering**: To filter Contexts based on
671
+ parent-child relationship use the HAS operator as follows:
672
+
673
+ ::
674
+
675
+ parent_contexts:
676
+ "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
677
+ child_contexts:
678
+ "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
679
+
680
+ Each of the above supported filters can be combined together
681
+ using logical operators (``AND`` & ``OR``). Maximum nested
682
+ expression depth allowed is 5.
683
+
684
+ For example:
685
+ ``display_name = "test" AND metadata.field1.bool_value = true``.
686
+ order_by (str):
687
+ How the list of messages is ordered. Specify the values to
688
+ order by and an ordering operation. The default sorting
689
+ order is ascending. To specify descending order for a field,
690
+ users append a " desc" suffix; for example: "foo desc, bar".
691
+ Subfields are specified with a ``.`` character, such as
692
+ foo.bar. see https://google.aip.dev/132#ordering for more
693
+ details.
694
+ """
695
+
696
+ parent: str = proto.Field(
697
+ proto.STRING,
698
+ number=1,
699
+ )
700
+ page_size: int = proto.Field(
701
+ proto.INT32,
702
+ number=2,
703
+ )
704
+ page_token: str = proto.Field(
705
+ proto.STRING,
706
+ number=3,
707
+ )
708
+ filter: str = proto.Field(
709
+ proto.STRING,
710
+ number=4,
711
+ )
712
+ order_by: str = proto.Field(
713
+ proto.STRING,
714
+ number=5,
715
+ )
716
+
717
+
718
+ class ListContextsResponse(proto.Message):
719
+ r"""Response message for
720
+ [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts].
721
+
722
+ Attributes:
723
+ contexts (MutableSequence[google.cloud.aiplatform_v1.types.Context]):
724
+ The Contexts retrieved from the
725
+ MetadataStore.
726
+ next_page_token (str):
727
+ A token, which can be sent as
728
+ [ListContextsRequest.page_token][google.cloud.aiplatform.v1.ListContextsRequest.page_token]
729
+ to retrieve the next page. If this field is not populated,
730
+ there are no subsequent pages.
731
+ """
732
+
733
+ @property
734
+ def raw_page(self):
735
+ return self
736
+
737
+ contexts: MutableSequence[gca_context.Context] = proto.RepeatedField(
738
+ proto.MESSAGE,
739
+ number=1,
740
+ message=gca_context.Context,
741
+ )
742
+ next_page_token: str = proto.Field(
743
+ proto.STRING,
744
+ number=2,
745
+ )
746
+
747
+
748
+ class UpdateContextRequest(proto.Message):
749
+ r"""Request message for
750
+ [MetadataService.UpdateContext][google.cloud.aiplatform.v1.MetadataService.UpdateContext].
751
+
752
+ Attributes:
753
+ context (google.cloud.aiplatform_v1.types.Context):
754
+ Required. The Context containing updates. The Context's
755
+ [Context.name][google.cloud.aiplatform.v1.Context.name]
756
+ field is used to identify the Context to be updated. Format:
757
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}``
758
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
759
+ Optional. A FieldMask indicating which fields
760
+ should be updated.
761
+ allow_missing (bool):
762
+ If set to true, and the
763
+ [Context][google.cloud.aiplatform.v1.Context] is not found,
764
+ a new [Context][google.cloud.aiplatform.v1.Context] is
765
+ created.
766
+ """
767
+
768
+ context: gca_context.Context = proto.Field(
769
+ proto.MESSAGE,
770
+ number=1,
771
+ message=gca_context.Context,
772
+ )
773
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
774
+ proto.MESSAGE,
775
+ number=2,
776
+ message=field_mask_pb2.FieldMask,
777
+ )
778
+ allow_missing: bool = proto.Field(
779
+ proto.BOOL,
780
+ number=3,
781
+ )
782
+
783
+
784
+ class DeleteContextRequest(proto.Message):
785
+ r"""Request message for
786
+ [MetadataService.DeleteContext][google.cloud.aiplatform.v1.MetadataService.DeleteContext].
787
+
788
+ Attributes:
789
+ name (str):
790
+ Required. The resource name of the Context to delete.
791
+ Format:
792
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}``
793
+ force (bool):
794
+ The force deletion semantics is still
795
+ undefined. Users should not use this field.
796
+ etag (str):
797
+ Optional. The etag of the Context to delete. If this is
798
+ provided, it must match the server's etag. Otherwise, the
799
+ request will fail with a FAILED_PRECONDITION.
800
+ """
801
+
802
+ name: str = proto.Field(
803
+ proto.STRING,
804
+ number=1,
805
+ )
806
+ force: bool = proto.Field(
807
+ proto.BOOL,
808
+ number=2,
809
+ )
810
+ etag: str = proto.Field(
811
+ proto.STRING,
812
+ number=3,
813
+ )
814
+
815
+
816
+ class PurgeContextsRequest(proto.Message):
817
+ r"""Request message for
818
+ [MetadataService.PurgeContexts][google.cloud.aiplatform.v1.MetadataService.PurgeContexts].
819
+
820
+ Attributes:
821
+ parent (str):
822
+ Required. The metadata store to purge Contexts from. Format:
823
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
824
+ filter (str):
825
+ Required. A required filter matching the Contexts to be
826
+ purged. E.g., ``update_time <= 2020-11-19T11:30:00-04:00``.
827
+ force (bool):
828
+ Optional. Flag to indicate to actually perform the purge. If
829
+ ``force`` is set to false, the method will return a sample
830
+ of Context names that would be deleted.
831
+ """
832
+
833
+ parent: str = proto.Field(
834
+ proto.STRING,
835
+ number=1,
836
+ )
837
+ filter: str = proto.Field(
838
+ proto.STRING,
839
+ number=2,
840
+ )
841
+ force: bool = proto.Field(
842
+ proto.BOOL,
843
+ number=3,
844
+ )
845
+
846
+
847
+ class PurgeContextsResponse(proto.Message):
848
+ r"""Response message for
849
+ [MetadataService.PurgeContexts][google.cloud.aiplatform.v1.MetadataService.PurgeContexts].
850
+
851
+ Attributes:
852
+ purge_count (int):
853
+ The number of Contexts that this request deleted (or, if
854
+ ``force`` is false, the number of Contexts that will be
855
+ deleted). This can be an estimate.
856
+ purge_sample (MutableSequence[str]):
857
+ A sample of the Context names that will be deleted. Only
858
+ populated if ``force`` is set to false. The maximum number
859
+ of samples is 100 (it is possible to return fewer).
860
+ """
861
+
862
+ purge_count: int = proto.Field(
863
+ proto.INT64,
864
+ number=1,
865
+ )
866
+ purge_sample: MutableSequence[str] = proto.RepeatedField(
867
+ proto.STRING,
868
+ number=2,
869
+ )
870
+
871
+
872
+ class PurgeContextsMetadata(proto.Message):
873
+ r"""Details of operations that perform
874
+ [MetadataService.PurgeContexts][google.cloud.aiplatform.v1.MetadataService.PurgeContexts].
875
+
876
+ Attributes:
877
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
878
+ Operation metadata for purging Contexts.
879
+ """
880
+
881
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
882
+ proto.MESSAGE,
883
+ number=1,
884
+ message=operation.GenericOperationMetadata,
885
+ )
886
+
887
+
888
+ class AddContextArtifactsAndExecutionsRequest(proto.Message):
889
+ r"""Request message for
890
+ [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions].
891
+
892
+ Attributes:
893
+ context (str):
894
+ Required. The resource name of the Context that the
895
+ Artifacts and Executions belong to. Format:
896
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}``
897
+ artifacts (MutableSequence[str]):
898
+ The resource names of the Artifacts to attribute to the
899
+ Context.
900
+
901
+ Format:
902
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}``
903
+ executions (MutableSequence[str]):
904
+ The resource names of the Executions to associate with the
905
+ Context.
906
+
907
+ Format:
908
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}``
909
+ """
910
+
911
+ context: str = proto.Field(
912
+ proto.STRING,
913
+ number=1,
914
+ )
915
+ artifacts: MutableSequence[str] = proto.RepeatedField(
916
+ proto.STRING,
917
+ number=2,
918
+ )
919
+ executions: MutableSequence[str] = proto.RepeatedField(
920
+ proto.STRING,
921
+ number=3,
922
+ )
923
+
924
+
925
+ class AddContextArtifactsAndExecutionsResponse(proto.Message):
926
+ r"""Response message for
927
+ [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions].
928
+
929
+ """
930
+
931
+
932
+ class AddContextChildrenRequest(proto.Message):
933
+ r"""Request message for
934
+ [MetadataService.AddContextChildren][google.cloud.aiplatform.v1.MetadataService.AddContextChildren].
935
+
936
+ Attributes:
937
+ context (str):
938
+ Required. The resource name of the parent Context.
939
+
940
+ Format:
941
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}``
942
+ child_contexts (MutableSequence[str]):
943
+ The resource names of the child Contexts.
944
+ """
945
+
946
+ context: str = proto.Field(
947
+ proto.STRING,
948
+ number=1,
949
+ )
950
+ child_contexts: MutableSequence[str] = proto.RepeatedField(
951
+ proto.STRING,
952
+ number=2,
953
+ )
954
+
955
+
956
+ class AddContextChildrenResponse(proto.Message):
957
+ r"""Response message for
958
+ [MetadataService.AddContextChildren][google.cloud.aiplatform.v1.MetadataService.AddContextChildren].
959
+
960
+ """
961
+
962
+
963
+ class RemoveContextChildrenRequest(proto.Message):
964
+ r"""Request message for
965
+ [MetadataService.DeleteContextChildrenRequest][].
966
+
967
+ Attributes:
968
+ context (str):
969
+ Required. The resource name of the parent Context.
970
+
971
+ Format:
972
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}``
973
+ child_contexts (MutableSequence[str]):
974
+ The resource names of the child Contexts.
975
+ """
976
+
977
+ context: str = proto.Field(
978
+ proto.STRING,
979
+ number=1,
980
+ )
981
+ child_contexts: MutableSequence[str] = proto.RepeatedField(
982
+ proto.STRING,
983
+ number=2,
984
+ )
985
+
986
+
987
+ class RemoveContextChildrenResponse(proto.Message):
988
+ r"""Response message for
989
+ [MetadataService.RemoveContextChildren][google.cloud.aiplatform.v1.MetadataService.RemoveContextChildren].
990
+
991
+ """
992
+
993
+
994
+ class QueryContextLineageSubgraphRequest(proto.Message):
995
+ r"""Request message for
996
+ [MetadataService.QueryContextLineageSubgraph][google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraph].
997
+
998
+ Attributes:
999
+ context (str):
1000
+ Required. The resource name of the Context whose Artifacts
1001
+ and Executions should be retrieved as a LineageSubgraph.
1002
+ Format:
1003
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}``
1004
+
1005
+ The request may error with FAILED_PRECONDITION if the number
1006
+ of Artifacts, the number of Executions, or the number of
1007
+ Events that would be returned for the Context exceeds 1000.
1008
+ """
1009
+
1010
+ context: str = proto.Field(
1011
+ proto.STRING,
1012
+ number=1,
1013
+ )
1014
+
1015
+
1016
+ class CreateExecutionRequest(proto.Message):
1017
+ r"""Request message for
1018
+ [MetadataService.CreateExecution][google.cloud.aiplatform.v1.MetadataService.CreateExecution].
1019
+
1020
+ Attributes:
1021
+ parent (str):
1022
+ Required. The resource name of the MetadataStore where the
1023
+ Execution should be created. Format:
1024
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
1025
+ execution (google.cloud.aiplatform_v1.types.Execution):
1026
+ Required. The Execution to create.
1027
+ execution_id (str):
1028
+ The {execution} portion of the resource name with the
1029
+ format:
1030
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}``
1031
+ If not provided, the Execution's ID will be a UUID generated
1032
+ by the service. Must be 4-128 characters in length. Valid
1033
+ characters are ``/[a-z][0-9]-/``. Must be unique across all
1034
+ Executions in the parent MetadataStore. (Otherwise the
1035
+ request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
1036
+ if the caller can't view the preexisting Execution.)
1037
+ """
1038
+
1039
+ parent: str = proto.Field(
1040
+ proto.STRING,
1041
+ number=1,
1042
+ )
1043
+ execution: gca_execution.Execution = proto.Field(
1044
+ proto.MESSAGE,
1045
+ number=2,
1046
+ message=gca_execution.Execution,
1047
+ )
1048
+ execution_id: str = proto.Field(
1049
+ proto.STRING,
1050
+ number=3,
1051
+ )
1052
+
1053
+
1054
+ class GetExecutionRequest(proto.Message):
1055
+ r"""Request message for
1056
+ [MetadataService.GetExecution][google.cloud.aiplatform.v1.MetadataService.GetExecution].
1057
+
1058
+ Attributes:
1059
+ name (str):
1060
+ Required. The resource name of the Execution to retrieve.
1061
+ Format:
1062
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}``
1063
+ """
1064
+
1065
+ name: str = proto.Field(
1066
+ proto.STRING,
1067
+ number=1,
1068
+ )
1069
+
1070
+
1071
+ class ListExecutionsRequest(proto.Message):
1072
+ r"""Request message for
1073
+ [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions].
1074
+
1075
+ Attributes:
1076
+ parent (str):
1077
+ Required. The MetadataStore whose Executions should be
1078
+ listed. Format:
1079
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
1080
+ page_size (int):
1081
+ The maximum number of Executions to return.
1082
+ The service may return fewer. Must be in range
1083
+ 1-1000, inclusive. Defaults to 100.
1084
+ page_token (str):
1085
+ A page token, received from a previous
1086
+ [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions]
1087
+ call. Provide this to retrieve the subsequent page.
1088
+
1089
+ When paginating, all other provided parameters must match
1090
+ the call that provided the page token. (Otherwise the
1091
+ request will fail with an INVALID_ARGUMENT error.)
1092
+ filter (str):
1093
+ Filter specifying the boolean condition for the Executions
1094
+ to satisfy in order to be part of the result set. The syntax
1095
+ to define filter query is based on
1096
+ https://google.aip.dev/160. Following are the supported set
1097
+ of filters:
1098
+
1099
+ - **Attribute filtering**: For example:
1100
+ ``display_name = "test"``. Supported fields include:
1101
+ ``name``, ``display_name``, ``state``, ``schema_title``,
1102
+ ``create_time``, and ``update_time``. Time fields, such as
1103
+ ``create_time`` and ``update_time``, require values
1104
+ specified in RFC-3339 format. For example:
1105
+ ``create_time = "2020-11-19T11:30:00-04:00"``.
1106
+ - **Metadata field**: To filter on metadata fields use
1107
+ traversal operation as follows:
1108
+ ``metadata.<field_name>.<type_value>`` For example:
1109
+ ``metadata.field_1.number_value = 10.0`` In case the field
1110
+ name contains special characters (such as colon), one can
1111
+ embed it inside double quote. For example:
1112
+ ``metadata."field:1".number_value = 10.0``
1113
+ - **Context based filtering**: To filter Executions based on
1114
+ the contexts to which they belong use the function
1115
+ operator with the full resource name:
1116
+ ``in_context(<context-name>)``. For example:
1117
+ ``in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")``
1118
+
1119
+ Each of the above supported filters can be combined together
1120
+ using logical operators (``AND`` & ``OR``). Maximum nested
1121
+ expression depth allowed is 5.
1122
+
1123
+ For example:
1124
+ ``display_name = "test" AND metadata.field1.bool_value = true``.
1125
+ order_by (str):
1126
+ How the list of messages is ordered. Specify the values to
1127
+ order by and an ordering operation. The default sorting
1128
+ order is ascending. To specify descending order for a field,
1129
+ users append a " desc" suffix; for example: "foo desc, bar".
1130
+ Subfields are specified with a ``.`` character, such as
1131
+ foo.bar. see https://google.aip.dev/132#ordering for more
1132
+ details.
1133
+ """
1134
+
1135
+ parent: str = proto.Field(
1136
+ proto.STRING,
1137
+ number=1,
1138
+ )
1139
+ page_size: int = proto.Field(
1140
+ proto.INT32,
1141
+ number=2,
1142
+ )
1143
+ page_token: str = proto.Field(
1144
+ proto.STRING,
1145
+ number=3,
1146
+ )
1147
+ filter: str = proto.Field(
1148
+ proto.STRING,
1149
+ number=4,
1150
+ )
1151
+ order_by: str = proto.Field(
1152
+ proto.STRING,
1153
+ number=5,
1154
+ )
1155
+
1156
+
1157
+ class ListExecutionsResponse(proto.Message):
1158
+ r"""Response message for
1159
+ [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions].
1160
+
1161
+ Attributes:
1162
+ executions (MutableSequence[google.cloud.aiplatform_v1.types.Execution]):
1163
+ The Executions retrieved from the
1164
+ MetadataStore.
1165
+ next_page_token (str):
1166
+ A token, which can be sent as
1167
+ [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1.ListExecutionsRequest.page_token]
1168
+ to retrieve the next page. If this field is not populated,
1169
+ there are no subsequent pages.
1170
+ """
1171
+
1172
+ @property
1173
+ def raw_page(self):
1174
+ return self
1175
+
1176
+ executions: MutableSequence[gca_execution.Execution] = proto.RepeatedField(
1177
+ proto.MESSAGE,
1178
+ number=1,
1179
+ message=gca_execution.Execution,
1180
+ )
1181
+ next_page_token: str = proto.Field(
1182
+ proto.STRING,
1183
+ number=2,
1184
+ )
1185
+
1186
+
1187
+ class UpdateExecutionRequest(proto.Message):
1188
+ r"""Request message for
1189
+ [MetadataService.UpdateExecution][google.cloud.aiplatform.v1.MetadataService.UpdateExecution].
1190
+
1191
+ Attributes:
1192
+ execution (google.cloud.aiplatform_v1.types.Execution):
1193
+ Required. The Execution containing updates. The Execution's
1194
+ [Execution.name][google.cloud.aiplatform.v1.Execution.name]
1195
+ field is used to identify the Execution to be updated.
1196
+ Format:
1197
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}``
1198
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
1199
+ Optional. A FieldMask indicating which fields
1200
+ should be updated.
1201
+ allow_missing (bool):
1202
+ If set to true, and the
1203
+ [Execution][google.cloud.aiplatform.v1.Execution] is not
1204
+ found, a new
1205
+ [Execution][google.cloud.aiplatform.v1.Execution] is
1206
+ created.
1207
+ """
1208
+
1209
+ execution: gca_execution.Execution = proto.Field(
1210
+ proto.MESSAGE,
1211
+ number=1,
1212
+ message=gca_execution.Execution,
1213
+ )
1214
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
1215
+ proto.MESSAGE,
1216
+ number=2,
1217
+ message=field_mask_pb2.FieldMask,
1218
+ )
1219
+ allow_missing: bool = proto.Field(
1220
+ proto.BOOL,
1221
+ number=3,
1222
+ )
1223
+
1224
+
1225
+ class DeleteExecutionRequest(proto.Message):
1226
+ r"""Request message for
1227
+ [MetadataService.DeleteExecution][google.cloud.aiplatform.v1.MetadataService.DeleteExecution].
1228
+
1229
+ Attributes:
1230
+ name (str):
1231
+ Required. The resource name of the Execution to delete.
1232
+ Format:
1233
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}``
1234
+ etag (str):
1235
+ Optional. The etag of the Execution to delete. If this is
1236
+ provided, it must match the server's etag. Otherwise, the
1237
+ request will fail with a FAILED_PRECONDITION.
1238
+ """
1239
+
1240
+ name: str = proto.Field(
1241
+ proto.STRING,
1242
+ number=1,
1243
+ )
1244
+ etag: str = proto.Field(
1245
+ proto.STRING,
1246
+ number=2,
1247
+ )
1248
+
1249
+
1250
+ class PurgeExecutionsRequest(proto.Message):
1251
+ r"""Request message for
1252
+ [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1.MetadataService.PurgeExecutions].
1253
+
1254
+ Attributes:
1255
+ parent (str):
1256
+ Required. The metadata store to purge Executions from.
1257
+ Format:
1258
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
1259
+ filter (str):
1260
+ Required. A required filter matching the Executions to be
1261
+ purged. E.g., ``update_time <= 2020-11-19T11:30:00-04:00``.
1262
+ force (bool):
1263
+ Optional. Flag to indicate to actually perform the purge. If
1264
+ ``force`` is set to false, the method will return a sample
1265
+ of Execution names that would be deleted.
1266
+ """
1267
+
1268
+ parent: str = proto.Field(
1269
+ proto.STRING,
1270
+ number=1,
1271
+ )
1272
+ filter: str = proto.Field(
1273
+ proto.STRING,
1274
+ number=2,
1275
+ )
1276
+ force: bool = proto.Field(
1277
+ proto.BOOL,
1278
+ number=3,
1279
+ )
1280
+
1281
+
1282
+ class PurgeExecutionsResponse(proto.Message):
1283
+ r"""Response message for
1284
+ [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1.MetadataService.PurgeExecutions].
1285
+
1286
+ Attributes:
1287
+ purge_count (int):
1288
+ The number of Executions that this request deleted (or, if
1289
+ ``force`` is false, the number of Executions that will be
1290
+ deleted). This can be an estimate.
1291
+ purge_sample (MutableSequence[str]):
1292
+ A sample of the Execution names that will be deleted. Only
1293
+ populated if ``force`` is set to false. The maximum number
1294
+ of samples is 100 (it is possible to return fewer).
1295
+ """
1296
+
1297
+ purge_count: int = proto.Field(
1298
+ proto.INT64,
1299
+ number=1,
1300
+ )
1301
+ purge_sample: MutableSequence[str] = proto.RepeatedField(
1302
+ proto.STRING,
1303
+ number=2,
1304
+ )
1305
+
1306
+
1307
+ class PurgeExecutionsMetadata(proto.Message):
1308
+ r"""Details of operations that perform
1309
+ [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1.MetadataService.PurgeExecutions].
1310
+
1311
+ Attributes:
1312
+ generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata):
1313
+ Operation metadata for purging Executions.
1314
+ """
1315
+
1316
+ generic_metadata: operation.GenericOperationMetadata = proto.Field(
1317
+ proto.MESSAGE,
1318
+ number=1,
1319
+ message=operation.GenericOperationMetadata,
1320
+ )
1321
+
1322
+
1323
+ class AddExecutionEventsRequest(proto.Message):
1324
+ r"""Request message for
1325
+ [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1.MetadataService.AddExecutionEvents].
1326
+
1327
+ Attributes:
1328
+ execution (str):
1329
+ Required. The resource name of the Execution that the Events
1330
+ connect Artifacts with. Format:
1331
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}``
1332
+ events (MutableSequence[google.cloud.aiplatform_v1.types.Event]):
1333
+ The Events to create and add.
1334
+ """
1335
+
1336
+ execution: str = proto.Field(
1337
+ proto.STRING,
1338
+ number=1,
1339
+ )
1340
+ events: MutableSequence[event.Event] = proto.RepeatedField(
1341
+ proto.MESSAGE,
1342
+ number=2,
1343
+ message=event.Event,
1344
+ )
1345
+
1346
+
1347
+ class AddExecutionEventsResponse(proto.Message):
1348
+ r"""Response message for
1349
+ [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1.MetadataService.AddExecutionEvents].
1350
+
1351
+ """
1352
+
1353
+
1354
+ class QueryExecutionInputsAndOutputsRequest(proto.Message):
1355
+ r"""Request message for
1356
+ [MetadataService.QueryExecutionInputsAndOutputs][google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputs].
1357
+
1358
+ Attributes:
1359
+ execution (str):
1360
+ Required. The resource name of the Execution whose input and
1361
+ output Artifacts should be retrieved as a LineageSubgraph.
1362
+ Format:
1363
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}``
1364
+ """
1365
+
1366
+ execution: str = proto.Field(
1367
+ proto.STRING,
1368
+ number=1,
1369
+ )
1370
+
1371
+
1372
+ class CreateMetadataSchemaRequest(proto.Message):
1373
+ r"""Request message for
1374
+ [MetadataService.CreateMetadataSchema][google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchema].
1375
+
1376
+ Attributes:
1377
+ parent (str):
1378
+ Required. The resource name of the MetadataStore where the
1379
+ MetadataSchema should be created. Format:
1380
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
1381
+ metadata_schema (google.cloud.aiplatform_v1.types.MetadataSchema):
1382
+ Required. The MetadataSchema to create.
1383
+ metadata_schema_id (str):
1384
+ The {metadata_schema} portion of the resource name with the
1385
+ format:
1386
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}``
1387
+ If not provided, the MetadataStore's ID will be a UUID
1388
+ generated by the service. Must be 4-128 characters in
1389
+ length. Valid characters are ``/[a-z][0-9]-/``. Must be
1390
+ unique across all MetadataSchemas in the parent Location.
1391
+ (Otherwise the request will fail with ALREADY_EXISTS, or
1392
+ PERMISSION_DENIED if the caller can't view the preexisting
1393
+ MetadataSchema.)
1394
+ """
1395
+
1396
+ parent: str = proto.Field(
1397
+ proto.STRING,
1398
+ number=1,
1399
+ )
1400
+ metadata_schema: gca_metadata_schema.MetadataSchema = proto.Field(
1401
+ proto.MESSAGE,
1402
+ number=2,
1403
+ message=gca_metadata_schema.MetadataSchema,
1404
+ )
1405
+ metadata_schema_id: str = proto.Field(
1406
+ proto.STRING,
1407
+ number=3,
1408
+ )
1409
+
1410
+
1411
+ class GetMetadataSchemaRequest(proto.Message):
1412
+ r"""Request message for
1413
+ [MetadataService.GetMetadataSchema][google.cloud.aiplatform.v1.MetadataService.GetMetadataSchema].
1414
+
1415
+ Attributes:
1416
+ name (str):
1417
+ Required. The resource name of the MetadataSchema to
1418
+ retrieve. Format:
1419
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}``
1420
+ """
1421
+
1422
+ name: str = proto.Field(
1423
+ proto.STRING,
1424
+ number=1,
1425
+ )
1426
+
1427
+
1428
+ class ListMetadataSchemasRequest(proto.Message):
1429
+ r"""Request message for
1430
+ [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas].
1431
+
1432
+ Attributes:
1433
+ parent (str):
1434
+ Required. The MetadataStore whose MetadataSchemas should be
1435
+ listed. Format:
1436
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}``
1437
+ page_size (int):
1438
+ The maximum number of MetadataSchemas to
1439
+ return. The service may return fewer.
1440
+ Must be in range 1-1000, inclusive. Defaults to
1441
+ 100.
1442
+ page_token (str):
1443
+ A page token, received from a previous
1444
+ [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas]
1445
+ call. Provide this to retrieve the next page.
1446
+
1447
+ When paginating, all other provided parameters must match
1448
+ the call that provided the page token. (Otherwise the
1449
+ request will fail with INVALID_ARGUMENT error.)
1450
+ filter (str):
1451
+ A query to filter available MetadataSchemas
1452
+ for matching results.
1453
+ """
1454
+
1455
+ parent: str = proto.Field(
1456
+ proto.STRING,
1457
+ number=1,
1458
+ )
1459
+ page_size: int = proto.Field(
1460
+ proto.INT32,
1461
+ number=2,
1462
+ )
1463
+ page_token: str = proto.Field(
1464
+ proto.STRING,
1465
+ number=3,
1466
+ )
1467
+ filter: str = proto.Field(
1468
+ proto.STRING,
1469
+ number=4,
1470
+ )
1471
+
1472
+
1473
+ class ListMetadataSchemasResponse(proto.Message):
1474
+ r"""Response message for
1475
+ [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas].
1476
+
1477
+ Attributes:
1478
+ metadata_schemas (MutableSequence[google.cloud.aiplatform_v1.types.MetadataSchema]):
1479
+ The MetadataSchemas found for the
1480
+ MetadataStore.
1481
+ next_page_token (str):
1482
+ A token, which can be sent as
1483
+ [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1.ListMetadataSchemasRequest.page_token]
1484
+ to retrieve the next page. If this field is not populated,
1485
+ there are no subsequent pages.
1486
+ """
1487
+
1488
+ @property
1489
+ def raw_page(self):
1490
+ return self
1491
+
1492
+ metadata_schemas: MutableSequence[gca_metadata_schema.MetadataSchema] = (
1493
+ proto.RepeatedField(
1494
+ proto.MESSAGE,
1495
+ number=1,
1496
+ message=gca_metadata_schema.MetadataSchema,
1497
+ )
1498
+ )
1499
+ next_page_token: str = proto.Field(
1500
+ proto.STRING,
1501
+ number=2,
1502
+ )
1503
+
1504
+
1505
+ class QueryArtifactLineageSubgraphRequest(proto.Message):
1506
+ r"""Request message for
1507
+ [MetadataService.QueryArtifactLineageSubgraph][google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraph].
1508
+
1509
+ Attributes:
1510
+ artifact (str):
1511
+ Required. The resource name of the Artifact whose Lineage
1512
+ needs to be retrieved as a LineageSubgraph. Format:
1513
+ ``projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}``
1514
+
1515
+ The request may error with FAILED_PRECONDITION if the number
1516
+ of Artifacts, the number of Executions, or the number of
1517
+ Events that would be returned for the Context exceeds 1000.
1518
+ max_hops (int):
1519
+ Specifies the size of the lineage graph in terms of number
1520
+ of hops from the specified artifact. Negative Value:
1521
+ INVALID_ARGUMENT error is returned 0: Only input artifact is
1522
+ returned. No value: Transitive closure is performed to
1523
+ return the complete graph.
1524
+ filter (str):
1525
+ Filter specifying the boolean condition for the Artifacts to
1526
+ satisfy in order to be part of the Lineage Subgraph. The
1527
+ syntax to define filter query is based on
1528
+ https://google.aip.dev/160. The supported set of filters
1529
+ include the following:
1530
+
1531
+ - **Attribute filtering**: For example:
1532
+ ``display_name = "test"`` Supported fields include:
1533
+ ``name``, ``display_name``, ``uri``, ``state``,
1534
+ ``schema_title``, ``create_time``, and ``update_time``.
1535
+ Time fields, such as ``create_time`` and ``update_time``,
1536
+ require values specified in RFC-3339 format. For example:
1537
+ ``create_time = "2020-11-19T11:30:00-04:00"``
1538
+ - **Metadata field**: To filter on metadata fields use
1539
+ traversal operation as follows:
1540
+ ``metadata.<field_name>.<type_value>``. For example:
1541
+ ``metadata.field_1.number_value = 10.0`` In case the field
1542
+ name contains special characters (such as colon), one can
1543
+ embed it inside double quote. For example:
1544
+ ``metadata."field:1".number_value = 10.0``
1545
+
1546
+ Each of the above supported filter types can be combined
1547
+ together using logical operators (``AND`` & ``OR``). Maximum
1548
+ nested expression depth allowed is 5.
1549
+
1550
+ For example:
1551
+ ``display_name = "test" AND metadata.field1.bool_value = true``.
1552
+ """
1553
+
1554
+ artifact: str = proto.Field(
1555
+ proto.STRING,
1556
+ number=1,
1557
+ )
1558
+ max_hops: int = proto.Field(
1559
+ proto.INT32,
1560
+ number=2,
1561
+ )
1562
+ filter: str = proto.Field(
1563
+ proto.STRING,
1564
+ number=3,
1565
+ )
1566
+
1567
+
1568
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/model.py ADDED
@@ -0,0 +1,1524 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import deployed_model_ref
23
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
24
+ from google.cloud.aiplatform_v1.types import env_var
25
+ from google.cloud.aiplatform_v1.types import explanation
26
+ import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
27
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
28
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
29
+
30
+
31
+ __protobuf__ = proto.module(
32
+ package="google.cloud.aiplatform.v1",
33
+ manifest={
34
+ "Model",
35
+ "LargeModelReference",
36
+ "ModelGardenSource",
37
+ "GenieSource",
38
+ "PredictSchemata",
39
+ "ModelContainerSpec",
40
+ "Port",
41
+ "ModelSourceInfo",
42
+ "Probe",
43
+ "Checkpoint",
44
+ },
45
+ )
46
+
47
+
48
+ class Model(proto.Message):
49
+ r"""A trained machine learning Model.
50
+
51
+ Attributes:
52
+ name (str):
53
+ The resource name of the Model.
54
+ version_id (str):
55
+ Output only. Immutable. The version ID of the
56
+ model. A new version is committed when a new
57
+ model version is uploaded or trained under an
58
+ existing model id. It is an auto-incrementing
59
+ decimal number in string representation.
60
+ version_aliases (MutableSequence[str]):
61
+ User provided version aliases so that a model version can be
62
+ referenced via alias (i.e.
63
+ ``projects/{project}/locations/{location}/models/{model_id}@{version_alias}``
64
+ instead of auto-generated version id (i.e.
65
+ ``projects/{project}/locations/{location}/models/{model_id}@{version_id})``.
66
+ The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to
67
+ distinguish from version_id. A default version alias will be
68
+ created for the first version of the model, and there must
69
+ be exactly one default version alias for a model.
70
+ version_create_time (google.protobuf.timestamp_pb2.Timestamp):
71
+ Output only. Timestamp when this version was
72
+ created.
73
+ version_update_time (google.protobuf.timestamp_pb2.Timestamp):
74
+ Output only. Timestamp when this version was
75
+ most recently updated.
76
+ display_name (str):
77
+ Required. The display name of the Model.
78
+ The name can be up to 128 characters long and
79
+ can consist of any UTF-8 characters.
80
+ description (str):
81
+ The description of the Model.
82
+ version_description (str):
83
+ The description of this version.
84
+ default_checkpoint_id (str):
85
+ The default checkpoint id of a model version.
86
+ predict_schemata (google.cloud.aiplatform_v1.types.PredictSchemata):
87
+ The schemata that describe formats of the Model's
88
+ predictions and explanations as given and returned via
89
+ [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]
90
+ and
91
+ [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain].
92
+ metadata_schema_uri (str):
93
+ Immutable. Points to a YAML file stored on Google Cloud
94
+ Storage describing additional information about the Model,
95
+ that is specific to it. Unset if the Model does not have any
96
+ additional information. The schema is defined as an OpenAPI
97
+ 3.0.2 `Schema
98
+ Object <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject>`__.
99
+ AutoML Models always have this field populated by Vertex AI,
100
+ if no additional metadata is needed, this field is set to an
101
+ empty string. Note: The URI given on output will be
102
+ immutable and probably different, including the URI scheme,
103
+ than the one given on input. The output URI will point to a
104
+ location where the user only has a read access.
105
+ metadata (google.protobuf.struct_pb2.Value):
106
+ Immutable. An additional information about the Model; the
107
+ schema of the metadata can be found in
108
+ [metadata_schema][google.cloud.aiplatform.v1.Model.metadata_schema_uri].
109
+ Unset if the Model does not have any additional information.
110
+ supported_export_formats (MutableSequence[google.cloud.aiplatform_v1.types.Model.ExportFormat]):
111
+ Output only. The formats in which this Model
112
+ may be exported. If empty, this Model is not
113
+ available for export.
114
+ training_pipeline (str):
115
+ Output only. The resource name of the
116
+ TrainingPipeline that uploaded this Model, if
117
+ any.
118
+ pipeline_job (str):
119
+ Optional. This field is populated if the
120
+ model is produced by a pipeline job.
121
+ container_spec (google.cloud.aiplatform_v1.types.ModelContainerSpec):
122
+ Input only. The specification of the container that is to be
123
+ used when deploying this Model. The specification is
124
+ ingested upon
125
+ [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel],
126
+ and all binaries it contains are copied and stored
127
+ internally by Vertex AI. Not required for AutoML Models.
128
+ artifact_uri (str):
129
+ Immutable. The path to the directory
130
+ containing the Model artifact and any of its
131
+ supporting files. Not required for AutoML
132
+ Models.
133
+ supported_deployment_resources_types (MutableSequence[google.cloud.aiplatform_v1.types.Model.DeploymentResourcesType]):
134
+ Output only. When this Model is deployed, its prediction
135
+ resources are described by the ``prediction_resources``
136
+ field of the
137
+ [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models]
138
+ object. Because not all Models support all resource
139
+ configuration types, the configuration types this Model
140
+ supports are listed here. If no configuration types are
141
+ listed, the Model cannot be deployed to an
142
+ [Endpoint][google.cloud.aiplatform.v1.Endpoint] and does not
143
+ support online predictions
144
+ ([PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]
145
+ or
146
+ [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]).
147
+ Such a Model can serve predictions by using a
148
+ [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob],
149
+ if it has at least one entry each in
150
+ [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats]
151
+ and
152
+ [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
153
+ supported_input_storage_formats (MutableSequence[str]):
154
+ Output only. The formats this Model supports in
155
+ [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config].
156
+ If
157
+ [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
158
+ exists, the instances should be given as per that schema.
159
+
160
+ The possible formats are:
161
+
162
+ - ``jsonl`` The JSON Lines format, where each instance is a
163
+ single line. Uses
164
+ [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source].
165
+
166
+ - ``csv`` The CSV format, where each instance is a single
167
+ comma-separated line. The first line in the file is the
168
+ header, containing comma-separated field names. Uses
169
+ [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source].
170
+
171
+ - ``tf-record`` The TFRecord format, where each instance is
172
+ a single record in tfrecord syntax. Uses
173
+ [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source].
174
+
175
+ - ``tf-record-gzip`` Similar to ``tf-record``, but the file
176
+ is gzipped. Uses
177
+ [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source].
178
+
179
+ - ``bigquery`` Each instance is a single row in BigQuery.
180
+ Uses
181
+ [BigQuerySource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.bigquery_source].
182
+
183
+ - ``file-list`` Each line of the file is the location of an
184
+ instance to process, uses ``gcs_source`` field of the
185
+ [InputConfig][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig]
186
+ object.
187
+
188
+ If this Model doesn't support any of these formats it means
189
+ it cannot be used with a
190
+ [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob].
191
+ However, if it has
192
+ [supported_deployment_resources_types][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types],
193
+ it could serve online predictions by using
194
+ [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]
195
+ or
196
+ [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain].
197
+ supported_output_storage_formats (MutableSequence[str]):
198
+ Output only. The formats this Model supports in
199
+ [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config].
200
+ If both
201
+ [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
202
+ and
203
+ [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri]
204
+ exist, the predictions are returned together with their
205
+ instances. In other words, the prediction has the original
206
+ instance data first, followed by the actual prediction
207
+ content (as per the schema).
208
+
209
+ The possible formats are:
210
+
211
+ - ``jsonl`` The JSON Lines format, where each prediction is
212
+ a single line. Uses
213
+ [GcsDestination][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.gcs_destination].
214
+
215
+ - ``csv`` The CSV format, where each prediction is a single
216
+ comma-separated line. The first line in the file is the
217
+ header, containing comma-separated field names. Uses
218
+ [GcsDestination][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.gcs_destination].
219
+
220
+ - ``bigquery`` Each prediction is a single row in a BigQuery
221
+ table, uses
222
+ [BigQueryDestination][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.bigquery_destination]
223
+ .
224
+
225
+ If this Model doesn't support any of these formats it means
226
+ it cannot be used with a
227
+ [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob].
228
+ However, if it has
229
+ [supported_deployment_resources_types][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types],
230
+ it could serve online predictions by using
231
+ [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]
232
+ or
233
+ [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain].
234
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
235
+ Output only. Timestamp when this Model was
236
+ uploaded into Vertex AI.
237
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
238
+ Output only. Timestamp when this Model was
239
+ most recently updated.
240
+ deployed_models (MutableSequence[google.cloud.aiplatform_v1.types.DeployedModelRef]):
241
+ Output only. The pointers to DeployedModels
242
+ created from this Model. Note that Model could
243
+ have been deployed to Endpoints in different
244
+ Locations.
245
+ explanation_spec (google.cloud.aiplatform_v1.types.ExplanationSpec):
246
+ The default explanation specification for this Model.
247
+
248
+ The Model can be used for [requesting
249
+ explanation][google.cloud.aiplatform.v1.PredictionService.Explain]
250
+ after being
251
+ [deployed][google.cloud.aiplatform.v1.EndpointService.DeployModel]
252
+ if it is populated. The Model can be used for [batch
253
+ explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation]
254
+ if it is populated.
255
+
256
+ All fields of the explanation_spec can be overridden by
257
+ [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
258
+ of
259
+ [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1.DeployModelRequest.deployed_model],
260
+ or
261
+ [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec]
262
+ of
263
+ [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob].
264
+
265
+ If the default explanation specification is not set for this
266
+ Model, this Model can still be used for [requesting
267
+ explanation][google.cloud.aiplatform.v1.PredictionService.Explain]
268
+ by setting
269
+ [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
270
+ of
271
+ [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1.DeployModelRequest.deployed_model]
272
+ and for [batch
273
+ explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation]
274
+ by setting
275
+ [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec]
276
+ of
277
+ [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob].
278
+ etag (str):
279
+ Used to perform consistent read-modify-write
280
+ updates. If not set, a blind "overwrite" update
281
+ happens.
282
+ labels (MutableMapping[str, str]):
283
+ The labels with user-defined metadata to
284
+ organize your Models.
285
+ Label keys and values can be no longer than 64
286
+ characters (Unicode codepoints), can only
287
+ contain lowercase letters, numeric characters,
288
+ underscores and dashes. International characters
289
+ are allowed.
290
+
291
+ See https://goo.gl/xmQnxf for more information
292
+ and examples of labels.
293
+ data_stats (google.cloud.aiplatform_v1.types.Model.DataStats):
294
+ Stats of data used for training or evaluating the Model.
295
+
296
+ Only populated when the Model is trained by a
297
+ TrainingPipeline with
298
+ [data_input_config][google.cloud.aiplatform.v1.TrainingPipeline.input_data_config].
299
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
300
+ Customer-managed encryption key spec for a
301
+ Model. If set, this Model and all sub-resources
302
+ of this Model will be secured by this key.
303
+ model_source_info (google.cloud.aiplatform_v1.types.ModelSourceInfo):
304
+ Output only. Source of a model. It can either
305
+ be automl training pipeline, custom training
306
+ pipeline, BigQuery ML, or saved and tuned from
307
+ Genie or Model Garden.
308
+ original_model_info (google.cloud.aiplatform_v1.types.Model.OriginalModelInfo):
309
+ Output only. If this Model is a copy of
310
+ another Model, this contains info about the
311
+ original.
312
+ metadata_artifact (str):
313
+ Output only. The resource name of the Artifact that was
314
+ created in MetadataStore when creating the Model. The
315
+ Artifact resource name pattern is
316
+ ``projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}``.
317
+ base_model_source (google.cloud.aiplatform_v1.types.Model.BaseModelSource):
318
+ Optional. User input field to specify the
319
+ base model source. Currently it only supports
320
+ specifing the Model Garden models and Genie
321
+ models.
322
+ satisfies_pzs (bool):
323
+ Output only. Reserved for future use.
324
+ satisfies_pzi (bool):
325
+ Output only. Reserved for future use.
326
+ checkpoints (MutableSequence[google.cloud.aiplatform_v1.types.Checkpoint]):
327
+ Optional. Output only. The checkpoints of the
328
+ model.
329
+ """
330
+
331
+ class DeploymentResourcesType(proto.Enum):
332
+ r"""Identifies a type of Model's prediction resources.
333
+
334
+ Values:
335
+ DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED (0):
336
+ Should not be used.
337
+ DEDICATED_RESOURCES (1):
338
+ Resources that are dedicated to the
339
+ [DeployedModel][google.cloud.aiplatform.v1.DeployedModel],
340
+ and that need a higher degree of manual configuration.
341
+ AUTOMATIC_RESOURCES (2):
342
+ Resources that to large degree are decided by
343
+ Vertex AI, and require only a modest additional
344
+ configuration.
345
+ SHARED_RESOURCES (3):
346
+ Resources that can be shared by multiple
347
+ [DeployedModels][google.cloud.aiplatform.v1.DeployedModel].
348
+ A pre-configured
349
+ [DeploymentResourcePool][google.cloud.aiplatform.v1.DeploymentResourcePool]
350
+ is required.
351
+ """
352
+
353
+ DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0
354
+ DEDICATED_RESOURCES = 1
355
+ AUTOMATIC_RESOURCES = 2
356
+ SHARED_RESOURCES = 3
357
+
358
+ class ExportFormat(proto.Message):
359
+ r"""Represents export format supported by the Model.
360
+ All formats export to Google Cloud Storage.
361
+
362
+ Attributes:
363
+ id (str):
364
+ Output only. The ID of the export format. The possible
365
+ format IDs are:
366
+
367
+ - ``tflite`` Used for Android mobile devices.
368
+
369
+ - ``edgetpu-tflite`` Used for `Edge
370
+ TPU <https://cloud.google.com/edge-tpu/>`__ devices.
371
+
372
+ - ``tf-saved-model`` A tensorflow model in SavedModel
373
+ format.
374
+
375
+ - ``tf-js`` A
376
+ `TensorFlow.js <https://www.tensorflow.org/js>`__ model
377
+ that can be used in the browser and in Node.js using
378
+ JavaScript.
379
+
380
+ - ``core-ml`` Used for iOS mobile devices.
381
+
382
+ - ``custom-trained`` A Model that was uploaded or trained by
383
+ custom code.
384
+ exportable_contents (MutableSequence[google.cloud.aiplatform_v1.types.Model.ExportFormat.ExportableContent]):
385
+ Output only. The content of this Model that
386
+ may be exported.
387
+ """
388
+
389
+ class ExportableContent(proto.Enum):
390
+ r"""The Model content that can be exported.
391
+
392
+ Values:
393
+ EXPORTABLE_CONTENT_UNSPECIFIED (0):
394
+ Should not be used.
395
+ ARTIFACT (1):
396
+ Model artifact and any of its supported files. Will be
397
+ exported to the location specified by the
398
+ ``artifactDestination`` field of the
399
+ [ExportModelRequest.output_config][google.cloud.aiplatform.v1.ExportModelRequest.output_config]
400
+ object.
401
+ IMAGE (2):
402
+ The container image that is to be used when deploying this
403
+ Model. Will be exported to the location specified by the
404
+ ``imageDestination`` field of the
405
+ [ExportModelRequest.output_config][google.cloud.aiplatform.v1.ExportModelRequest.output_config]
406
+ object.
407
+ """
408
+
409
+ EXPORTABLE_CONTENT_UNSPECIFIED = 0
410
+ ARTIFACT = 1
411
+ IMAGE = 2
412
+
413
+ id: str = proto.Field(
414
+ proto.STRING,
415
+ number=1,
416
+ )
417
+ exportable_contents: MutableSequence["Model.ExportFormat.ExportableContent"] = (
418
+ proto.RepeatedField(
419
+ proto.ENUM,
420
+ number=2,
421
+ enum="Model.ExportFormat.ExportableContent",
422
+ )
423
+ )
424
+
425
+ class DataStats(proto.Message):
426
+ r"""Stats of data used for train or evaluate the Model.
427
+
428
+ Attributes:
429
+ training_data_items_count (int):
430
+ Number of DataItems that were used for
431
+ training this Model.
432
+ validation_data_items_count (int):
433
+ Number of DataItems that were used for
434
+ validating this Model during training.
435
+ test_data_items_count (int):
436
+ Number of DataItems that were used for
437
+ evaluating this Model. If the Model is evaluated
438
+ multiple times, this will be the number of test
439
+ DataItems used by the first evaluation. If the
440
+ Model is not evaluated, the number is 0.
441
+ training_annotations_count (int):
442
+ Number of Annotations that are used for
443
+ training this Model.
444
+ validation_annotations_count (int):
445
+ Number of Annotations that are used for
446
+ validating this Model during training.
447
+ test_annotations_count (int):
448
+ Number of Annotations that are used for
449
+ evaluating this Model. If the Model is evaluated
450
+ multiple times, this will be the number of test
451
+ Annotations used by the first evaluation. If the
452
+ Model is not evaluated, the number is 0.
453
+ """
454
+
455
+ training_data_items_count: int = proto.Field(
456
+ proto.INT64,
457
+ number=1,
458
+ )
459
+ validation_data_items_count: int = proto.Field(
460
+ proto.INT64,
461
+ number=2,
462
+ )
463
+ test_data_items_count: int = proto.Field(
464
+ proto.INT64,
465
+ number=3,
466
+ )
467
+ training_annotations_count: int = proto.Field(
468
+ proto.INT64,
469
+ number=4,
470
+ )
471
+ validation_annotations_count: int = proto.Field(
472
+ proto.INT64,
473
+ number=5,
474
+ )
475
+ test_annotations_count: int = proto.Field(
476
+ proto.INT64,
477
+ number=6,
478
+ )
479
+
480
+ class OriginalModelInfo(proto.Message):
481
+ r"""Contains information about the original Model if this Model
482
+ is a copy.
483
+
484
+ Attributes:
485
+ model (str):
486
+ Output only. The resource name of the Model this Model is a
487
+ copy of, including the revision. Format:
488
+ ``projects/{project}/locations/{location}/models/{model_id}@{version_id}``
489
+ """
490
+
491
+ model: str = proto.Field(
492
+ proto.STRING,
493
+ number=1,
494
+ )
495
+
496
+ class BaseModelSource(proto.Message):
497
+ r"""User input field to specify the base model source. Currently
498
+ it only supports specifing the Model Garden models and Genie
499
+ models.
500
+
501
+ This message has `oneof`_ fields (mutually exclusive fields).
502
+ For each oneof, at most one member field can be set at the same time.
503
+ Setting any member of the oneof automatically clears all other
504
+ members.
505
+
506
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
507
+
508
+ Attributes:
509
+ model_garden_source (google.cloud.aiplatform_v1.types.ModelGardenSource):
510
+ Source information of Model Garden models.
511
+
512
+ This field is a member of `oneof`_ ``source``.
513
+ genie_source (google.cloud.aiplatform_v1.types.GenieSource):
514
+ Information about the base model of Genie
515
+ models.
516
+
517
+ This field is a member of `oneof`_ ``source``.
518
+ """
519
+
520
+ model_garden_source: "ModelGardenSource" = proto.Field(
521
+ proto.MESSAGE,
522
+ number=1,
523
+ oneof="source",
524
+ message="ModelGardenSource",
525
+ )
526
+ genie_source: "GenieSource" = proto.Field(
527
+ proto.MESSAGE,
528
+ number=2,
529
+ oneof="source",
530
+ message="GenieSource",
531
+ )
532
+
533
+ name: str = proto.Field(
534
+ proto.STRING,
535
+ number=1,
536
+ )
537
+ version_id: str = proto.Field(
538
+ proto.STRING,
539
+ number=28,
540
+ )
541
+ version_aliases: MutableSequence[str] = proto.RepeatedField(
542
+ proto.STRING,
543
+ number=29,
544
+ )
545
+ version_create_time: timestamp_pb2.Timestamp = proto.Field(
546
+ proto.MESSAGE,
547
+ number=31,
548
+ message=timestamp_pb2.Timestamp,
549
+ )
550
+ version_update_time: timestamp_pb2.Timestamp = proto.Field(
551
+ proto.MESSAGE,
552
+ number=32,
553
+ message=timestamp_pb2.Timestamp,
554
+ )
555
+ display_name: str = proto.Field(
556
+ proto.STRING,
557
+ number=2,
558
+ )
559
+ description: str = proto.Field(
560
+ proto.STRING,
561
+ number=3,
562
+ )
563
+ version_description: str = proto.Field(
564
+ proto.STRING,
565
+ number=30,
566
+ )
567
+ default_checkpoint_id: str = proto.Field(
568
+ proto.STRING,
569
+ number=53,
570
+ )
571
+ predict_schemata: "PredictSchemata" = proto.Field(
572
+ proto.MESSAGE,
573
+ number=4,
574
+ message="PredictSchemata",
575
+ )
576
+ metadata_schema_uri: str = proto.Field(
577
+ proto.STRING,
578
+ number=5,
579
+ )
580
+ metadata: struct_pb2.Value = proto.Field(
581
+ proto.MESSAGE,
582
+ number=6,
583
+ message=struct_pb2.Value,
584
+ )
585
+ supported_export_formats: MutableSequence[ExportFormat] = proto.RepeatedField(
586
+ proto.MESSAGE,
587
+ number=20,
588
+ message=ExportFormat,
589
+ )
590
+ training_pipeline: str = proto.Field(
591
+ proto.STRING,
592
+ number=7,
593
+ )
594
+ pipeline_job: str = proto.Field(
595
+ proto.STRING,
596
+ number=47,
597
+ )
598
+ container_spec: "ModelContainerSpec" = proto.Field(
599
+ proto.MESSAGE,
600
+ number=9,
601
+ message="ModelContainerSpec",
602
+ )
603
+ artifact_uri: str = proto.Field(
604
+ proto.STRING,
605
+ number=26,
606
+ )
607
+ supported_deployment_resources_types: MutableSequence[DeploymentResourcesType] = (
608
+ proto.RepeatedField(
609
+ proto.ENUM,
610
+ number=10,
611
+ enum=DeploymentResourcesType,
612
+ )
613
+ )
614
+ supported_input_storage_formats: MutableSequence[str] = proto.RepeatedField(
615
+ proto.STRING,
616
+ number=11,
617
+ )
618
+ supported_output_storage_formats: MutableSequence[str] = proto.RepeatedField(
619
+ proto.STRING,
620
+ number=12,
621
+ )
622
+ create_time: timestamp_pb2.Timestamp = proto.Field(
623
+ proto.MESSAGE,
624
+ number=13,
625
+ message=timestamp_pb2.Timestamp,
626
+ )
627
+ update_time: timestamp_pb2.Timestamp = proto.Field(
628
+ proto.MESSAGE,
629
+ number=14,
630
+ message=timestamp_pb2.Timestamp,
631
+ )
632
+ deployed_models: MutableSequence[deployed_model_ref.DeployedModelRef] = (
633
+ proto.RepeatedField(
634
+ proto.MESSAGE,
635
+ number=15,
636
+ message=deployed_model_ref.DeployedModelRef,
637
+ )
638
+ )
639
+ explanation_spec: explanation.ExplanationSpec = proto.Field(
640
+ proto.MESSAGE,
641
+ number=23,
642
+ message=explanation.ExplanationSpec,
643
+ )
644
+ etag: str = proto.Field(
645
+ proto.STRING,
646
+ number=16,
647
+ )
648
+ labels: MutableMapping[str, str] = proto.MapField(
649
+ proto.STRING,
650
+ proto.STRING,
651
+ number=17,
652
+ )
653
+ data_stats: DataStats = proto.Field(
654
+ proto.MESSAGE,
655
+ number=21,
656
+ message=DataStats,
657
+ )
658
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
659
+ proto.MESSAGE,
660
+ number=24,
661
+ message=gca_encryption_spec.EncryptionSpec,
662
+ )
663
+ model_source_info: "ModelSourceInfo" = proto.Field(
664
+ proto.MESSAGE,
665
+ number=38,
666
+ message="ModelSourceInfo",
667
+ )
668
+ original_model_info: OriginalModelInfo = proto.Field(
669
+ proto.MESSAGE,
670
+ number=34,
671
+ message=OriginalModelInfo,
672
+ )
673
+ metadata_artifact: str = proto.Field(
674
+ proto.STRING,
675
+ number=44,
676
+ )
677
+ base_model_source: BaseModelSource = proto.Field(
678
+ proto.MESSAGE,
679
+ number=50,
680
+ message=BaseModelSource,
681
+ )
682
+ satisfies_pzs: bool = proto.Field(
683
+ proto.BOOL,
684
+ number=51,
685
+ )
686
+ satisfies_pzi: bool = proto.Field(
687
+ proto.BOOL,
688
+ number=52,
689
+ )
690
+ checkpoints: MutableSequence["Checkpoint"] = proto.RepeatedField(
691
+ proto.MESSAGE,
692
+ number=57,
693
+ message="Checkpoint",
694
+ )
695
+
696
+
697
+ class LargeModelReference(proto.Message):
698
+ r"""Contains information about the Large Model.
699
+
700
+ Attributes:
701
+ name (str):
702
+ Required. The unique name of the large
703
+ Foundation or pre-built model. Like
704
+ "chat-bison", "text-bison". Or model name with
705
+ version ID, like "chat-bison@001",
706
+ "text-bison@005", etc.
707
+ """
708
+
709
+ name: str = proto.Field(
710
+ proto.STRING,
711
+ number=1,
712
+ )
713
+
714
+
715
+ class ModelGardenSource(proto.Message):
716
+ r"""Contains information about the source of the models generated
717
+ from Model Garden.
718
+
719
+ Attributes:
720
+ public_model_name (str):
721
+ Required. The model garden source model
722
+ resource name.
723
+ version_id (str):
724
+ Optional. The model garden source model
725
+ version ID.
726
+ skip_hf_model_cache (bool):
727
+ Optional. Whether to avoid pulling the model
728
+ from the HF cache.
729
+ """
730
+
731
+ public_model_name: str = proto.Field(
732
+ proto.STRING,
733
+ number=1,
734
+ )
735
+ version_id: str = proto.Field(
736
+ proto.STRING,
737
+ number=3,
738
+ )
739
+ skip_hf_model_cache: bool = proto.Field(
740
+ proto.BOOL,
741
+ number=4,
742
+ )
743
+
744
+
745
+ class GenieSource(proto.Message):
746
+ r"""Contains information about the source of the models generated
747
+ from Generative AI Studio.
748
+
749
+ Attributes:
750
+ base_model_uri (str):
751
+ Required. The public base model URI.
752
+ """
753
+
754
+ base_model_uri: str = proto.Field(
755
+ proto.STRING,
756
+ number=1,
757
+ )
758
+
759
+
760
+ class PredictSchemata(proto.Message):
761
+ r"""Contains the schemata used in Model's predictions and explanations
762
+ via
763
+ [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict],
764
+ [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]
765
+ and
766
+ [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob].
767
+
768
+ Attributes:
769
+ instance_schema_uri (str):
770
+ Immutable. Points to a YAML file stored on Google Cloud
771
+ Storage describing the format of a single instance, which
772
+ are used in
773
+ [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances],
774
+ [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances]
775
+ and
776
+ [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config].
777
+ The schema is defined as an OpenAPI 3.0.2 `Schema
778
+ Object <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject>`__.
779
+ AutoML Models always have this field populated by Vertex AI.
780
+ Note: The URI given on output will be immutable and probably
781
+ different, including the URI scheme, than the one given on
782
+ input. The output URI will point to a location where the
783
+ user only has a read access.
784
+ parameters_schema_uri (str):
785
+ Immutable. Points to a YAML file stored on Google Cloud
786
+ Storage describing the parameters of prediction and
787
+ explanation via
788
+ [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters],
789
+ [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters]
790
+ and
791
+ [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters].
792
+ The schema is defined as an OpenAPI 3.0.2 `Schema
793
+ Object <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject>`__.
794
+ AutoML Models always have this field populated by Vertex AI,
795
+ if no parameters are supported, then it is set to an empty
796
+ string. Note: The URI given on output will be immutable and
797
+ probably different, including the URI scheme, than the one
798
+ given on input. The output URI will point to a location
799
+ where the user only has a read access.
800
+ prediction_schema_uri (str):
801
+ Immutable. Points to a YAML file stored on Google Cloud
802
+ Storage describing the format of a single prediction
803
+ produced by this Model, which are returned via
804
+ [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions],
805
+ [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations],
806
+ and
807
+ [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config].
808
+ The schema is defined as an OpenAPI 3.0.2 `Schema
809
+ Object <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject>`__.
810
+ AutoML Models always have this field populated by Vertex AI.
811
+ Note: The URI given on output will be immutable and probably
812
+ different, including the URI scheme, than the one given on
813
+ input. The output URI will point to a location where the
814
+ user only has a read access.
815
+ """
816
+
817
+ instance_schema_uri: str = proto.Field(
818
+ proto.STRING,
819
+ number=1,
820
+ )
821
+ parameters_schema_uri: str = proto.Field(
822
+ proto.STRING,
823
+ number=2,
824
+ )
825
+ prediction_schema_uri: str = proto.Field(
826
+ proto.STRING,
827
+ number=3,
828
+ )
829
+
830
+
831
+ class ModelContainerSpec(proto.Message):
832
+ r"""Specification of a container for serving predictions. Some fields in
833
+ this message correspond to fields in the `Kubernetes Container v1
834
+ core
835
+ specification <https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core>`__.
836
+
837
+ Attributes:
838
+ image_uri (str):
839
+ Required. Immutable. URI of the Docker image to be used as
840
+ the custom container for serving predictions. This URI must
841
+ identify an image in Artifact Registry or Container
842
+ Registry. Learn more about the `container publishing
843
+ requirements <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing>`__,
844
+ including permissions requirements for the Vertex AI Service
845
+ Agent.
846
+
847
+ The container image is ingested upon
848
+ [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel],
849
+ stored internally, and this original path is afterwards not
850
+ used.
851
+
852
+ To learn about the requirements for the Docker image itself,
853
+ see `Custom container
854
+ requirements <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#>`__.
855
+
856
+ You can use the URI to one of Vertex AI's `pre-built
857
+ container images for
858
+ prediction <https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers>`__
859
+ in this field.
860
+ command (MutableSequence[str]):
861
+ Immutable. Specifies the command that runs when the
862
+ container starts. This overrides the container's
863
+ `ENTRYPOINT <https://docs.docker.com/engine/reference/builder/#entrypoint>`__.
864
+ Specify this field as an array of executable and arguments,
865
+ similar to a Docker ``ENTRYPOINT``'s "exec" form, not its
866
+ "shell" form.
867
+
868
+ If you do not specify this field, then the container's
869
+ ``ENTRYPOINT`` runs, in conjunction with the
870
+ [args][google.cloud.aiplatform.v1.ModelContainerSpec.args]
871
+ field or the container's
872
+ ```CMD`` <https://docs.docker.com/engine/reference/builder/#cmd>`__,
873
+ if either exists. If this field is not specified and the
874
+ container does not have an ``ENTRYPOINT``, then refer to the
875
+ Docker documentation about `how ``CMD`` and ``ENTRYPOINT``
876
+ interact <https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact>`__.
877
+
878
+ If you specify this field, then you can also specify the
879
+ ``args`` field to provide additional arguments for this
880
+ command. However, if you specify this field, then the
881
+ container's ``CMD`` is ignored. See the `Kubernetes
882
+ documentation about how the ``command`` and ``args`` fields
883
+ interact with a container's ``ENTRYPOINT`` and
884
+ ``CMD`` <https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes>`__.
885
+
886
+ In this field, you can reference `environment variables set
887
+ by Vertex
888
+ AI <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables>`__
889
+ and environment variables set in the
890
+ [env][google.cloud.aiplatform.v1.ModelContainerSpec.env]
891
+ field. You cannot reference environment variables set in the
892
+ Docker image. In order for environment variables to be
893
+ expanded, reference them by using the following syntax:
894
+ $(VARIABLE_NAME) Note that this differs from Bash variable
895
+ expansion, which does not use parentheses. If a variable
896
+ cannot be resolved, the reference in the input string is
897
+ used unchanged. To avoid variable expansion, you can escape
898
+ this syntax with ``$$``; for example: $$(VARIABLE_NAME) This
899
+ field corresponds to the ``command`` field of the Kubernetes
900
+ Containers `v1 core
901
+ API <https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core>`__.
902
+ args (MutableSequence[str]):
903
+ Immutable. Specifies arguments for the command that runs
904
+ when the container starts. This overrides the container's
905
+ ```CMD`` <https://docs.docker.com/engine/reference/builder/#cmd>`__.
906
+ Specify this field as an array of executable and arguments,
907
+ similar to a Docker ``CMD``'s "default parameters" form.
908
+
909
+ If you don't specify this field but do specify the
910
+ [command][google.cloud.aiplatform.v1.ModelContainerSpec.command]
911
+ field, then the command from the ``command`` field runs
912
+ without any additional arguments. See the `Kubernetes
913
+ documentation about how the ``command`` and ``args`` fields
914
+ interact with a container's ``ENTRYPOINT`` and
915
+ ``CMD`` <https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes>`__.
916
+
917
+ If you don't specify this field and don't specify the
918
+ ``command`` field, then the container's
919
+ ```ENTRYPOINT`` <https://docs.docker.com/engine/reference/builder/#cmd>`__
920
+ and ``CMD`` determine what runs based on their default
921
+ behavior. See the Docker documentation about `how ``CMD``
922
+ and ``ENTRYPOINT``
923
+ interact <https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact>`__.
924
+
925
+ In this field, you can reference `environment variables set
926
+ by Vertex
927
+ AI <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables>`__
928
+ and environment variables set in the
929
+ [env][google.cloud.aiplatform.v1.ModelContainerSpec.env]
930
+ field. You cannot reference environment variables set in the
931
+ Docker image. In order for environment variables to be
932
+ expanded, reference them by using the following syntax:
933
+ $(VARIABLE_NAME) Note that this differs from Bash variable
934
+ expansion, which does not use parentheses. If a variable
935
+ cannot be resolved, the reference in the input string is
936
+ used unchanged. To avoid variable expansion, you can escape
937
+ this syntax with ``$$``; for example: $$(VARIABLE_NAME) This
938
+ field corresponds to the ``args`` field of the Kubernetes
939
+ Containers `v1 core
940
+ API <https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core>`__.
941
+ env (MutableSequence[google.cloud.aiplatform_v1.types.EnvVar]):
942
+ Immutable. List of environment variables to set in the
943
+ container. After the container starts running, code running
944
+ in the container can read these environment variables.
945
+
946
+ Additionally, the
947
+ [command][google.cloud.aiplatform.v1.ModelContainerSpec.command]
948
+ and
949
+ [args][google.cloud.aiplatform.v1.ModelContainerSpec.args]
950
+ fields can reference these variables. Later entries in this
951
+ list can also reference earlier entries. For example, the
952
+ following example sets the variable ``VAR_2`` to have the
953
+ value ``foo bar``:
954
+
955
+ .. code:: json
956
+
957
+ [
958
+ {
959
+ "name": "VAR_1",
960
+ "value": "foo"
961
+ },
962
+ {
963
+ "name": "VAR_2",
964
+ "value": "$(VAR_1) bar"
965
+ }
966
+ ]
967
+
968
+ If you switch the order of the variables in the example,
969
+ then the expansion does not occur.
970
+
971
+ This field corresponds to the ``env`` field of the
972
+ Kubernetes Containers `v1 core
973
+ API <https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core>`__.
974
+ ports (MutableSequence[google.cloud.aiplatform_v1.types.Port]):
975
+ Immutable. List of ports to expose from the container.
976
+ Vertex AI sends any prediction requests that it receives to
977
+ the first port on this list. Vertex AI also sends `liveness
978
+ and health
979
+ checks <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness>`__
980
+ to this port.
981
+
982
+ If you do not specify this field, it defaults to following
983
+ value:
984
+
985
+ .. code:: json
986
+
987
+ [
988
+ {
989
+ "containerPort": 8080
990
+ }
991
+ ]
992
+
993
+ Vertex AI does not use ports other than the first one
994
+ listed. This field corresponds to the ``ports`` field of the
995
+ Kubernetes Containers `v1 core
996
+ API <https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core>`__.
997
+ predict_route (str):
998
+ Immutable. HTTP path on the container to send prediction
999
+ requests to. Vertex AI forwards requests sent using
1000
+ [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict]
1001
+ to this path on the container's IP address and port. Vertex
1002
+ AI then returns the container's response in the API
1003
+ response.
1004
+
1005
+ For example, if you set this field to ``/foo``, then when
1006
+ Vertex AI receives a prediction request, it forwards the
1007
+ request body in a POST request to the ``/foo`` path on the
1008
+ port of your container specified by the first value of this
1009
+ ``ModelContainerSpec``'s
1010
+ [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports]
1011
+ field.
1012
+
1013
+ If you don't specify this field, it defaults to the
1014
+ following value when you [deploy this Model to an
1015
+ Endpoint][google.cloud.aiplatform.v1.EndpointService.DeployModel]:
1016
+ /v1/endpoints/ENDPOINT/deployedModels/DEPLOYED_MODEL:predict
1017
+ The placeholders in this value are replaced as follows:
1018
+
1019
+ - ENDPOINT: The last segment (following ``endpoints/``)of
1020
+ the Endpoint.name][] field of the Endpoint where this
1021
+ Model has been deployed. (Vertex AI makes this value
1022
+ available to your container code as the
1023
+ ```AIP_ENDPOINT_ID`` environment
1024
+ variable <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables>`__.)
1025
+
1026
+ - DEPLOYED_MODEL:
1027
+ [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id]
1028
+ of the ``DeployedModel``. (Vertex AI makes this value
1029
+ available to your container code as the
1030
+ ```AIP_DEPLOYED_MODEL_ID`` environment
1031
+ variable <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables>`__.)
1032
+ health_route (str):
1033
+ Immutable. HTTP path on the container to send health checks
1034
+ to. Vertex AI intermittently sends GET requests to this path
1035
+ on the container's IP address and port to check that the
1036
+ container is healthy. Read more about `health
1037
+ checks <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health>`__.
1038
+
1039
+ For example, if you set this field to ``/bar``, then Vertex
1040
+ AI intermittently sends a GET request to the ``/bar`` path
1041
+ on the port of your container specified by the first value
1042
+ of this ``ModelContainerSpec``'s
1043
+ [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports]
1044
+ field.
1045
+
1046
+ If you don't specify this field, it defaults to the
1047
+ following value when you [deploy this Model to an
1048
+ Endpoint][google.cloud.aiplatform.v1.EndpointService.DeployModel]:
1049
+ /v1/endpoints/ENDPOINT/deployedModels/DEPLOYED_MODEL:predict
1050
+ The placeholders in this value are replaced as follows:
1051
+
1052
+ - ENDPOINT: The last segment (following ``endpoints/``)of
1053
+ the Endpoint.name][] field of the Endpoint where this
1054
+ Model has been deployed. (Vertex AI makes this value
1055
+ available to your container code as the
1056
+ ```AIP_ENDPOINT_ID`` environment
1057
+ variable <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables>`__.)
1058
+
1059
+ - DEPLOYED_MODEL:
1060
+ [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id]
1061
+ of the ``DeployedModel``. (Vertex AI makes this value
1062
+ available to your container code as the
1063
+ ```AIP_DEPLOYED_MODEL_ID`` environment
1064
+ variable <https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables>`__.)
1065
+ invoke_route_prefix (str):
1066
+ Immutable. Invoke route prefix for the custom container.
1067
+ "/\*" is the only supported value right now. By setting this
1068
+ field, any non-root route on this model will be accessible
1069
+ with invoke http call eg: "/invoke/foo/bar", however the
1070
+ [PredictionService.Invoke] RPC is not supported yet.
1071
+
1072
+ Only one of ``predict_route`` or ``invoke_route_prefix`` can
1073
+ be set, and we default to using ``predict_route`` if this
1074
+ field is not set. If this field is set, the Model can only
1075
+ be deployed to dedicated endpoint.
1076
+ grpc_ports (MutableSequence[google.cloud.aiplatform_v1.types.Port]):
1077
+ Immutable. List of ports to expose from the container.
1078
+ Vertex AI sends gRPC prediction requests that it receives to
1079
+ the first port on this list. Vertex AI also sends liveness
1080
+ and health checks to this port.
1081
+
1082
+ If you do not specify this field, gRPC requests to the
1083
+ container will be disabled.
1084
+
1085
+ Vertex AI does not use ports other than the first one
1086
+ listed. This field corresponds to the ``ports`` field of the
1087
+ Kubernetes Containers v1 core API.
1088
+ deployment_timeout (google.protobuf.duration_pb2.Duration):
1089
+ Immutable. Deployment timeout.
1090
+ Limit for deployment timeout is 2 hours.
1091
+ shared_memory_size_mb (int):
1092
+ Immutable. The amount of the VM memory to
1093
+ reserve as the shared memory for the model in
1094
+ megabytes.
1095
+ startup_probe (google.cloud.aiplatform_v1.types.Probe):
1096
+ Immutable. Specification for Kubernetes
1097
+ startup probe.
1098
+ health_probe (google.cloud.aiplatform_v1.types.Probe):
1099
+ Immutable. Specification for Kubernetes
1100
+ readiness probe.
1101
+ liveness_probe (google.cloud.aiplatform_v1.types.Probe):
1102
+ Immutable. Specification for Kubernetes
1103
+ liveness probe.
1104
+ """
1105
+
1106
+ image_uri: str = proto.Field(
1107
+ proto.STRING,
1108
+ number=1,
1109
+ )
1110
+ command: MutableSequence[str] = proto.RepeatedField(
1111
+ proto.STRING,
1112
+ number=2,
1113
+ )
1114
+ args: MutableSequence[str] = proto.RepeatedField(
1115
+ proto.STRING,
1116
+ number=3,
1117
+ )
1118
+ env: MutableSequence[env_var.EnvVar] = proto.RepeatedField(
1119
+ proto.MESSAGE,
1120
+ number=4,
1121
+ message=env_var.EnvVar,
1122
+ )
1123
+ ports: MutableSequence["Port"] = proto.RepeatedField(
1124
+ proto.MESSAGE,
1125
+ number=5,
1126
+ message="Port",
1127
+ )
1128
+ predict_route: str = proto.Field(
1129
+ proto.STRING,
1130
+ number=6,
1131
+ )
1132
+ health_route: str = proto.Field(
1133
+ proto.STRING,
1134
+ number=7,
1135
+ )
1136
+ invoke_route_prefix: str = proto.Field(
1137
+ proto.STRING,
1138
+ number=15,
1139
+ )
1140
+ grpc_ports: MutableSequence["Port"] = proto.RepeatedField(
1141
+ proto.MESSAGE,
1142
+ number=9,
1143
+ message="Port",
1144
+ )
1145
+ deployment_timeout: duration_pb2.Duration = proto.Field(
1146
+ proto.MESSAGE,
1147
+ number=10,
1148
+ message=duration_pb2.Duration,
1149
+ )
1150
+ shared_memory_size_mb: int = proto.Field(
1151
+ proto.INT64,
1152
+ number=11,
1153
+ )
1154
+ startup_probe: "Probe" = proto.Field(
1155
+ proto.MESSAGE,
1156
+ number=12,
1157
+ message="Probe",
1158
+ )
1159
+ health_probe: "Probe" = proto.Field(
1160
+ proto.MESSAGE,
1161
+ number=13,
1162
+ message="Probe",
1163
+ )
1164
+ liveness_probe: "Probe" = proto.Field(
1165
+ proto.MESSAGE,
1166
+ number=14,
1167
+ message="Probe",
1168
+ )
1169
+
1170
+
1171
+ class Port(proto.Message):
1172
+ r"""Represents a network port in a container.
1173
+
1174
+ Attributes:
1175
+ container_port (int):
1176
+ The number of the port to expose on the pod's
1177
+ IP address. Must be a valid port number, between
1178
+ 1 and 65535 inclusive.
1179
+ """
1180
+
1181
+ container_port: int = proto.Field(
1182
+ proto.INT32,
1183
+ number=3,
1184
+ )
1185
+
1186
+
1187
+ class ModelSourceInfo(proto.Message):
1188
+ r"""Detail description of the source information of the model.
1189
+
1190
+ Attributes:
1191
+ source_type (google.cloud.aiplatform_v1.types.ModelSourceInfo.ModelSourceType):
1192
+ Type of the model source.
1193
+ copy (bool):
1194
+ If this Model is copy of another Model. If true then
1195
+ [source_type][google.cloud.aiplatform.v1.ModelSourceInfo.source_type]
1196
+ pertains to the original.
1197
+ """
1198
+
1199
+ class ModelSourceType(proto.Enum):
1200
+ r"""Source of the model. Different from ``objective`` field, this
1201
+ ``ModelSourceType`` enum indicates the source from which the model
1202
+ was accessed or obtained, whereas the ``objective`` indicates the
1203
+ overall aim or function of this model.
1204
+
1205
+ Values:
1206
+ MODEL_SOURCE_TYPE_UNSPECIFIED (0):
1207
+ Should not be used.
1208
+ AUTOML (1):
1209
+ The Model is uploaded by automl training
1210
+ pipeline.
1211
+ CUSTOM (2):
1212
+ The Model is uploaded by user or custom
1213
+ training pipeline.
1214
+ BQML (3):
1215
+ The Model is registered and sync'ed from
1216
+ BigQuery ML.
1217
+ MODEL_GARDEN (4):
1218
+ The Model is saved or tuned from Model
1219
+ Garden.
1220
+ GENIE (5):
1221
+ The Model is saved or tuned from Genie.
1222
+ CUSTOM_TEXT_EMBEDDING (6):
1223
+ The Model is uploaded by text embedding
1224
+ finetuning pipeline.
1225
+ MARKETPLACE (7):
1226
+ The Model is saved or tuned from Marketplace.
1227
+ """
1228
+
1229
+ MODEL_SOURCE_TYPE_UNSPECIFIED = 0
1230
+ AUTOML = 1
1231
+ CUSTOM = 2
1232
+ BQML = 3
1233
+ MODEL_GARDEN = 4
1234
+ GENIE = 5
1235
+ CUSTOM_TEXT_EMBEDDING = 6
1236
+ MARKETPLACE = 7
1237
+
1238
+ source_type: ModelSourceType = proto.Field(
1239
+ proto.ENUM,
1240
+ number=1,
1241
+ enum=ModelSourceType,
1242
+ )
1243
+ copy: bool = proto.Field(
1244
+ proto.BOOL,
1245
+ number=2,
1246
+ )
1247
+
1248
+
1249
+ class Probe(proto.Message):
1250
+ r"""Probe describes a health check to be performed against a
1251
+ container to determine whether it is alive or ready to receive
1252
+ traffic.
1253
+
1254
+ This message has `oneof`_ fields (mutually exclusive fields).
1255
+ For each oneof, at most one member field can be set at the same time.
1256
+ Setting any member of the oneof automatically clears all other
1257
+ members.
1258
+
1259
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1260
+
1261
+ Attributes:
1262
+ exec_ (google.cloud.aiplatform_v1.types.Probe.ExecAction):
1263
+ ExecAction probes the health of a container
1264
+ by executing a command.
1265
+
1266
+ This field is a member of `oneof`_ ``probe_type``.
1267
+ http_get (google.cloud.aiplatform_v1.types.Probe.HttpGetAction):
1268
+ HttpGetAction probes the health of a
1269
+ container by sending an HTTP GET request.
1270
+
1271
+ This field is a member of `oneof`_ ``probe_type``.
1272
+ grpc (google.cloud.aiplatform_v1.types.Probe.GrpcAction):
1273
+ GrpcAction probes the health of a container
1274
+ by sending a gRPC request.
1275
+
1276
+ This field is a member of `oneof`_ ``probe_type``.
1277
+ tcp_socket (google.cloud.aiplatform_v1.types.Probe.TcpSocketAction):
1278
+ TcpSocketAction probes the health of a
1279
+ container by opening a TCP socket connection.
1280
+
1281
+ This field is a member of `oneof`_ ``probe_type``.
1282
+ period_seconds (int):
1283
+ How often (in seconds) to perform the probe. Default to 10
1284
+ seconds. Minimum value is 1. Must be less than
1285
+ timeout_seconds.
1286
+
1287
+ Maps to Kubernetes probe argument 'periodSeconds'.
1288
+ timeout_seconds (int):
1289
+ Number of seconds after which the probe times out. Defaults
1290
+ to 1 second. Minimum value is 1. Must be greater or equal to
1291
+ period_seconds.
1292
+
1293
+ Maps to Kubernetes probe argument 'timeoutSeconds'.
1294
+ failure_threshold (int):
1295
+ Number of consecutive failures before the
1296
+ probe is considered failed. Defaults to 3.
1297
+ Minimum value is 1.
1298
+
1299
+ Maps to Kubernetes probe argument
1300
+ 'failureThreshold'.
1301
+ success_threshold (int):
1302
+ Number of consecutive successes before the
1303
+ probe is considered successful. Defaults to 1.
1304
+ Minimum value is 1.
1305
+
1306
+ Maps to Kubernetes probe argument
1307
+ 'successThreshold'.
1308
+ initial_delay_seconds (int):
1309
+ Number of seconds to wait before starting the
1310
+ probe. Defaults to 0. Minimum value is 0.
1311
+
1312
+ Maps to Kubernetes probe argument
1313
+ 'initialDelaySeconds'.
1314
+ """
1315
+
1316
+ class ExecAction(proto.Message):
1317
+ r"""ExecAction specifies a command to execute.
1318
+
1319
+ Attributes:
1320
+ command (MutableSequence[str]):
1321
+ Command is the command line to execute inside the container,
1322
+ the working directory for the command is root ('/') in the
1323
+ container's filesystem. The command is simply exec'd, it is
1324
+ not run inside a shell, so traditional shell instructions
1325
+ ('\|', etc) won't work. To use a shell, you need to
1326
+ explicitly call out to that shell. Exit status of 0 is
1327
+ treated as live/healthy and non-zero is unhealthy.
1328
+ """
1329
+
1330
+ command: MutableSequence[str] = proto.RepeatedField(
1331
+ proto.STRING,
1332
+ number=1,
1333
+ )
1334
+
1335
+ class HttpGetAction(proto.Message):
1336
+ r"""HttpGetAction describes an action based on HTTP Get requests.
1337
+
1338
+ Attributes:
1339
+ path (str):
1340
+ Path to access on the HTTP server.
1341
+ port (int):
1342
+ Number of the port to access on the
1343
+ container. Number must be in the range 1 to
1344
+ 65535.
1345
+ host (str):
1346
+ Host name to connect to, defaults to the
1347
+ model serving container's IP. You probably want
1348
+ to set "Host" in httpHeaders instead.
1349
+ scheme (str):
1350
+ Scheme to use for connecting to the host.
1351
+ Defaults to HTTP. Acceptable values are "HTTP"
1352
+ or "HTTPS".
1353
+ http_headers (MutableSequence[google.cloud.aiplatform_v1.types.Probe.HttpHeader]):
1354
+ Custom headers to set in the request. HTTP
1355
+ allows repeated headers.
1356
+ """
1357
+
1358
+ path: str = proto.Field(
1359
+ proto.STRING,
1360
+ number=1,
1361
+ )
1362
+ port: int = proto.Field(
1363
+ proto.INT32,
1364
+ number=2,
1365
+ )
1366
+ host: str = proto.Field(
1367
+ proto.STRING,
1368
+ number=3,
1369
+ )
1370
+ scheme: str = proto.Field(
1371
+ proto.STRING,
1372
+ number=4,
1373
+ )
1374
+ http_headers: MutableSequence["Probe.HttpHeader"] = proto.RepeatedField(
1375
+ proto.MESSAGE,
1376
+ number=5,
1377
+ message="Probe.HttpHeader",
1378
+ )
1379
+
1380
+ class GrpcAction(proto.Message):
1381
+ r"""GrpcAction checks the health of a container using a gRPC
1382
+ service.
1383
+
1384
+ Attributes:
1385
+ port (int):
1386
+ Port number of the gRPC service. Number must
1387
+ be in the range 1 to 65535.
1388
+ service (str):
1389
+ Service is the name of the service to place
1390
+ in the gRPC HealthCheckRequest (see
1391
+ https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
1392
+
1393
+ If this is not specified, the default behavior
1394
+ is defined by gRPC.
1395
+ """
1396
+
1397
+ port: int = proto.Field(
1398
+ proto.INT32,
1399
+ number=1,
1400
+ )
1401
+ service: str = proto.Field(
1402
+ proto.STRING,
1403
+ number=2,
1404
+ )
1405
+
1406
+ class TcpSocketAction(proto.Message):
1407
+ r"""TcpSocketAction probes the health of a container by opening a
1408
+ TCP socket connection.
1409
+
1410
+ Attributes:
1411
+ port (int):
1412
+ Number of the port to access on the
1413
+ container. Number must be in the range 1 to
1414
+ 65535.
1415
+ host (str):
1416
+ Optional: Host name to connect to, defaults
1417
+ to the model serving container's IP.
1418
+ """
1419
+
1420
+ port: int = proto.Field(
1421
+ proto.INT32,
1422
+ number=1,
1423
+ )
1424
+ host: str = proto.Field(
1425
+ proto.STRING,
1426
+ number=2,
1427
+ )
1428
+
1429
+ class HttpHeader(proto.Message):
1430
+ r"""HttpHeader describes a custom header to be used in HTTP
1431
+ probes
1432
+
1433
+ Attributes:
1434
+ name (str):
1435
+ The header field name.
1436
+ This will be canonicalized upon output, so
1437
+ case-variant names will be understood as the
1438
+ same header.
1439
+ value (str):
1440
+ The header field value
1441
+ """
1442
+
1443
+ name: str = proto.Field(
1444
+ proto.STRING,
1445
+ number=1,
1446
+ )
1447
+ value: str = proto.Field(
1448
+ proto.STRING,
1449
+ number=2,
1450
+ )
1451
+
1452
+ exec_: ExecAction = proto.Field(
1453
+ proto.MESSAGE,
1454
+ number=1,
1455
+ oneof="probe_type",
1456
+ message=ExecAction,
1457
+ )
1458
+ http_get: HttpGetAction = proto.Field(
1459
+ proto.MESSAGE,
1460
+ number=4,
1461
+ oneof="probe_type",
1462
+ message=HttpGetAction,
1463
+ )
1464
+ grpc: GrpcAction = proto.Field(
1465
+ proto.MESSAGE,
1466
+ number=5,
1467
+ oneof="probe_type",
1468
+ message=GrpcAction,
1469
+ )
1470
+ tcp_socket: TcpSocketAction = proto.Field(
1471
+ proto.MESSAGE,
1472
+ number=6,
1473
+ oneof="probe_type",
1474
+ message=TcpSocketAction,
1475
+ )
1476
+ period_seconds: int = proto.Field(
1477
+ proto.INT32,
1478
+ number=2,
1479
+ )
1480
+ timeout_seconds: int = proto.Field(
1481
+ proto.INT32,
1482
+ number=3,
1483
+ )
1484
+ failure_threshold: int = proto.Field(
1485
+ proto.INT32,
1486
+ number=7,
1487
+ )
1488
+ success_threshold: int = proto.Field(
1489
+ proto.INT32,
1490
+ number=8,
1491
+ )
1492
+ initial_delay_seconds: int = proto.Field(
1493
+ proto.INT32,
1494
+ number=9,
1495
+ )
1496
+
1497
+
1498
+ class Checkpoint(proto.Message):
1499
+ r"""Describes the machine learning model version checkpoint.
1500
+
1501
+ Attributes:
1502
+ checkpoint_id (str):
1503
+ The ID of the checkpoint.
1504
+ epoch (int):
1505
+ The epoch of the checkpoint.
1506
+ step (int):
1507
+ The step of the checkpoint.
1508
+ """
1509
+
1510
+ checkpoint_id: str = proto.Field(
1511
+ proto.STRING,
1512
+ number=1,
1513
+ )
1514
+ epoch: int = proto.Field(
1515
+ proto.INT64,
1516
+ number=2,
1517
+ )
1518
+ step: int = proto.Field(
1519
+ proto.INT64,
1520
+ number=3,
1521
+ )
1522
+
1523
+
1524
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/model_deployment_monitoring_job.py ADDED
@@ -0,0 +1,580 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec
23
+ from google.cloud.aiplatform_v1.types import feature_monitoring_stats
24
+ from google.cloud.aiplatform_v1.types import io
25
+ from google.cloud.aiplatform_v1.types import job_state
26
+ from google.cloud.aiplatform_v1.types import model_monitoring
27
+ import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
28
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
29
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
30
+ import google.rpc.status_pb2 as status_pb2 # type: ignore
31
+
32
+
33
+ __protobuf__ = proto.module(
34
+ package="google.cloud.aiplatform.v1",
35
+ manifest={
36
+ "ModelDeploymentMonitoringObjectiveType",
37
+ "ModelDeploymentMonitoringJob",
38
+ "ModelDeploymentMonitoringBigQueryTable",
39
+ "ModelDeploymentMonitoringObjectiveConfig",
40
+ "ModelDeploymentMonitoringScheduleConfig",
41
+ "ModelMonitoringStatsAnomalies",
42
+ },
43
+ )
44
+
45
+
46
+ class ModelDeploymentMonitoringObjectiveType(proto.Enum):
47
+ r"""The Model Monitoring Objective types.
48
+
49
+ Values:
50
+ MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED (0):
51
+ Default value, should not be set.
52
+ RAW_FEATURE_SKEW (1):
53
+ Raw feature values' stats to detect skew
54
+ between Training-Prediction datasets.
55
+ RAW_FEATURE_DRIFT (2):
56
+ Raw feature values' stats to detect drift
57
+ between Serving-Prediction datasets.
58
+ FEATURE_ATTRIBUTION_SKEW (3):
59
+ Feature attribution scores to detect skew
60
+ between Training-Prediction datasets.
61
+ FEATURE_ATTRIBUTION_DRIFT (4):
62
+ Feature attribution scores to detect skew
63
+ between Prediction datasets collected within
64
+ different time windows.
65
+ """
66
+
67
+ MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0
68
+ RAW_FEATURE_SKEW = 1
69
+ RAW_FEATURE_DRIFT = 2
70
+ FEATURE_ATTRIBUTION_SKEW = 3
71
+ FEATURE_ATTRIBUTION_DRIFT = 4
72
+
73
+
74
+ class ModelDeploymentMonitoringJob(proto.Message):
75
+ r"""Represents a job that runs periodically to monitor the
76
+ deployed models in an endpoint. It will analyze the logged
77
+ training & prediction data to detect any abnormal behaviors.
78
+
79
+ Attributes:
80
+ name (str):
81
+ Output only. Resource name of a
82
+ ModelDeploymentMonitoringJob.
83
+ display_name (str):
84
+ Required. The user-defined name of the
85
+ ModelDeploymentMonitoringJob. The name can be up
86
+ to 128 characters long and can consist of any
87
+ UTF-8 characters.
88
+ Display name of a ModelDeploymentMonitoringJob.
89
+ endpoint (str):
90
+ Required. Endpoint resource name. Format:
91
+ ``projects/{project}/locations/{location}/endpoints/{endpoint}``
92
+ state (google.cloud.aiplatform_v1.types.JobState):
93
+ Output only. The detailed state of the
94
+ monitoring job. When the job is still creating,
95
+ the state will be 'PENDING'. Once the job is
96
+ successfully created, the state will be
97
+ 'RUNNING'. Pause the job, the state will be
98
+ 'PAUSED'.
99
+ Resume the job, the state will return to
100
+ 'RUNNING'.
101
+ schedule_state (google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringJob.MonitoringScheduleState):
102
+ Output only. Schedule state when the
103
+ monitoring job is in Running state.
104
+ latest_monitoring_pipeline_metadata (google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata):
105
+ Output only. Latest triggered monitoring
106
+ pipeline metadata.
107
+ model_deployment_monitoring_objective_configs (MutableSequence[google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringObjectiveConfig]):
108
+ Required. The config for monitoring
109
+ objectives. This is a per DeployedModel config.
110
+ Each DeployedModel needs to be configured
111
+ separately.
112
+ model_deployment_monitoring_schedule_config (google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringScheduleConfig):
113
+ Required. Schedule config for running the
114
+ monitoring job.
115
+ logging_sampling_strategy (google.cloud.aiplatform_v1.types.SamplingStrategy):
116
+ Required. Sample Strategy for logging.
117
+ model_monitoring_alert_config (google.cloud.aiplatform_v1.types.ModelMonitoringAlertConfig):
118
+ Alert config for model monitoring.
119
+ predict_instance_schema_uri (str):
120
+ YAML schema file uri describing the format of
121
+ a single instance, which are given to format
122
+ this Endpoint's prediction (and explanation). If
123
+ not set, we will generate predict schema from
124
+ collected predict requests.
125
+ sample_predict_instance (google.protobuf.struct_pb2.Value):
126
+ Sample Predict instance, same format as
127
+ [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances],
128
+ this can be set as a replacement of
129
+ [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.predict_instance_schema_uri].
130
+ If not set, we will generate predict schema from collected
131
+ predict requests.
132
+ analysis_instance_schema_uri (str):
133
+ YAML schema file uri describing the format of a single
134
+ instance that you want Tensorflow Data Validation (TFDV) to
135
+ analyze.
136
+
137
+ If this field is empty, all the feature data types are
138
+ inferred from
139
+ [predict_instance_schema_uri][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
140
+ meaning that TFDV will use the data in the exact format(data
141
+ type) as prediction request/response. If there are any data
142
+ type differences between predict instance and TFDV instance,
143
+ this field can be used to override the schema. For models
144
+ trained with Vertex AI, this field must be set as all the
145
+ fields in predict instance formatted as string.
146
+ bigquery_tables (MutableSequence[google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringBigQueryTable]):
147
+ Output only. The created bigquery tables for
148
+ the job under customer project. Customer could
149
+ do their own query & analysis. There could be 4
150
+ log tables in maximum:
151
+
152
+ 1. Training data logging predict
153
+ request/response
154
+ 2. Serving data logging predict request/response
155
+ log_ttl (google.protobuf.duration_pb2.Duration):
156
+ The TTL of BigQuery tables in user projects
157
+ which stores logs. A day is the basic unit of
158
+ the TTL and we take the ceil of TTL/86400(a
159
+ day). e.g. { second: 3600} indicates ttl = 1
160
+ day.
161
+ labels (MutableMapping[str, str]):
162
+ The labels with user-defined metadata to
163
+ organize your ModelDeploymentMonitoringJob.
164
+
165
+ Label keys and values can be no longer than 64
166
+ characters (Unicode codepoints), can only
167
+ contain lowercase letters, numeric characters,
168
+ underscores and dashes. International characters
169
+ are allowed.
170
+
171
+ See https://goo.gl/xmQnxf for more information
172
+ and examples of labels.
173
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
174
+ Output only. Timestamp when this
175
+ ModelDeploymentMonitoringJob was created.
176
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
177
+ Output only. Timestamp when this
178
+ ModelDeploymentMonitoringJob was updated most
179
+ recently.
180
+ next_schedule_time (google.protobuf.timestamp_pb2.Timestamp):
181
+ Output only. Timestamp when this monitoring
182
+ pipeline will be scheduled to run for the next
183
+ round.
184
+ stats_anomalies_base_directory (google.cloud.aiplatform_v1.types.GcsDestination):
185
+ Stats anomalies base folder path.
186
+ encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec):
187
+ Customer-managed encryption key spec for a
188
+ ModelDeploymentMonitoringJob. If set, this
189
+ ModelDeploymentMonitoringJob and all
190
+ sub-resources of this
191
+ ModelDeploymentMonitoringJob will be secured by
192
+ this key.
193
+ enable_monitoring_pipeline_logs (bool):
194
+ If true, the scheduled monitoring pipeline logs are sent to
195
+ Google Cloud Logging, including pipeline status and
196
+ anomalies detected. Please note the logs incur cost, which
197
+ are subject to `Cloud Logging
198
+ pricing <https://cloud.google.com/logging#pricing>`__.
199
+ error (google.rpc.status_pb2.Status):
200
+ Output only. Only populated when the job's state is
201
+ ``JOB_STATE_FAILED`` or ``JOB_STATE_CANCELLED``.
202
+ satisfies_pzs (bool):
203
+ Output only. Reserved for future use.
204
+ satisfies_pzi (bool):
205
+ Output only. Reserved for future use.
206
+ """
207
+
208
+ class MonitoringScheduleState(proto.Enum):
209
+ r"""The state to Specify the monitoring pipeline.
210
+
211
+ Values:
212
+ MONITORING_SCHEDULE_STATE_UNSPECIFIED (0):
213
+ Unspecified state.
214
+ PENDING (1):
215
+ The pipeline is picked up and wait to run.
216
+ OFFLINE (2):
217
+ The pipeline is offline and will be scheduled
218
+ for next run.
219
+ RUNNING (3):
220
+ The pipeline is running.
221
+ """
222
+
223
+ MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0
224
+ PENDING = 1
225
+ OFFLINE = 2
226
+ RUNNING = 3
227
+
228
+ class LatestMonitoringPipelineMetadata(proto.Message):
229
+ r"""All metadata of most recent monitoring pipelines.
230
+
231
+ Attributes:
232
+ run_time (google.protobuf.timestamp_pb2.Timestamp):
233
+ The time that most recent monitoring
234
+ pipelines that is related to this run.
235
+ status (google.rpc.status_pb2.Status):
236
+ The status of the most recent monitoring
237
+ pipeline.
238
+ """
239
+
240
+ run_time: timestamp_pb2.Timestamp = proto.Field(
241
+ proto.MESSAGE,
242
+ number=1,
243
+ message=timestamp_pb2.Timestamp,
244
+ )
245
+ status: status_pb2.Status = proto.Field(
246
+ proto.MESSAGE,
247
+ number=2,
248
+ message=status_pb2.Status,
249
+ )
250
+
251
+ name: str = proto.Field(
252
+ proto.STRING,
253
+ number=1,
254
+ )
255
+ display_name: str = proto.Field(
256
+ proto.STRING,
257
+ number=2,
258
+ )
259
+ endpoint: str = proto.Field(
260
+ proto.STRING,
261
+ number=3,
262
+ )
263
+ state: job_state.JobState = proto.Field(
264
+ proto.ENUM,
265
+ number=4,
266
+ enum=job_state.JobState,
267
+ )
268
+ schedule_state: MonitoringScheduleState = proto.Field(
269
+ proto.ENUM,
270
+ number=5,
271
+ enum=MonitoringScheduleState,
272
+ )
273
+ latest_monitoring_pipeline_metadata: LatestMonitoringPipelineMetadata = proto.Field(
274
+ proto.MESSAGE,
275
+ number=25,
276
+ message=LatestMonitoringPipelineMetadata,
277
+ )
278
+ model_deployment_monitoring_objective_configs: MutableSequence[
279
+ "ModelDeploymentMonitoringObjectiveConfig"
280
+ ] = proto.RepeatedField(
281
+ proto.MESSAGE,
282
+ number=6,
283
+ message="ModelDeploymentMonitoringObjectiveConfig",
284
+ )
285
+ model_deployment_monitoring_schedule_config: (
286
+ "ModelDeploymentMonitoringScheduleConfig"
287
+ ) = proto.Field(
288
+ proto.MESSAGE,
289
+ number=7,
290
+ message="ModelDeploymentMonitoringScheduleConfig",
291
+ )
292
+ logging_sampling_strategy: model_monitoring.SamplingStrategy = proto.Field(
293
+ proto.MESSAGE,
294
+ number=8,
295
+ message=model_monitoring.SamplingStrategy,
296
+ )
297
+ model_monitoring_alert_config: model_monitoring.ModelMonitoringAlertConfig = (
298
+ proto.Field(
299
+ proto.MESSAGE,
300
+ number=15,
301
+ message=model_monitoring.ModelMonitoringAlertConfig,
302
+ )
303
+ )
304
+ predict_instance_schema_uri: str = proto.Field(
305
+ proto.STRING,
306
+ number=9,
307
+ )
308
+ sample_predict_instance: struct_pb2.Value = proto.Field(
309
+ proto.MESSAGE,
310
+ number=19,
311
+ message=struct_pb2.Value,
312
+ )
313
+ analysis_instance_schema_uri: str = proto.Field(
314
+ proto.STRING,
315
+ number=16,
316
+ )
317
+ bigquery_tables: MutableSequence["ModelDeploymentMonitoringBigQueryTable"] = (
318
+ proto.RepeatedField(
319
+ proto.MESSAGE,
320
+ number=10,
321
+ message="ModelDeploymentMonitoringBigQueryTable",
322
+ )
323
+ )
324
+ log_ttl: duration_pb2.Duration = proto.Field(
325
+ proto.MESSAGE,
326
+ number=17,
327
+ message=duration_pb2.Duration,
328
+ )
329
+ labels: MutableMapping[str, str] = proto.MapField(
330
+ proto.STRING,
331
+ proto.STRING,
332
+ number=11,
333
+ )
334
+ create_time: timestamp_pb2.Timestamp = proto.Field(
335
+ proto.MESSAGE,
336
+ number=12,
337
+ message=timestamp_pb2.Timestamp,
338
+ )
339
+ update_time: timestamp_pb2.Timestamp = proto.Field(
340
+ proto.MESSAGE,
341
+ number=13,
342
+ message=timestamp_pb2.Timestamp,
343
+ )
344
+ next_schedule_time: timestamp_pb2.Timestamp = proto.Field(
345
+ proto.MESSAGE,
346
+ number=14,
347
+ message=timestamp_pb2.Timestamp,
348
+ )
349
+ stats_anomalies_base_directory: io.GcsDestination = proto.Field(
350
+ proto.MESSAGE,
351
+ number=20,
352
+ message=io.GcsDestination,
353
+ )
354
+ encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field(
355
+ proto.MESSAGE,
356
+ number=21,
357
+ message=gca_encryption_spec.EncryptionSpec,
358
+ )
359
+ enable_monitoring_pipeline_logs: bool = proto.Field(
360
+ proto.BOOL,
361
+ number=22,
362
+ )
363
+ error: status_pb2.Status = proto.Field(
364
+ proto.MESSAGE,
365
+ number=23,
366
+ message=status_pb2.Status,
367
+ )
368
+ satisfies_pzs: bool = proto.Field(
369
+ proto.BOOL,
370
+ number=26,
371
+ )
372
+ satisfies_pzi: bool = proto.Field(
373
+ proto.BOOL,
374
+ number=27,
375
+ )
376
+
377
+
378
+ class ModelDeploymentMonitoringBigQueryTable(proto.Message):
379
+ r"""ModelDeploymentMonitoringBigQueryTable specifies the BigQuery
380
+ table name as well as some information of the logs stored in
381
+ this table.
382
+
383
+ Attributes:
384
+ log_source (google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringBigQueryTable.LogSource):
385
+ The source of log.
386
+ log_type (google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringBigQueryTable.LogType):
387
+ The type of log.
388
+ bigquery_table_path (str):
389
+ The created BigQuery table to store logs. Customer could do
390
+ their own query & analysis. Format:
391
+ ``bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>``
392
+ request_response_logging_schema_version (str):
393
+ Output only. The schema version of the
394
+ request/response logging BigQuery table. Default
395
+ to v1 if unset.
396
+ """
397
+
398
+ class LogSource(proto.Enum):
399
+ r"""Indicates where does the log come from.
400
+
401
+ Values:
402
+ LOG_SOURCE_UNSPECIFIED (0):
403
+ Unspecified source.
404
+ TRAINING (1):
405
+ Logs coming from Training dataset.
406
+ SERVING (2):
407
+ Logs coming from Serving traffic.
408
+ """
409
+
410
+ LOG_SOURCE_UNSPECIFIED = 0
411
+ TRAINING = 1
412
+ SERVING = 2
413
+
414
+ class LogType(proto.Enum):
415
+ r"""Indicates what type of traffic does the log belong to.
416
+
417
+ Values:
418
+ LOG_TYPE_UNSPECIFIED (0):
419
+ Unspecified type.
420
+ PREDICT (1):
421
+ Predict logs.
422
+ EXPLAIN (2):
423
+ Explain logs.
424
+ """
425
+
426
+ LOG_TYPE_UNSPECIFIED = 0
427
+ PREDICT = 1
428
+ EXPLAIN = 2
429
+
430
+ log_source: LogSource = proto.Field(
431
+ proto.ENUM,
432
+ number=1,
433
+ enum=LogSource,
434
+ )
435
+ log_type: LogType = proto.Field(
436
+ proto.ENUM,
437
+ number=2,
438
+ enum=LogType,
439
+ )
440
+ bigquery_table_path: str = proto.Field(
441
+ proto.STRING,
442
+ number=3,
443
+ )
444
+ request_response_logging_schema_version: str = proto.Field(
445
+ proto.STRING,
446
+ number=4,
447
+ )
448
+
449
+
450
+ class ModelDeploymentMonitoringObjectiveConfig(proto.Message):
451
+ r"""ModelDeploymentMonitoringObjectiveConfig contains the pair of
452
+ deployed_model_id to ModelMonitoringObjectiveConfig.
453
+
454
+ Attributes:
455
+ deployed_model_id (str):
456
+ The DeployedModel ID of the objective config.
457
+ objective_config (google.cloud.aiplatform_v1.types.ModelMonitoringObjectiveConfig):
458
+ The objective config of for the
459
+ modelmonitoring job of this deployed model.
460
+ """
461
+
462
+ deployed_model_id: str = proto.Field(
463
+ proto.STRING,
464
+ number=1,
465
+ )
466
+ objective_config: model_monitoring.ModelMonitoringObjectiveConfig = proto.Field(
467
+ proto.MESSAGE,
468
+ number=2,
469
+ message=model_monitoring.ModelMonitoringObjectiveConfig,
470
+ )
471
+
472
+
473
+ class ModelDeploymentMonitoringScheduleConfig(proto.Message):
474
+ r"""The config for scheduling monitoring job.
475
+
476
+ Attributes:
477
+ monitor_interval (google.protobuf.duration_pb2.Duration):
478
+ Required. The model monitoring job scheduling
479
+ interval. It will be rounded up to next full
480
+ hour. This defines how often the monitoring jobs
481
+ are triggered.
482
+ monitor_window (google.protobuf.duration_pb2.Duration):
483
+ The time window of the prediction data being included in
484
+ each prediction dataset. This window specifies how long the
485
+ data should be collected from historical model results for
486
+ each run. If not set,
487
+ [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval]
488
+ will be used. e.g. If currently the cutoff time is
489
+ 2022-01-08 14:30:00 and the monitor_window is set to be
490
+ 3600, then data from 2022-01-08 13:30:00 to 2022-01-08
491
+ 14:30:00 will be retrieved and aggregated to calculate the
492
+ monitoring statistics.
493
+ """
494
+
495
+ monitor_interval: duration_pb2.Duration = proto.Field(
496
+ proto.MESSAGE,
497
+ number=1,
498
+ message=duration_pb2.Duration,
499
+ )
500
+ monitor_window: duration_pb2.Duration = proto.Field(
501
+ proto.MESSAGE,
502
+ number=2,
503
+ message=duration_pb2.Duration,
504
+ )
505
+
506
+
507
+ class ModelMonitoringStatsAnomalies(proto.Message):
508
+ r"""Statistics and anomalies generated by Model Monitoring.
509
+
510
+ Attributes:
511
+ objective (google.cloud.aiplatform_v1.types.ModelDeploymentMonitoringObjectiveType):
512
+ Model Monitoring Objective those stats and
513
+ anomalies belonging to.
514
+ deployed_model_id (str):
515
+ Deployed Model ID.
516
+ anomaly_count (int):
517
+ Number of anomalies within all stats.
518
+ feature_stats (MutableSequence[google.cloud.aiplatform_v1.types.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies]):
519
+ A list of historical Stats and Anomalies
520
+ generated for all Features.
521
+ """
522
+
523
+ class FeatureHistoricStatsAnomalies(proto.Message):
524
+ r"""Historical Stats (and Anomalies) for a specific Feature.
525
+
526
+ Attributes:
527
+ feature_display_name (str):
528
+ Display Name of the Feature.
529
+ threshold (google.cloud.aiplatform_v1.types.ThresholdConfig):
530
+ Threshold for anomaly detection.
531
+ training_stats (google.cloud.aiplatform_v1.types.FeatureStatsAnomaly):
532
+ Stats calculated for the Training Dataset.
533
+ prediction_stats (MutableSequence[google.cloud.aiplatform_v1.types.FeatureStatsAnomaly]):
534
+ A list of historical stats generated by
535
+ different time window's Prediction Dataset.
536
+ """
537
+
538
+ feature_display_name: str = proto.Field(
539
+ proto.STRING,
540
+ number=1,
541
+ )
542
+ threshold: model_monitoring.ThresholdConfig = proto.Field(
543
+ proto.MESSAGE,
544
+ number=3,
545
+ message=model_monitoring.ThresholdConfig,
546
+ )
547
+ training_stats: feature_monitoring_stats.FeatureStatsAnomaly = proto.Field(
548
+ proto.MESSAGE,
549
+ number=4,
550
+ message=feature_monitoring_stats.FeatureStatsAnomaly,
551
+ )
552
+ prediction_stats: MutableSequence[
553
+ feature_monitoring_stats.FeatureStatsAnomaly
554
+ ] = proto.RepeatedField(
555
+ proto.MESSAGE,
556
+ number=5,
557
+ message=feature_monitoring_stats.FeatureStatsAnomaly,
558
+ )
559
+
560
+ objective: "ModelDeploymentMonitoringObjectiveType" = proto.Field(
561
+ proto.ENUM,
562
+ number=1,
563
+ enum="ModelDeploymentMonitoringObjectiveType",
564
+ )
565
+ deployed_model_id: str = proto.Field(
566
+ proto.STRING,
567
+ number=2,
568
+ )
569
+ anomaly_count: int = proto.Field(
570
+ proto.INT32,
571
+ number=3,
572
+ )
573
+ feature_stats: MutableSequence[FeatureHistoricStatsAnomalies] = proto.RepeatedField(
574
+ proto.MESSAGE,
575
+ number=4,
576
+ message=FeatureHistoricStatsAnomalies,
577
+ )
578
+
579
+
580
+ __all__ = tuple(sorted(__protobuf__.manifest))
data/conda_envs/evalclaw/lib/python3.11/site-packages/google/cloud/aiplatform_v1/types/model_evaluation.py ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.aiplatform_v1.types import explanation
23
+ import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
24
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
25
+
26
+
27
+ __protobuf__ = proto.module(
28
+ package="google.cloud.aiplatform.v1",
29
+ manifest={
30
+ "ModelEvaluation",
31
+ },
32
+ )
33
+
34
+
35
+ class ModelEvaluation(proto.Message):
36
+ r"""A collection of metrics calculated by comparing Model's
37
+ predictions on all of the test data against annotations from the
38
+ test data.
39
+
40
+ Attributes:
41
+ name (str):
42
+ Output only. The resource name of the
43
+ ModelEvaluation.
44
+ display_name (str):
45
+ The display name of the ModelEvaluation.
46
+ metrics_schema_uri (str):
47
+ Points to a YAML file stored on Google Cloud Storage
48
+ describing the
49
+ [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics]
50
+ of this ModelEvaluation. The schema is defined as an OpenAPI
51
+ 3.0.2 `Schema
52
+ Object <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject>`__.
53
+ metrics (google.protobuf.struct_pb2.Value):
54
+ Evaluation metrics of the Model. The schema of the metrics
55
+ is stored in
56
+ [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri]
57
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
58
+ Output only. Timestamp when this
59
+ ModelEvaluation was created.
60
+ slice_dimensions (MutableSequence[str]):
61
+ All possible
62
+ [dimensions][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.dimension]
63
+ of ModelEvaluationSlices. The dimensions can be used as the
64
+ filter of the
65
+ [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices]
66
+ request, in the form of ``slice.dimension = <dimension>``.
67
+ data_item_schema_uri (str):
68
+ Points to a YAML file stored on Google Cloud Storage
69
+ describing [EvaluatedDataItemView.data_item_payload][] and
70
+ [EvaluatedAnnotation.data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload].
71
+ The schema is defined as an OpenAPI 3.0.2 `Schema
72
+ Object <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject>`__.
73
+
74
+ This field is not populated if there are neither
75
+ EvaluatedDataItemViews nor EvaluatedAnnotations under this
76
+ ModelEvaluation.
77
+ annotation_schema_uri (str):
78
+ Points to a YAML file stored on Google Cloud Storage
79
+ describing [EvaluatedDataItemView.predictions][],
80
+ [EvaluatedDataItemView.ground_truths][],
81
+ [EvaluatedAnnotation.predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions],
82
+ and
83
+ [EvaluatedAnnotation.ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths].
84
+ The schema is defined as an OpenAPI 3.0.2 `Schema
85
+ Object <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject>`__.
86
+
87
+ This field is not populated if there are neither
88
+ EvaluatedDataItemViews nor EvaluatedAnnotations under this
89
+ ModelEvaluation.
90
+ model_explanation (google.cloud.aiplatform_v1.types.ModelExplanation):
91
+ Aggregated explanation metrics for the
92
+ Model's prediction output over the data this
93
+ ModelEvaluation uses. This field is populated
94
+ only if the Model is evaluated with
95
+ explanations, and only for AutoML tabular
96
+ Models.
97
+ explanation_specs (MutableSequence[google.cloud.aiplatform_v1.types.ModelEvaluation.ModelEvaluationExplanationSpec]):
98
+ Describes the values of
99
+ [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec]
100
+ that are used for explaining the predicted values on the
101
+ evaluated data.
102
+ metadata (google.protobuf.struct_pb2.Value):
103
+ The metadata of the ModelEvaluation. For the ModelEvaluation
104
+ uploaded from Managed Pipeline, metadata contains a
105
+ structured value with keys of "pipeline_job_id",
106
+ "evaluation_dataset_type", "evaluation_dataset_path",
107
+ "row_based_metrics_path".
108
+ """
109
+
110
+ class ModelEvaluationExplanationSpec(proto.Message):
111
+ r"""
112
+
113
+ Attributes:
114
+ explanation_type (str):
115
+ Explanation type.
116
+
117
+ For AutoML Image Classification models, possible values are:
118
+
119
+ - ``image-integrated-gradients``
120
+ - ``image-xrai``
121
+ explanation_spec (google.cloud.aiplatform_v1.types.ExplanationSpec):
122
+ Explanation spec details.
123
+ """
124
+
125
+ explanation_type: str = proto.Field(
126
+ proto.STRING,
127
+ number=1,
128
+ )
129
+ explanation_spec: explanation.ExplanationSpec = proto.Field(
130
+ proto.MESSAGE,
131
+ number=2,
132
+ message=explanation.ExplanationSpec,
133
+ )
134
+
135
+ name: str = proto.Field(
136
+ proto.STRING,
137
+ number=1,
138
+ )
139
+ display_name: str = proto.Field(
140
+ proto.STRING,
141
+ number=10,
142
+ )
143
+ metrics_schema_uri: str = proto.Field(
144
+ proto.STRING,
145
+ number=2,
146
+ )
147
+ metrics: struct_pb2.Value = proto.Field(
148
+ proto.MESSAGE,
149
+ number=3,
150
+ message=struct_pb2.Value,
151
+ )
152
+ create_time: timestamp_pb2.Timestamp = proto.Field(
153
+ proto.MESSAGE,
154
+ number=4,
155
+ message=timestamp_pb2.Timestamp,
156
+ )
157
+ slice_dimensions: MutableSequence[str] = proto.RepeatedField(
158
+ proto.STRING,
159
+ number=5,
160
+ )
161
+ data_item_schema_uri: str = proto.Field(
162
+ proto.STRING,
163
+ number=6,
164
+ )
165
+ annotation_schema_uri: str = proto.Field(
166
+ proto.STRING,
167
+ number=7,
168
+ )
169
+ model_explanation: explanation.ModelExplanation = proto.Field(
170
+ proto.MESSAGE,
171
+ number=8,
172
+ message=explanation.ModelExplanation,
173
+ )
174
+ explanation_specs: MutableSequence[ModelEvaluationExplanationSpec] = (
175
+ proto.RepeatedField(
176
+ proto.MESSAGE,
177
+ number=9,
178
+ message=ModelEvaluationExplanationSpec,
179
+ )
180
+ )
181
+ metadata: struct_pb2.Value = proto.Field(
182
+ proto.MESSAGE,
183
+ number=11,
184
+ message=struct_pb2.Value,
185
+ )
186
+
187
+
188
+ __all__ = tuple(sorted(__protobuf__.manifest))