google-apis-aiplatform_v1beta1 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,6 +87,11 @@ module Google
87
87
  # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionMedia>]
88
88
  attr_accessor :generated_samples
89
89
 
90
+ # Returns rai error message for filtered videos.
91
+ # Corresponds to the JSON property `raiErrorMessage`
92
+ # @return [String]
93
+ attr_accessor :rai_error_message
94
+
90
95
  # Returns if any videos were filtered due to RAI policies.
91
96
  # Corresponds to the JSON property `raiMediaFilteredCount`
92
97
  # @return [Fixnum]
@@ -109,6 +114,7 @@ module Google
109
114
  # Update properties of this object
110
115
  def update!(**args)
111
116
  @generated_samples = args[:generated_samples] if args.key?(:generated_samples)
117
+ @rai_error_message = args[:rai_error_message] if args.key?(:rai_error_message)
112
118
  @rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
113
119
  @rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
114
120
  @rai_text_filtered_reason = args[:rai_text_filtered_reason] if args.key?(:rai_text_filtered_reason)
@@ -1906,11 +1912,6 @@ module Google
1906
1912
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig]
1907
1913
  attr_accessor :http_basic_auth_config
1908
1914
 
1909
- # Empty message, used to indicate no authentication for an endpoint.
1910
- # Corresponds to the JSON property `noAuth`
1911
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigNoAuth]
1912
- attr_accessor :no_auth
1913
-
1914
1915
  # Config for user oauth.
1915
1916
  # Corresponds to the JSON property `oauthConfig`
1916
1917
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigOauthConfig]
@@ -1931,7 +1932,6 @@ module Google
1931
1932
  @auth_type = args[:auth_type] if args.key?(:auth_type)
1932
1933
  @google_service_account_config = args[:google_service_account_config] if args.key?(:google_service_account_config)
1933
1934
  @http_basic_auth_config = args[:http_basic_auth_config] if args.key?(:http_basic_auth_config)
1934
- @no_auth = args[:no_auth] if args.key?(:no_auth)
1935
1935
  @oauth_config = args[:oauth_config] if args.key?(:oauth_config)
1936
1936
  @oidc_config = args[:oidc_config] if args.key?(:oidc_config)
1937
1937
  end
@@ -2021,19 +2021,6 @@ module Google
2021
2021
  end
2022
2022
  end
2023
2023
 
2024
- # Empty message, used to indicate no authentication for an endpoint.
2025
- class GoogleCloudAiplatformV1beta1AuthConfigNoAuth
2026
- include Google::Apis::Core::Hashable
2027
-
2028
- def initialize(**args)
2029
- update!(**args)
2030
- end
2031
-
2032
- # Update properties of this object
2033
- def update!(**args)
2034
- end
2035
- end
2036
-
2037
2024
  # Config for user oauth.
2038
2025
  class GoogleCloudAiplatformV1beta1AuthConfigOauthConfig
2039
2026
  include Google::Apis::Core::Hashable
@@ -4636,6 +4623,61 @@ module Google
4636
4623
  end
4637
4624
  end
4638
4625
 
4626
+ # Runtime operation information for ModelMonitoringService.CreateModelMonitor.
4627
+ class GoogleCloudAiplatformV1beta1CreateModelMonitorOperationMetadata
4628
+ include Google::Apis::Core::Hashable
4629
+
4630
+ # Generic Metadata shared by all operations.
4631
+ # Corresponds to the JSON property `genericMetadata`
4632
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
4633
+ attr_accessor :generic_metadata
4634
+
4635
+ def initialize(**args)
4636
+ update!(**args)
4637
+ end
4638
+
4639
+ # Update properties of this object
4640
+ def update!(**args)
4641
+ @generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
4642
+ end
4643
+ end
4644
+
4645
+ # Request message for ModelMonitoringService.CreateModelMonitoringJob.
4646
+ class GoogleCloudAiplatformV1beta1CreateModelMonitoringJobRequest
4647
+ include Google::Apis::Core::Hashable
4648
+
4649
+ # Represents a model monitoring job that analyze dataset using different
4650
+ # monitoring algorithm.
4651
+ # Corresponds to the JSON property `modelMonitoringJob`
4652
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob]
4653
+ attr_accessor :model_monitoring_job
4654
+
4655
+ # Optional. The ID to use for the Model Monitoring Job, which will become the
4656
+ # final component of the model monitoring job resource name. The maximum length
4657
+ # is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/
4658
+ # `.
4659
+ # Corresponds to the JSON property `modelMonitoringJobId`
4660
+ # @return [String]
4661
+ attr_accessor :model_monitoring_job_id
4662
+
4663
+ # Required. The parent of the ModelMonitoringJob. Format: `projects/`project`/
4664
+ # locations/`location`/modelMoniitors/`model_monitor``
4665
+ # Corresponds to the JSON property `parent`
4666
+ # @return [String]
4667
+ attr_accessor :parent
4668
+
4669
+ def initialize(**args)
4670
+ update!(**args)
4671
+ end
4672
+
4673
+ # Update properties of this object
4674
+ def update!(**args)
4675
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
4676
+ @model_monitoring_job_id = args[:model_monitoring_job_id] if args.key?(:model_monitoring_job_id)
4677
+ @parent = args[:parent] if args.key?(:parent)
4678
+ end
4679
+ end
4680
+
4639
4681
  # Metadata information for NotebookService.CreateNotebookRuntimeTemplate.
4640
4682
  class GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata
4641
4683
  include Google::Apis::Core::Hashable
@@ -6697,6 +6739,11 @@ module Google
6697
6739
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig]
6698
6740
  attr_accessor :predict_request_response_logging_config
6699
6741
 
6742
+ # Represents configuration for private service connect.
6743
+ # Corresponds to the JSON property `privateServiceConnectConfig`
6744
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig]
6745
+ attr_accessor :private_service_connect_config
6746
+
6700
6747
  # A map from a DeployedModel's ID to the percentage of this Endpoint's traffic
6701
6748
  # that should be forwarded to that DeployedModel. If a DeployedModel's ID is not
6702
6749
  # listed in this map, then it receives no traffic. The traffic percentage values
@@ -6729,6 +6776,7 @@ module Google
6729
6776
  @name = args[:name] if args.key?(:name)
6730
6777
  @network = args[:network] if args.key?(:network)
6731
6778
  @predict_request_response_logging_config = args[:predict_request_response_logging_config] if args.key?(:predict_request_response_logging_config)
6779
+ @private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
6732
6780
  @traffic_split = args[:traffic_split] if args.key?(:traffic_split)
6733
6781
  @update_time = args[:update_time] if args.key?(:update_time)
6734
6782
  end
@@ -11007,7 +11055,7 @@ module Google
11007
11055
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexDatapoint]
11008
11056
  attr_accessor :datapoint
11009
11057
 
11010
- # The distance between the neighbor and the query vector.
11058
+ # The distance between the neighbor and the dense embedding query.
11011
11059
  # Corresponds to the JSON property `distance`
11012
11060
  # @return [Float]
11013
11061
  attr_accessor :distance
@@ -11663,7 +11711,7 @@ module Google
11663
11711
  attr_accessor :presence_penalty
11664
11712
 
11665
11713
  # Optional. Output response mimetype of the generated candidate text. Supported
11666
- # mimetype: `text/plain`: (default) Text output. `application/json`: JSON
11714
+ # mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON
11667
11715
  # response in the candidates. The model needs to be prompted to output the
11668
11716
  # appropriate response type, otherwise the behavior is undefined. This is a
11669
11717
  # preview feature.
@@ -11763,28 +11811,6 @@ module Google
11763
11811
  end
11764
11812
  end
11765
11813
 
11766
- # Tool to retrieve public web data for grounding, powered by Google.
11767
- class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
11768
- include Google::Apis::Core::Hashable
11769
-
11770
- # Optional. Disable using the result from this tool in detecting grounding
11771
- # attribution. This does not affect how the result is given to the model for
11772
- # generation.
11773
- # Corresponds to the JSON property `disableAttribution`
11774
- # @return [Boolean]
11775
- attr_accessor :disable_attribution
11776
- alias_method :disable_attribution?, :disable_attribution
11777
-
11778
- def initialize(**args)
11779
- update!(**args)
11780
- end
11781
-
11782
- # Update properties of this object
11783
- def update!(**args)
11784
- @disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
11785
- end
11786
- end
11787
-
11788
11814
  # Input for groundedness metric.
11789
11815
  class GoogleCloudAiplatformV1beta1GroundednessInput
11790
11816
  include Google::Apis::Core::Hashable
@@ -11886,108 +11912,20 @@ module Google
11886
11912
  end
11887
11913
  end
11888
11914
 
11889
- # Grounding attribution.
11890
- class GoogleCloudAiplatformV1beta1GroundingAttribution
11891
- include Google::Apis::Core::Hashable
11892
-
11893
- # Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1.
11894
- # 1 is the most confident.
11895
- # Corresponds to the JSON property `confidenceScore`
11896
- # @return [Float]
11897
- attr_accessor :confidence_score
11898
-
11899
- # Attribution from context retrieved by the retrieval tools.
11900
- # Corresponds to the JSON property `retrievedContext`
11901
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext]
11902
- attr_accessor :retrieved_context
11903
-
11904
- # Segment of the content.
11905
- # Corresponds to the JSON property `segment`
11906
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Segment]
11907
- attr_accessor :segment
11908
-
11909
- # Attribution from the web.
11910
- # Corresponds to the JSON property `web`
11911
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionWeb]
11912
- attr_accessor :web
11913
-
11914
- def initialize(**args)
11915
- update!(**args)
11916
- end
11917
-
11918
- # Update properties of this object
11919
- def update!(**args)
11920
- @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
11921
- @retrieved_context = args[:retrieved_context] if args.key?(:retrieved_context)
11922
- @segment = args[:segment] if args.key?(:segment)
11923
- @web = args[:web] if args.key?(:web)
11924
- end
11925
- end
11926
-
11927
- # Attribution from context retrieved by the retrieval tools.
11928
- class GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext
11929
- include Google::Apis::Core::Hashable
11930
-
11931
- # Output only. Title of the attribution.
11932
- # Corresponds to the JSON property `title`
11933
- # @return [String]
11934
- attr_accessor :title
11935
-
11936
- # Output only. URI reference of the attribution.
11937
- # Corresponds to the JSON property `uri`
11938
- # @return [String]
11939
- attr_accessor :uri
11940
-
11941
- def initialize(**args)
11942
- update!(**args)
11943
- end
11944
-
11945
- # Update properties of this object
11946
- def update!(**args)
11947
- @title = args[:title] if args.key?(:title)
11948
- @uri = args[:uri] if args.key?(:uri)
11949
- end
11950
- end
11951
-
11952
- # Attribution from the web.
11953
- class GoogleCloudAiplatformV1beta1GroundingAttributionWeb
11954
- include Google::Apis::Core::Hashable
11955
-
11956
- # Output only. Title of the attribution.
11957
- # Corresponds to the JSON property `title`
11958
- # @return [String]
11959
- attr_accessor :title
11960
-
11961
- # Output only. URI reference of the attribution.
11962
- # Corresponds to the JSON property `uri`
11963
- # @return [String]
11964
- attr_accessor :uri
11965
-
11966
- def initialize(**args)
11967
- update!(**args)
11968
- end
11969
-
11970
- # Update properties of this object
11971
- def update!(**args)
11972
- @title = args[:title] if args.key?(:title)
11973
- @uri = args[:uri] if args.key?(:uri)
11974
- end
11975
- end
11976
-
11977
11915
  # Metadata returned to client when grounding is enabled.
11978
11916
  class GoogleCloudAiplatformV1beta1GroundingMetadata
11979
11917
  include Google::Apis::Core::Hashable
11980
11918
 
11981
- # Optional. List of grounding attributions.
11982
- # Corresponds to the JSON property `groundingAttributions`
11983
- # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttribution>]
11984
- attr_accessor :grounding_attributions
11985
-
11986
11919
  # Optional. Queries executed by the retrieval tools.
11987
11920
  # Corresponds to the JSON property `retrievalQueries`
11988
11921
  # @return [Array<String>]
11989
11922
  attr_accessor :retrieval_queries
11990
11923
 
11924
+ # Google search entry point.
11925
+ # Corresponds to the JSON property `searchEntryPoint`
11926
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchEntryPoint]
11927
+ attr_accessor :search_entry_point
11928
+
11991
11929
  # Optional. Web search queries for the following-up web search.
11992
11930
  # Corresponds to the JSON property `webSearchQueries`
11993
11931
  # @return [Array<String>]
@@ -11999,8 +11937,8 @@ module Google
11999
11937
 
12000
11938
  # Update properties of this object
12001
11939
  def update!(**args)
12002
- @grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
12003
11940
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
11941
+ @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
12004
11942
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
12005
11943
  end
12006
11944
  end
@@ -12641,8 +12579,8 @@ module Google
12641
12579
  # @return [String]
12642
12580
  attr_accessor :datapoint_id
12643
12581
 
12644
- # Required. Feature embedding vector. An array of numbers with the length of [
12645
- # NearestNeighborSearchConfig.dimensions].
12582
+ # Required. Feature embedding vector for dense index. An array of numbers with
12583
+ # the length of [NearestNeighborSearchConfig.dimensions].
12646
12584
  # Corresponds to the JSON property `featureVector`
12647
12585
  # @return [Array<Float>]
12648
12586
  attr_accessor :feature_vector
@@ -12942,7 +12880,7 @@ module Google
12942
12880
  # @return [Fixnum]
12943
12881
  attr_accessor :shards_count
12944
12882
 
12945
- # Output only. The number of vectors in the Index.
12883
+ # Output only. The number of dense vectors in the Index.
12946
12884
  # Corresponds to the JSON property `vectorsCount`
12947
12885
  # @return [Fixnum]
12948
12886
  attr_accessor :vectors_count
@@ -13965,6 +13903,57 @@ module Google
13965
13903
  end
13966
13904
  end
13967
13905
 
13906
+ # Response message for ModelMonitoringService.ListModelMonitoringJobs.
13907
+ class GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse
13908
+ include Google::Apis::Core::Hashable
13909
+
13910
+ # A list of ModelMonitoringJobs that matches the specified filter in the request.
13911
+ # Corresponds to the JSON property `modelMonitoringJobs`
13912
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob>]
13913
+ attr_accessor :model_monitoring_jobs
13914
+
13915
+ # The standard List next-page token.
13916
+ # Corresponds to the JSON property `nextPageToken`
13917
+ # @return [String]
13918
+ attr_accessor :next_page_token
13919
+
13920
+ def initialize(**args)
13921
+ update!(**args)
13922
+ end
13923
+
13924
+ # Update properties of this object
13925
+ def update!(**args)
13926
+ @model_monitoring_jobs = args[:model_monitoring_jobs] if args.key?(:model_monitoring_jobs)
13927
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13928
+ end
13929
+ end
13930
+
13931
+ # Response message for ModelMonitoringService.ListModelMonitors
13932
+ class GoogleCloudAiplatformV1beta1ListModelMonitorsResponse
13933
+ include Google::Apis::Core::Hashable
13934
+
13935
+ # List of ModelMonitor in the requested page.
13936
+ # Corresponds to the JSON property `modelMonitors`
13937
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor>]
13938
+ attr_accessor :model_monitors
13939
+
13940
+ # A token to retrieve the next page of results. Pass to ListModelMonitorsRequest.
13941
+ # page_token to obtain that page.
13942
+ # Corresponds to the JSON property `nextPageToken`
13943
+ # @return [String]
13944
+ attr_accessor :next_page_token
13945
+
13946
+ def initialize(**args)
13947
+ update!(**args)
13948
+ end
13949
+
13950
+ # Update properties of this object
13951
+ def update!(**args)
13952
+ @model_monitors = args[:model_monitors] if args.key?(:model_monitors)
13953
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13954
+ end
13955
+ end
13956
+
13968
13957
  # Response message for ModelService.ListModelVersions
13969
13958
  class GoogleCloudAiplatformV1beta1ListModelVersionsResponse
13970
13959
  include Google::Apis::Core::Hashable
@@ -14071,6 +14060,32 @@ module Google
14071
14060
  end
14072
14061
  end
14073
14062
 
14063
+ # Response message for [NotebookService.CreateNotebookExecutionJob]
14064
+ class GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse
14065
+ include Google::Apis::Core::Hashable
14066
+
14067
+ # A token to retrieve next page of results. Pass to ListNotebookExecutionJobs.
14068
+ # page_token to obtain that page.
14069
+ # Corresponds to the JSON property `nextPageToken`
14070
+ # @return [String]
14071
+ attr_accessor :next_page_token
14072
+
14073
+ # List of NotebookExecutionJobs in the requested page.
14074
+ # Corresponds to the JSON property `notebookExecutionJobs`
14075
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob>]
14076
+ attr_accessor :notebook_execution_jobs
14077
+
14078
+ def initialize(**args)
14079
+ update!(**args)
14080
+ end
14081
+
14082
+ # Update properties of this object
14083
+ def update!(**args)
14084
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14085
+ @notebook_execution_jobs = args[:notebook_execution_jobs] if args.key?(:notebook_execution_jobs)
14086
+ end
14087
+ end
14088
+
14074
14089
  # Response message for NotebookService.ListNotebookRuntimeTemplates.
14075
14090
  class GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse
14076
14091
  include Google::Apis::Core::Hashable
@@ -16482,6 +16497,199 @@ module Google
16482
16497
  end
16483
16498
  end
16484
16499
 
16500
+ # Vertex AI Model Monitoring Service serves as a central hub for the analysis
16501
+ # and visualization of data quality and performance related to models.
16502
+ # ModelMonitor stands as a top level resource for overseeing your model
16503
+ # monitoring tasks.
16504
+ class GoogleCloudAiplatformV1beta1ModelMonitor
16505
+ include Google::Apis::Core::Hashable
16506
+
16507
+ # Output only. Timestamp when this ModelMonitor was created.
16508
+ # Corresponds to the JSON property `createTime`
16509
+ # @return [String]
16510
+ attr_accessor :create_time
16511
+
16512
+ # The display name of the ModelMonitor. The name can be up to 128 characters
16513
+ # long and can consist of any UTF-8.
16514
+ # Corresponds to the JSON property `displayName`
16515
+ # @return [String]
16516
+ attr_accessor :display_name
16517
+
16518
+ # Specification of Model explanation.
16519
+ # Corresponds to the JSON property `explanationSpec`
16520
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplanationSpec]
16521
+ attr_accessor :explanation_spec
16522
+
16523
+ # The Model Monitoring Schema definition.
16524
+ # Corresponds to the JSON property `modelMonitoringSchema`
16525
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchema]
16526
+ attr_accessor :model_monitoring_schema
16527
+
16528
+ # The monitoring target refers to the entity that is subject to analysis. e.g.
16529
+ # Vertex AI Model version.
16530
+ # Corresponds to the JSON property `modelMonitoringTarget`
16531
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTarget]
16532
+ attr_accessor :model_monitoring_target
16533
+
16534
+ # Immutable. Resource name of the ModelMonitor. Format: `projects/`project`/
16535
+ # locations/`location`/modelMonitors/`model_monitor``.
16536
+ # Corresponds to the JSON property `name`
16537
+ # @return [String]
16538
+ attr_accessor :name
16539
+
16540
+ # Notification spec(email, notification channel) for model monitoring statistics/
16541
+ # alerts.
16542
+ # Corresponds to the JSON property `notificationSpec`
16543
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec]
16544
+ attr_accessor :notification_spec
16545
+
16546
+ # Specification for the export destination of monitoring results, including
16547
+ # metrics, logs, etc.
16548
+ # Corresponds to the JSON property `outputSpec`
16549
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec]
16550
+ attr_accessor :output_spec
16551
+
16552
+ # Tabular monitoring objective.
16553
+ # Corresponds to the JSON property `tabularObjective`
16554
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective]
16555
+ attr_accessor :tabular_objective
16556
+
16557
+ # Model monitoring data input spec.
16558
+ # Corresponds to the JSON property `trainingDataset`
16559
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInput]
16560
+ attr_accessor :training_dataset
16561
+
16562
+ # Output only. Timestamp when this ModelMonitor was updated most recently.
16563
+ # Corresponds to the JSON property `updateTime`
16564
+ # @return [String]
16565
+ attr_accessor :update_time
16566
+
16567
+ def initialize(**args)
16568
+ update!(**args)
16569
+ end
16570
+
16571
+ # Update properties of this object
16572
+ def update!(**args)
16573
+ @create_time = args[:create_time] if args.key?(:create_time)
16574
+ @display_name = args[:display_name] if args.key?(:display_name)
16575
+ @explanation_spec = args[:explanation_spec] if args.key?(:explanation_spec)
16576
+ @model_monitoring_schema = args[:model_monitoring_schema] if args.key?(:model_monitoring_schema)
16577
+ @model_monitoring_target = args[:model_monitoring_target] if args.key?(:model_monitoring_target)
16578
+ @name = args[:name] if args.key?(:name)
16579
+ @notification_spec = args[:notification_spec] if args.key?(:notification_spec)
16580
+ @output_spec = args[:output_spec] if args.key?(:output_spec)
16581
+ @tabular_objective = args[:tabular_objective] if args.key?(:tabular_objective)
16582
+ @training_dataset = args[:training_dataset] if args.key?(:training_dataset)
16583
+ @update_time = args[:update_time] if args.key?(:update_time)
16584
+ end
16585
+ end
16586
+
16587
+ # The monitoring target refers to the entity that is subject to analysis. e.g.
16588
+ # Vertex AI Model version.
16589
+ class GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTarget
16590
+ include Google::Apis::Core::Hashable
16591
+
16592
+ # Model in Vertex AI Model Registry.
16593
+ # Corresponds to the JSON property `vertexModel`
16594
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTargetVertexModelSource]
16595
+ attr_accessor :vertex_model
16596
+
16597
+ def initialize(**args)
16598
+ update!(**args)
16599
+ end
16600
+
16601
+ # Update properties of this object
16602
+ def update!(**args)
16603
+ @vertex_model = args[:vertex_model] if args.key?(:vertex_model)
16604
+ end
16605
+ end
16606
+
16607
+ # Model in Vertex AI Model Registry.
16608
+ class GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTargetVertexModelSource
16609
+ include Google::Apis::Core::Hashable
16610
+
16611
+ # Model resource name. Format: projects/`project`/locations/`location`/models/`
16612
+ # model`.
16613
+ # Corresponds to the JSON property `model`
16614
+ # @return [String]
16615
+ attr_accessor :model
16616
+
16617
+ # Model version id.
16618
+ # Corresponds to the JSON property `modelVersionId`
16619
+ # @return [String]
16620
+ attr_accessor :model_version_id
16621
+
16622
+ def initialize(**args)
16623
+ update!(**args)
16624
+ end
16625
+
16626
+ # Update properties of this object
16627
+ def update!(**args)
16628
+ @model = args[:model] if args.key?(:model)
16629
+ @model_version_id = args[:model_version_id] if args.key?(:model_version_id)
16630
+ end
16631
+ end
16632
+
16633
+ # Represents a single monitoring alert. This is currently used in the
16634
+ # SearchModelMonitoringAlerts api, thus the alert wrapped in this message
16635
+ # belongs to the resource asked in the request.
16636
+ class GoogleCloudAiplatformV1beta1ModelMonitoringAlert
16637
+ include Google::Apis::Core::Hashable
16638
+
16639
+ # Alert creation time.
16640
+ # Corresponds to the JSON property `alertTime`
16641
+ # @return [String]
16642
+ attr_accessor :alert_time
16643
+
16644
+ # Represents a single model monitoring anomaly.
16645
+ # Corresponds to the JSON property `anomaly`
16646
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAnomaly]
16647
+ attr_accessor :anomaly
16648
+
16649
+ # One of the supported monitoring objectives: `raw-feature-drift` `prediction-
16650
+ # output-drift` `feature-attribution`
16651
+ # Corresponds to the JSON property `objectiveType`
16652
+ # @return [String]
16653
+ attr_accessor :objective_type
16654
+
16655
+ # The stats name.
16656
+ # Corresponds to the JSON property `statsName`
16657
+ # @return [String]
16658
+ attr_accessor :stats_name
16659
+
16660
+ def initialize(**args)
16661
+ update!(**args)
16662
+ end
16663
+
16664
+ # Update properties of this object
16665
+ def update!(**args)
16666
+ @alert_time = args[:alert_time] if args.key?(:alert_time)
16667
+ @anomaly = args[:anomaly] if args.key?(:anomaly)
16668
+ @objective_type = args[:objective_type] if args.key?(:objective_type)
16669
+ @stats_name = args[:stats_name] if args.key?(:stats_name)
16670
+ end
16671
+ end
16672
+
16673
+ # Monitoring alert triggered condition.
16674
+ class GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition
16675
+ include Google::Apis::Core::Hashable
16676
+
16677
+ # A condition that compares a stats value against a threshold. Alert will be
16678
+ # triggered if value above the threshold.
16679
+ # Corresponds to the JSON property `threshold`
16680
+ # @return [Float]
16681
+ attr_accessor :threshold
16682
+
16683
+ def initialize(**args)
16684
+ update!(**args)
16685
+ end
16686
+
16687
+ # Update properties of this object
16688
+ def update!(**args)
16689
+ @threshold = args[:threshold] if args.key?(:threshold)
16690
+ end
16691
+ end
16692
+
16485
16693
  # The alert config for model monitoring.
16486
16694
  class GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig
16487
16695
  include Google::Apis::Core::Hashable
@@ -16537,6 +16745,81 @@ module Google
16537
16745
  end
16538
16746
  end
16539
16747
 
16748
+ # Represents a single model monitoring anomaly.
16749
+ class GoogleCloudAiplatformV1beta1ModelMonitoringAnomaly
16750
+ include Google::Apis::Core::Hashable
16751
+
16752
+ # Algorithm used to calculated the metrics, eg: jensen_shannon_divergence,
16753
+ # l_infinity.
16754
+ # Corresponds to the JSON property `algorithm`
16755
+ # @return [String]
16756
+ attr_accessor :algorithm
16757
+
16758
+ # Model monitoring job resource name.
16759
+ # Corresponds to the JSON property `modelMonitoringJob`
16760
+ # @return [String]
16761
+ attr_accessor :model_monitoring_job
16762
+
16763
+ # Tabular anomaly details.
16764
+ # Corresponds to the JSON property `tabularAnomaly`
16765
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAnomalyTabularAnomaly]
16766
+ attr_accessor :tabular_anomaly
16767
+
16768
+ def initialize(**args)
16769
+ update!(**args)
16770
+ end
16771
+
16772
+ # Update properties of this object
16773
+ def update!(**args)
16774
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
16775
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
16776
+ @tabular_anomaly = args[:tabular_anomaly] if args.key?(:tabular_anomaly)
16777
+ end
16778
+ end
16779
+
16780
+ # Tabular anomaly details.
16781
+ class GoogleCloudAiplatformV1beta1ModelMonitoringAnomalyTabularAnomaly
16782
+ include Google::Apis::Core::Hashable
16783
+
16784
+ # Anomaly body.
16785
+ # Corresponds to the JSON property `anomaly`
16786
+ # @return [Object]
16787
+ attr_accessor :anomaly
16788
+
16789
+ # Additional anomaly information. e.g. Google Cloud Storage uri.
16790
+ # Corresponds to the JSON property `anomalyUri`
16791
+ # @return [String]
16792
+ attr_accessor :anomaly_uri
16793
+
16794
+ # Monitoring alert triggered condition.
16795
+ # Corresponds to the JSON property `condition`
16796
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
16797
+ attr_accessor :condition
16798
+
16799
+ # Overview of this anomaly.
16800
+ # Corresponds to the JSON property `summary`
16801
+ # @return [String]
16802
+ attr_accessor :summary
16803
+
16804
+ # The time the anomaly was triggered.
16805
+ # Corresponds to the JSON property `triggerTime`
16806
+ # @return [String]
16807
+ attr_accessor :trigger_time
16808
+
16809
+ def initialize(**args)
16810
+ update!(**args)
16811
+ end
16812
+
16813
+ # Update properties of this object
16814
+ def update!(**args)
16815
+ @anomaly = args[:anomaly] if args.key?(:anomaly)
16816
+ @anomaly_uri = args[:anomaly_uri] if args.key?(:anomaly_uri)
16817
+ @condition = args[:condition] if args.key?(:condition)
16818
+ @summary = args[:summary] if args.key?(:summary)
16819
+ @trigger_time = args[:trigger_time] if args.key?(:trigger_time)
16820
+ end
16821
+ end
16822
+
16540
16823
  # The model monitoring configuration used for Batch Prediction Job.
16541
16824
  class GoogleCloudAiplatformV1beta1ModelMonitoringConfig
16542
16825
  include Google::Apis::Core::Hashable
@@ -16579,6 +16862,439 @@ module Google
16579
16862
  end
16580
16863
  end
16581
16864
 
16865
+ # Model monitoring data input spec.
16866
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInput
16867
+ include Google::Apis::Core::Hashable
16868
+
16869
+ # Data from Vertex AI Batch prediction job output.
16870
+ # Corresponds to the JSON property `batchPredictionOutput`
16871
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputBatchPredictionOutput]
16872
+ attr_accessor :batch_prediction_output
16873
+
16874
+ # Input dataset spec.
16875
+ # Corresponds to the JSON property `columnizedDataset`
16876
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDataset]
16877
+ attr_accessor :columnized_dataset
16878
+
16879
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
16880
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
16881
+ # When the start equals the end, the interval is empty (matches no time). When
16882
+ # both start and end are unspecified, the interval matches any time.
16883
+ # Corresponds to the JSON property `timeInterval`
16884
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
16885
+ attr_accessor :time_interval
16886
+
16887
+ # Time offset setting.
16888
+ # Corresponds to the JSON property `timeOffset`
16889
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputTimeOffset]
16890
+ attr_accessor :time_offset
16891
+
16892
+ # Data from Vertex AI Endpoint request response logging.
16893
+ # Corresponds to the JSON property `vertexEndpointLogs`
16894
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputVertexEndpointLogs]
16895
+ attr_accessor :vertex_endpoint_logs
16896
+
16897
+ def initialize(**args)
16898
+ update!(**args)
16899
+ end
16900
+
16901
+ # Update properties of this object
16902
+ def update!(**args)
16903
+ @batch_prediction_output = args[:batch_prediction_output] if args.key?(:batch_prediction_output)
16904
+ @columnized_dataset = args[:columnized_dataset] if args.key?(:columnized_dataset)
16905
+ @time_interval = args[:time_interval] if args.key?(:time_interval)
16906
+ @time_offset = args[:time_offset] if args.key?(:time_offset)
16907
+ @vertex_endpoint_logs = args[:vertex_endpoint_logs] if args.key?(:vertex_endpoint_logs)
16908
+ end
16909
+ end
16910
+
16911
+ # Data from Vertex AI Batch prediction job output.
16912
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputBatchPredictionOutput
16913
+ include Google::Apis::Core::Hashable
16914
+
16915
+ # Vertex AI Batch prediction job resource name. The job must match the model
16916
+ # version specified in [ModelMonitor].[model_monitoring_target].
16917
+ # Corresponds to the JSON property `batchPredictionJob`
16918
+ # @return [String]
16919
+ attr_accessor :batch_prediction_job
16920
+
16921
+ def initialize(**args)
16922
+ update!(**args)
16923
+ end
16924
+
16925
+ # Update properties of this object
16926
+ def update!(**args)
16927
+ @batch_prediction_job = args[:batch_prediction_job] if args.key?(:batch_prediction_job)
16928
+ end
16929
+ end
16930
+
16931
+ # Input dataset spec.
16932
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDataset
16933
+ include Google::Apis::Core::Hashable
16934
+
16935
+ # Dataset spec for data sotred in BigQuery.
16936
+ # Corresponds to the JSON property `bigquerySource`
16937
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringBigQuerySource]
16938
+ attr_accessor :bigquery_source
16939
+
16940
+ # Dataset spec for data stored in Google Cloud Storage.
16941
+ # Corresponds to the JSON property `gcsSource`
16942
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringGcsSource]
16943
+ attr_accessor :gcs_source
16944
+
16945
+ # The timestamp field. Usually for serving data.
16946
+ # Corresponds to the JSON property `timestampField`
16947
+ # @return [String]
16948
+ attr_accessor :timestamp_field
16949
+
16950
+ # Resource name of the Vertex AI managed dataset.
16951
+ # Corresponds to the JSON property `vertexDataset`
16952
+ # @return [String]
16953
+ attr_accessor :vertex_dataset
16954
+
16955
+ def initialize(**args)
16956
+ update!(**args)
16957
+ end
16958
+
16959
+ # Update properties of this object
16960
+ def update!(**args)
16961
+ @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
16962
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
16963
+ @timestamp_field = args[:timestamp_field] if args.key?(:timestamp_field)
16964
+ @vertex_dataset = args[:vertex_dataset] if args.key?(:vertex_dataset)
16965
+ end
16966
+ end
16967
+
16968
+ # Dataset spec for data sotred in BigQuery.
16969
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringBigQuerySource
16970
+ include Google::Apis::Core::Hashable
16971
+
16972
+ # Standard SQL to be used instead of the `table_uri`.
16973
+ # Corresponds to the JSON property `query`
16974
+ # @return [String]
16975
+ attr_accessor :query
16976
+
16977
+ # BigQuery URI to a table, up to 2000 characters long. All the columns in the
16978
+ # table will be selected. Accepted forms: * BigQuery path. For example: `bq://
16979
+ # projectId.bqDatasetId.bqTableId`.
16980
+ # Corresponds to the JSON property `tableUri`
16981
+ # @return [String]
16982
+ attr_accessor :table_uri
16983
+
16984
+ def initialize(**args)
16985
+ update!(**args)
16986
+ end
16987
+
16988
+ # Update properties of this object
16989
+ def update!(**args)
16990
+ @query = args[:query] if args.key?(:query)
16991
+ @table_uri = args[:table_uri] if args.key?(:table_uri)
16992
+ end
16993
+ end
16994
+
16995
+ # Dataset spec for data stored in Google Cloud Storage.
16996
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringGcsSource
16997
+ include Google::Apis::Core::Hashable
16998
+
16999
+ # Data format of the dataset.
17000
+ # Corresponds to the JSON property `format`
17001
+ # @return [String]
17002
+ attr_accessor :format
17003
+
17004
+ # Google Cloud Storage URI to the input file(s). May contain wildcards. For more
17005
+ # information on wildcards, see https://cloud.google.com/storage/docs/gsutil/
17006
+ # addlhelp/WildcardNames.
17007
+ # Corresponds to the JSON property `gcsUri`
17008
+ # @return [String]
17009
+ attr_accessor :gcs_uri
17010
+
17011
+ def initialize(**args)
17012
+ update!(**args)
17013
+ end
17014
+
17015
+ # Update properties of this object
17016
+ def update!(**args)
17017
+ @format = args[:format] if args.key?(:format)
17018
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
17019
+ end
17020
+ end
17021
+
17022
+ # Time offset setting.
17023
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputTimeOffset
17024
+ include Google::Apis::Core::Hashable
17025
+
17026
+ # [offset] is the time difference from the cut-off time. For scheduled jobs, the
17027
+ # cut-off time is the scheduled time. For non-scheduled jobs, it's the time when
17028
+ # the job was created. Currently we support the following format: 'w|W': Week, '
17029
+ # d|D': Day, 'h|H': Hour E.g. '1h' stands for 1 hour, '2d' stands for 2 days.
17030
+ # Corresponds to the JSON property `offset`
17031
+ # @return [String]
17032
+ attr_accessor :offset
17033
+
17034
+ # [window] refers to the scope of data selected for analysis. It allows you to
17035
+ # specify the quantity of data you wish to examine. Currently we support the
17036
+ # following format: 'w|W': Week, 'd|D': Day, 'h|H': Hour E.g. '1h' stands for 1
17037
+ # hour, '2d' stands for 2 days.
17038
+ # Corresponds to the JSON property `window`
17039
+ # @return [String]
17040
+ attr_accessor :window
17041
+
17042
+ def initialize(**args)
17043
+ update!(**args)
17044
+ end
17045
+
17046
+ # Update properties of this object
17047
+ def update!(**args)
17048
+ @offset = args[:offset] if args.key?(:offset)
17049
+ @window = args[:window] if args.key?(:window)
17050
+ end
17051
+ end
17052
+
17053
+ # Data from Vertex AI Endpoint request response logging.
17054
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputVertexEndpointLogs
17055
+ include Google::Apis::Core::Hashable
17056
+
17057
+ # List of endpoint resource names. The endpoints must enable the logging with
17058
+ # the [Endpoint].[request_response_logging_config], and must contain the
17059
+ # deployed model corresponding to the model version specified in [ModelMonitor].[
17060
+ # model_monitoring_target].
17061
+ # Corresponds to the JSON property `endpoints`
17062
+ # @return [Array<String>]
17063
+ attr_accessor :endpoints
17064
+
17065
+ def initialize(**args)
17066
+ update!(**args)
17067
+ end
17068
+
17069
+ # Update properties of this object
17070
+ def update!(**args)
17071
+ @endpoints = args[:endpoints] if args.key?(:endpoints)
17072
+ end
17073
+ end
17074
+
17075
+ # Represents a model monitoring job that analyze dataset using different
17076
+ # monitoring algorithm.
17077
+ class GoogleCloudAiplatformV1beta1ModelMonitoringJob
17078
+ include Google::Apis::Core::Hashable
17079
+
17080
+ # Output only. Timestamp when this ModelMonitoringJob was created.
17081
+ # Corresponds to the JSON property `createTime`
17082
+ # @return [String]
17083
+ attr_accessor :create_time
17084
+
17085
+ # The display name of the ModelMonitoringJob. The name can be up to 128
17086
+ # characters long and can consist of any UTF-8.
17087
+ # Corresponds to the JSON property `displayName`
17088
+ # @return [String]
17089
+ attr_accessor :display_name
17090
+
17091
+ # Represent the execution details of the job.
17092
+ # Corresponds to the JSON property `jobExecutionDetail`
17093
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetail]
17094
+ attr_accessor :job_execution_detail
17095
+
17096
+ # Monitoring monitoring job spec. It outlines the specifications for monitoring
17097
+ # objectives, notifications, and result exports.
17098
+ # Corresponds to the JSON property `modelMonitoringSpec`
17099
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSpec]
17100
+ attr_accessor :model_monitoring_spec
17101
+
17102
+ # Output only. Resource name of a ModelMonitoringJob. Format: `projects/`
17103
+ # project_id`/locations/`location_id`/modelMonitors/`model_monitor_id`/
17104
+ # modelMonitoringJobs/`model_monitoring_job_id``
17105
+ # Corresponds to the JSON property `name`
17106
+ # @return [String]
17107
+ attr_accessor :name
17108
+
17109
+ # Output only. Schedule resource name. It will only appear when this job is
17110
+ # triggered by a schedule.
17111
+ # Corresponds to the JSON property `schedule`
17112
+ # @return [String]
17113
+ attr_accessor :schedule
17114
+
17115
+ # Output only. Timestamp when this ModelMonitoringJob was scheduled. It will
17116
+ # only appear when this job is triggered by a schedule.
17117
+ # Corresponds to the JSON property `scheduleTime`
17118
+ # @return [String]
17119
+ attr_accessor :schedule_time
17120
+
17121
+ # Output only. The state of the monitoring job. * When the job is still creating,
17122
+ # the state will be 'JOB_STATE_PENDING'. * Once the job is successfully created,
17123
+ # the state will be 'JOB_STATE_RUNNING'. * Once the job is finished, the state
17124
+ # will be one of 'JOB_STATE_FAILED', 'JOB_STATE_SUCCEEDED', '
17125
+ # JOB_STATE_PARTIALLY_SUCCEEDED'.
17126
+ # Corresponds to the JSON property `state`
17127
+ # @return [String]
17128
+ attr_accessor :state
17129
+
17130
+ # Output only. Timestamp when this ModelMonitoringJob was updated most recently.
17131
+ # Corresponds to the JSON property `updateTime`
17132
+ # @return [String]
17133
+ attr_accessor :update_time
17134
+
17135
+ def initialize(**args)
17136
+ update!(**args)
17137
+ end
17138
+
17139
+ # Update properties of this object
17140
+ def update!(**args)
17141
+ @create_time = args[:create_time] if args.key?(:create_time)
17142
+ @display_name = args[:display_name] if args.key?(:display_name)
17143
+ @job_execution_detail = args[:job_execution_detail] if args.key?(:job_execution_detail)
17144
+ @model_monitoring_spec = args[:model_monitoring_spec] if args.key?(:model_monitoring_spec)
17145
+ @name = args[:name] if args.key?(:name)
17146
+ @schedule = args[:schedule] if args.key?(:schedule)
17147
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
17148
+ @state = args[:state] if args.key?(:state)
17149
+ @update_time = args[:update_time] if args.key?(:update_time)
17150
+ end
17151
+ end
17152
+
17153
+ # Represent the execution details of the job.
17154
+ class GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetail
17155
+ include Google::Apis::Core::Hashable
17156
+
17157
+ # Processed baseline datasets.
17158
+ # Corresponds to the JSON property `baselineDatasets`
17159
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetailProcessedDataset>]
17160
+ attr_accessor :baseline_datasets
17161
+
17162
+ # The `Status` type defines a logical error model that is suitable for different
17163
+ # programming environments, including REST APIs and RPC APIs. It is used by [
17164
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
17165
+ # data: error code, error message, and error details. You can find out more
17166
+ # about this error model and how to work with it in the [API Design Guide](https:
17167
+ # //cloud.google.com/apis/design/errors).
17168
+ # Corresponds to the JSON property `error`
17169
+ # @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
17170
+ attr_accessor :error
17171
+
17172
+ # Status of data processing for each monitoring objective. Key is the objective.
17173
+ # Corresponds to the JSON property `objectiveStatus`
17174
+ # @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleRpcStatus>]
17175
+ attr_accessor :objective_status
17176
+
17177
+ # Processed target datasets.
17178
+ # Corresponds to the JSON property `targetDatasets`
17179
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetailProcessedDataset>]
17180
+ attr_accessor :target_datasets
17181
+
17182
+ def initialize(**args)
17183
+ update!(**args)
17184
+ end
17185
+
17186
+ # Update properties of this object
17187
+ def update!(**args)
17188
+ @baseline_datasets = args[:baseline_datasets] if args.key?(:baseline_datasets)
17189
+ @error = args[:error] if args.key?(:error)
17190
+ @objective_status = args[:objective_status] if args.key?(:objective_status)
17191
+ @target_datasets = args[:target_datasets] if args.key?(:target_datasets)
17192
+ end
17193
+ end
17194
+
17195
+ # Processed dataset information.
17196
+ class GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetailProcessedDataset
17197
+ include Google::Apis::Core::Hashable
17198
+
17199
+ # Actual data location of the processed dataset.
17200
+ # Corresponds to the JSON property `location`
17201
+ # @return [String]
17202
+ attr_accessor :location
17203
+
17204
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
17205
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
17206
+ # When the start equals the end, the interval is empty (matches no time). When
17207
+ # both start and end are unspecified, the interval matches any time.
17208
+ # Corresponds to the JSON property `timeRange`
17209
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
17210
+ attr_accessor :time_range
17211
+
17212
+ def initialize(**args)
17213
+ update!(**args)
17214
+ end
17215
+
17216
+ # Update properties of this object
17217
+ def update!(**args)
17218
+ @location = args[:location] if args.key?(:location)
17219
+ @time_range = args[:time_range] if args.key?(:time_range)
17220
+ end
17221
+ end
17222
+
17223
+ # Notification spec(email, notification channel) for model monitoring statistics/
17224
+ # alerts.
17225
+ class GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec
17226
+ include Google::Apis::Core::Hashable
17227
+
17228
+ # The config for email alerts.
17229
+ # Corresponds to the JSON property `emailConfig`
17230
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecEmailConfig]
17231
+ attr_accessor :email_config
17232
+
17233
+ # Dump the anomalies to Cloud Logging. The anomalies will be put to json payload
17234
+ # encoded from proto google.cloud.aiplatform.logging.
17235
+ # ModelMonitoringAnomaliesLogEntry. This can be further sinked to Pub/Sub or any
17236
+ # other services supported by Cloud Logging.
17237
+ # Corresponds to the JSON property `enableCloudLogging`
17238
+ # @return [Boolean]
17239
+ attr_accessor :enable_cloud_logging
17240
+ alias_method :enable_cloud_logging?, :enable_cloud_logging
17241
+
17242
+ # Notification channel config.
17243
+ # Corresponds to the JSON property `notificationChannelConfigs`
17244
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecNotificationChannelConfig>]
17245
+ attr_accessor :notification_channel_configs
17246
+
17247
+ def initialize(**args)
17248
+ update!(**args)
17249
+ end
17250
+
17251
+ # Update properties of this object
17252
+ def update!(**args)
17253
+ @email_config = args[:email_config] if args.key?(:email_config)
17254
+ @enable_cloud_logging = args[:enable_cloud_logging] if args.key?(:enable_cloud_logging)
17255
+ @notification_channel_configs = args[:notification_channel_configs] if args.key?(:notification_channel_configs)
17256
+ end
17257
+ end
17258
+
17259
+ # The config for email alerts.
17260
+ class GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecEmailConfig
17261
+ include Google::Apis::Core::Hashable
17262
+
17263
+ # The email addresses to send the alerts.
17264
+ # Corresponds to the JSON property `userEmails`
17265
+ # @return [Array<String>]
17266
+ attr_accessor :user_emails
17267
+
17268
+ def initialize(**args)
17269
+ update!(**args)
17270
+ end
17271
+
17272
+ # Update properties of this object
17273
+ def update!(**args)
17274
+ @user_emails = args[:user_emails] if args.key?(:user_emails)
17275
+ end
17276
+ end
17277
+
17278
+ # Google Cloud Notification Channel config.
17279
+ class GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecNotificationChannelConfig
17280
+ include Google::Apis::Core::Hashable
17281
+
17282
+ # Resource names of the NotificationChannels. Must be of the format `projects//
17283
+ # notificationChannels/`
17284
+ # Corresponds to the JSON property `notificationChannel`
17285
+ # @return [String]
17286
+ attr_accessor :notification_channel
17287
+
17288
+ def initialize(**args)
17289
+ update!(**args)
17290
+ end
17291
+
17292
+ # Update properties of this object
17293
+ def update!(**args)
17294
+ @notification_channel = args[:notification_channel] if args.key?(:notification_channel)
17295
+ end
17296
+ end
17297
+
16582
17298
  # The objective configuration for model monitoring, including the information
16583
17299
  # needed to detect anomalies for one particular model.
16584
17300
  class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveConfig
@@ -16805,6 +17521,336 @@ module Google
16805
17521
  end
16806
17522
  end
16807
17523
 
17524
+ # Monitoring objectives spec.
17525
+ class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpec
17526
+ include Google::Apis::Core::Hashable
17527
+
17528
+ # Model monitoring data input spec.
17529
+ # Corresponds to the JSON property `baselineDataset`
17530
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInput]
17531
+ attr_accessor :baseline_dataset
17532
+
17533
+ # Specification of Model explanation.
17534
+ # Corresponds to the JSON property `explanationSpec`
17535
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplanationSpec]
17536
+ attr_accessor :explanation_spec
17537
+
17538
+ # Tabular monitoring objective.
17539
+ # Corresponds to the JSON property `tabularObjective`
17540
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective]
17541
+ attr_accessor :tabular_objective
17542
+
17543
+ # Model monitoring data input spec.
17544
+ # Corresponds to the JSON property `targetDataset`
17545
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInput]
17546
+ attr_accessor :target_dataset
17547
+
17548
+ def initialize(**args)
17549
+ update!(**args)
17550
+ end
17551
+
17552
+ # Update properties of this object
17553
+ def update!(**args)
17554
+ @baseline_dataset = args[:baseline_dataset] if args.key?(:baseline_dataset)
17555
+ @explanation_spec = args[:explanation_spec] if args.key?(:explanation_spec)
17556
+ @tabular_objective = args[:tabular_objective] if args.key?(:tabular_objective)
17557
+ @target_dataset = args[:target_dataset] if args.key?(:target_dataset)
17558
+ end
17559
+ end
17560
+
17561
+ # Data drift monitoring spec. Data drift measures the distribution distance
17562
+ # between the current dataset and a baseline dataset. A typical use case is to
17563
+ # detect data drift between the recent production serving dataset and the
17564
+ # training dataset, or to compare the recent production dataset with a dataset
17565
+ # from a previous period.
17566
+ class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecDataDriftSpec
17567
+ include Google::Apis::Core::Hashable
17568
+
17569
+ # Supported metrics type: * l_infinity * jensen_shannon_divergence
17570
+ # Corresponds to the JSON property `categoricalMetricType`
17571
+ # @return [String]
17572
+ attr_accessor :categorical_metric_type
17573
+
17574
+ # Monitoring alert triggered condition.
17575
+ # Corresponds to the JSON property `defaultCategoricalAlertCondition`
17576
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
17577
+ attr_accessor :default_categorical_alert_condition
17578
+
17579
+ # Monitoring alert triggered condition.
17580
+ # Corresponds to the JSON property `defaultNumericAlertCondition`
17581
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
17582
+ attr_accessor :default_numeric_alert_condition
17583
+
17584
+ # Per feature alert condition will override default alert condition.
17585
+ # Corresponds to the JSON property `featureAlertConditions`
17586
+ # @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition>]
17587
+ attr_accessor :feature_alert_conditions
17588
+
17589
+ # Feature names / Prediction output names interested in monitoring. These should
17590
+ # be a subset of the input feature names or prediction output names specified in
17591
+ # the monitoring schema. If the field is not specified all features / prediction
17592
+ # outputs outlied in the monitoring schema will be used.
17593
+ # Corresponds to the JSON property `features`
17594
+ # @return [Array<String>]
17595
+ attr_accessor :features
17596
+
17597
+ # Supported metrics type: * jensen_shannon_divergence
17598
+ # Corresponds to the JSON property `numericMetricType`
17599
+ # @return [String]
17600
+ attr_accessor :numeric_metric_type
17601
+
17602
+ def initialize(**args)
17603
+ update!(**args)
17604
+ end
17605
+
17606
+ # Update properties of this object
17607
+ def update!(**args)
17608
+ @categorical_metric_type = args[:categorical_metric_type] if args.key?(:categorical_metric_type)
17609
+ @default_categorical_alert_condition = args[:default_categorical_alert_condition] if args.key?(:default_categorical_alert_condition)
17610
+ @default_numeric_alert_condition = args[:default_numeric_alert_condition] if args.key?(:default_numeric_alert_condition)
17611
+ @feature_alert_conditions = args[:feature_alert_conditions] if args.key?(:feature_alert_conditions)
17612
+ @features = args[:features] if args.key?(:features)
17613
+ @numeric_metric_type = args[:numeric_metric_type] if args.key?(:numeric_metric_type)
17614
+ end
17615
+ end
17616
+
17617
+ # Feature attribution monitoring spec.
17618
+ class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecFeatureAttributionSpec
17619
+ include Google::Apis::Core::Hashable
17620
+
17621
+ # A description of resources that are used for performing batch operations, are
17622
+ # dedicated to a Model, and need manual configuration.
17623
+ # Corresponds to the JSON property `batchExplanationDedicatedResources`
17624
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchDedicatedResources]
17625
+ attr_accessor :batch_explanation_dedicated_resources
17626
+
17627
+ # Monitoring alert triggered condition.
17628
+ # Corresponds to the JSON property `defaultAlertCondition`
17629
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
17630
+ attr_accessor :default_alert_condition
17631
+
17632
+ # Per feature alert condition will override default alert condition.
17633
+ # Corresponds to the JSON property `featureAlertConditions`
17634
+ # @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition>]
17635
+ attr_accessor :feature_alert_conditions
17636
+
17637
+ # Feature names interested in monitoring. These should be a subset of the input
17638
+ # feature names specified in the monitoring schema. If the field is not
17639
+ # specified all features outlied in the monitoring schema will be used.
17640
+ # Corresponds to the JSON property `features`
17641
+ # @return [Array<String>]
17642
+ attr_accessor :features
17643
+
17644
+ def initialize(**args)
17645
+ update!(**args)
17646
+ end
17647
+
17648
+ # Update properties of this object
17649
+ def update!(**args)
17650
+ @batch_explanation_dedicated_resources = args[:batch_explanation_dedicated_resources] if args.key?(:batch_explanation_dedicated_resources)
17651
+ @default_alert_condition = args[:default_alert_condition] if args.key?(:default_alert_condition)
17652
+ @feature_alert_conditions = args[:feature_alert_conditions] if args.key?(:feature_alert_conditions)
17653
+ @features = args[:features] if args.key?(:features)
17654
+ end
17655
+ end
17656
+
17657
+ # Tabular monitoring objective.
17658
+ class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective
17659
+ include Google::Apis::Core::Hashable
17660
+
17661
+ # Feature attribution monitoring spec.
17662
+ # Corresponds to the JSON property `featureAttributionSpec`
17663
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecFeatureAttributionSpec]
17664
+ attr_accessor :feature_attribution_spec
17665
+
17666
+ # Data drift monitoring spec. Data drift measures the distribution distance
17667
+ # between the current dataset and a baseline dataset. A typical use case is to
17668
+ # detect data drift between the recent production serving dataset and the
17669
+ # training dataset, or to compare the recent production dataset with a dataset
17670
+ # from a previous period.
17671
+ # Corresponds to the JSON property `featureDriftSpec`
17672
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecDataDriftSpec]
17673
+ attr_accessor :feature_drift_spec
17674
+
17675
+ # Data drift monitoring spec. Data drift measures the distribution distance
17676
+ # between the current dataset and a baseline dataset. A typical use case is to
17677
+ # detect data drift between the recent production serving dataset and the
17678
+ # training dataset, or to compare the recent production dataset with a dataset
17679
+ # from a previous period.
17680
+ # Corresponds to the JSON property `predictionOutputDriftSpec`
17681
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecDataDriftSpec]
17682
+ attr_accessor :prediction_output_drift_spec
17683
+
17684
+ def initialize(**args)
17685
+ update!(**args)
17686
+ end
17687
+
17688
+ # Update properties of this object
17689
+ def update!(**args)
17690
+ @feature_attribution_spec = args[:feature_attribution_spec] if args.key?(:feature_attribution_spec)
17691
+ @feature_drift_spec = args[:feature_drift_spec] if args.key?(:feature_drift_spec)
17692
+ @prediction_output_drift_spec = args[:prediction_output_drift_spec] if args.key?(:prediction_output_drift_spec)
17693
+ end
17694
+ end
17695
+
17696
+ # Specification for the export destination of monitoring results, including
17697
+ # metrics, logs, etc.
17698
+ class GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec
17699
+ include Google::Apis::Core::Hashable
17700
+
17701
+ # The Google Cloud Storage location where the output is to be written to.
17702
+ # Corresponds to the JSON property `gcsBaseDirectory`
17703
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsDestination]
17704
+ attr_accessor :gcs_base_directory
17705
+
17706
+ def initialize(**args)
17707
+ update!(**args)
17708
+ end
17709
+
17710
+ # Update properties of this object
17711
+ def update!(**args)
17712
+ @gcs_base_directory = args[:gcs_base_directory] if args.key?(:gcs_base_directory)
17713
+ end
17714
+ end
17715
+
17716
+ # The Model Monitoring Schema definition.
17717
+ class GoogleCloudAiplatformV1beta1ModelMonitoringSchema
17718
+ include Google::Apis::Core::Hashable
17719
+
17720
+ # Feature names of the model. Vertex AI will try to match the features from your
17721
+ # dataset as follows: * For 'csv' files, the header names are required, and we
17722
+ # will extract the corresponding feature values when the header names align with
17723
+ # the feature names. * For 'jsonl' files, we will extract the corresponding
17724
+ # feature values if the key names match the feature names. Note: Nested features
17725
+ # are not supported, so please ensure your features are flattened. Ensure the
17726
+ # feature values are scalar or an array of scalars. * For 'bigquery' dataset, we
17727
+ # will extract the corresponding feature values if the column names match the
17728
+ # feature names. Note: The column type can be a scalar or an array of scalars.
17729
+ # STRUCT or JSON types are not supported. You may use SQL queries to select or
17730
+ # aggregate the relevant features from your original table. However, ensure that
17731
+ # the 'schema' of the query results meets our requirements. * For the Vertex AI
17732
+ # Endpoint Request Response Logging table or Vertex AI Batch Prediction Job
17733
+ # results. If the instance_type is an array, ensure that the sequence in
17734
+ # feature_fields matches the order of features in the prediction instance. We
17735
+ # will match the feature with the array in the order specified in [
17736
+ # feature_fields].
17737
+ # Corresponds to the JSON property `featureFields`
17738
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema>]
17739
+ attr_accessor :feature_fields
17740
+
17741
+ # Target /ground truth names of the model.
17742
+ # Corresponds to the JSON property `groundTruthFields`
17743
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema>]
17744
+ attr_accessor :ground_truth_fields
17745
+
17746
+ # Prediction output names of the model. The requirements are the same as the
17747
+ # feature_fields. For AutoML Tables, the prediction output name presented in
17748
+ # schema will be: `predicted_`target_column``, the `target_column` is the one
17749
+ # you specified when you train the model. For Prediction output drift analysis: *
17750
+ # AutoML Classification, the distribution of the argmax label will be analyzed.
17751
+ # * AutoML Regression, the distribution of the value will be analyzed.
17752
+ # Corresponds to the JSON property `predictionFields`
17753
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema>]
17754
+ attr_accessor :prediction_fields
17755
+
17756
+ def initialize(**args)
17757
+ update!(**args)
17758
+ end
17759
+
17760
+ # Update properties of this object
17761
+ def update!(**args)
17762
+ @feature_fields = args[:feature_fields] if args.key?(:feature_fields)
17763
+ @ground_truth_fields = args[:ground_truth_fields] if args.key?(:ground_truth_fields)
17764
+ @prediction_fields = args[:prediction_fields] if args.key?(:prediction_fields)
17765
+ end
17766
+ end
17767
+
17768
+ # Schema field definition.
17769
+ class GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema
17770
+ include Google::Apis::Core::Hashable
17771
+
17772
+ # Supported data types are: `float` `integer` `boolean` `string` `categorical`
17773
+ # Corresponds to the JSON property `dataType`
17774
+ # @return [String]
17775
+ attr_accessor :data_type
17776
+
17777
+ # Field name.
17778
+ # Corresponds to the JSON property `name`
17779
+ # @return [String]
17780
+ attr_accessor :name
17781
+
17782
+ # Describes if the schema field is an array of given data type.
17783
+ # Corresponds to the JSON property `repeated`
17784
+ # @return [Boolean]
17785
+ attr_accessor :repeated
17786
+ alias_method :repeated?, :repeated
17787
+
17788
+ def initialize(**args)
17789
+ update!(**args)
17790
+ end
17791
+
17792
+ # Update properties of this object
17793
+ def update!(**args)
17794
+ @data_type = args[:data_type] if args.key?(:data_type)
17795
+ @name = args[:name] if args.key?(:name)
17796
+ @repeated = args[:repeated] if args.key?(:repeated)
17797
+ end
17798
+ end
17799
+
17800
+ # Monitoring monitoring job spec. It outlines the specifications for monitoring
17801
+ # objectives, notifications, and result exports.
17802
+ class GoogleCloudAiplatformV1beta1ModelMonitoringSpec
17803
+ include Google::Apis::Core::Hashable
17804
+
17805
+ # Notification spec(email, notification channel) for model monitoring statistics/
17806
+ # alerts.
17807
+ # Corresponds to the JSON property `notificationSpec`
17808
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec]
17809
+ attr_accessor :notification_spec
17810
+
17811
+ # Monitoring objectives spec.
17812
+ # Corresponds to the JSON property `objectiveSpec`
17813
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpec]
17814
+ attr_accessor :objective_spec
17815
+
17816
+ # Specification for the export destination of monitoring results, including
17817
+ # metrics, logs, etc.
17818
+ # Corresponds to the JSON property `outputSpec`
17819
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec]
17820
+ attr_accessor :output_spec
17821
+
17822
+ def initialize(**args)
17823
+ update!(**args)
17824
+ end
17825
+
17826
+ # Update properties of this object
17827
+ def update!(**args)
17828
+ @notification_spec = args[:notification_spec] if args.key?(:notification_spec)
17829
+ @objective_spec = args[:objective_spec] if args.key?(:objective_spec)
17830
+ @output_spec = args[:output_spec] if args.key?(:output_spec)
17831
+ end
17832
+ end
17833
+
17834
+ # Represents the collection of statistics for a metric.
17835
+ class GoogleCloudAiplatformV1beta1ModelMonitoringStats
17836
+ include Google::Apis::Core::Hashable
17837
+
17838
+ # A collection of data points that describes the time-varying values of a
17839
+ # tabular metric.
17840
+ # Corresponds to the JSON property `tabularStats`
17841
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringTabularStats]
17842
+ attr_accessor :tabular_stats
17843
+
17844
+ def initialize(**args)
17845
+ update!(**args)
17846
+ end
17847
+
17848
+ # Update properties of this object
17849
+ def update!(**args)
17850
+ @tabular_stats = args[:tabular_stats] if args.key?(:tabular_stats)
17851
+ end
17852
+ end
17853
+
16808
17854
  # Statistics and anomalies generated by Model Monitoring.
16809
17855
  class GoogleCloudAiplatformV1beta1ModelMonitoringStatsAnomalies
16810
17856
  include Google::Apis::Core::Hashable
@@ -16887,6 +17933,157 @@ module Google
16887
17933
  end
16888
17934
  end
16889
17935
 
17936
+ # Represents a single statistics data point.
17937
+ class GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPoint
17938
+ include Google::Apis::Core::Hashable
17939
+
17940
+ # Algorithm used to calculated the metrics, eg: jensen_shannon_divergence,
17941
+ # l_infinity.
17942
+ # Corresponds to the JSON property `algorithm`
17943
+ # @return [String]
17944
+ attr_accessor :algorithm
17945
+
17946
+ # Typed value of the statistics.
17947
+ # Corresponds to the JSON property `baselineStats`
17948
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValue]
17949
+ attr_accessor :baseline_stats
17950
+
17951
+ # Statistics create time.
17952
+ # Corresponds to the JSON property `createTime`
17953
+ # @return [String]
17954
+ attr_accessor :create_time
17955
+
17956
+ # Typed value of the statistics.
17957
+ # Corresponds to the JSON property `currentStats`
17958
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValue]
17959
+ attr_accessor :current_stats
17960
+
17961
+ # Indicate if the statistics has anomaly.
17962
+ # Corresponds to the JSON property `hasAnomaly`
17963
+ # @return [Boolean]
17964
+ attr_accessor :has_anomaly
17965
+ alias_method :has_anomaly?, :has_anomaly
17966
+
17967
+ # Model monitoring job resource name.
17968
+ # Corresponds to the JSON property `modelMonitoringJob`
17969
+ # @return [String]
17970
+ attr_accessor :model_monitoring_job
17971
+
17972
+ # Schedule resource name.
17973
+ # Corresponds to the JSON property `schedule`
17974
+ # @return [String]
17975
+ attr_accessor :schedule
17976
+
17977
+ # Threshold value.
17978
+ # Corresponds to the JSON property `thresholdValue`
17979
+ # @return [Float]
17980
+ attr_accessor :threshold_value
17981
+
17982
+ def initialize(**args)
17983
+ update!(**args)
17984
+ end
17985
+
17986
+ # Update properties of this object
17987
+ def update!(**args)
17988
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
17989
+ @baseline_stats = args[:baseline_stats] if args.key?(:baseline_stats)
17990
+ @create_time = args[:create_time] if args.key?(:create_time)
17991
+ @current_stats = args[:current_stats] if args.key?(:current_stats)
17992
+ @has_anomaly = args[:has_anomaly] if args.key?(:has_anomaly)
17993
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
17994
+ @schedule = args[:schedule] if args.key?(:schedule)
17995
+ @threshold_value = args[:threshold_value] if args.key?(:threshold_value)
17996
+ end
17997
+ end
17998
+
17999
+ # Typed value of the statistics.
18000
+ class GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValue
18001
+ include Google::Apis::Core::Hashable
18002
+
18003
+ # Summary statistics for a population of values.
18004
+ # Corresponds to the JSON property `distributionValue`
18005
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValueDistributionDataValue]
18006
+ attr_accessor :distribution_value
18007
+
18008
+ # Double.
18009
+ # Corresponds to the JSON property `doubleValue`
18010
+ # @return [Float]
18011
+ attr_accessor :double_value
18012
+
18013
+ def initialize(**args)
18014
+ update!(**args)
18015
+ end
18016
+
18017
+ # Update properties of this object
18018
+ def update!(**args)
18019
+ @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
18020
+ @double_value = args[:double_value] if args.key?(:double_value)
18021
+ end
18022
+ end
18023
+
18024
+ # Summary statistics for a population of values.
18025
+ class GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValueDistributionDataValue
18026
+ include Google::Apis::Core::Hashable
18027
+
18028
+ # tensorflow.metadata.v0.DatasetFeatureStatistics format.
18029
+ # Corresponds to the JSON property `distribution`
18030
+ # @return [Object]
18031
+ attr_accessor :distribution
18032
+
18033
+ # Distribution distance deviation from the current dataset's statistics to
18034
+ # baseline dataset's statistics. * For categorical feature, the distribution
18035
+ # distance is calculated by L-inifinity norm or Jensen–Shannon divergence. * For
18036
+ # numerical feature, the distribution distance is calculated by Jensen–Shannon
18037
+ # divergence.
18038
+ # Corresponds to the JSON property `distributionDeviation`
18039
+ # @return [Float]
18040
+ attr_accessor :distribution_deviation
18041
+
18042
+ def initialize(**args)
18043
+ update!(**args)
18044
+ end
18045
+
18046
+ # Update properties of this object
18047
+ def update!(**args)
18048
+ @distribution = args[:distribution] if args.key?(:distribution)
18049
+ @distribution_deviation = args[:distribution_deviation] if args.key?(:distribution_deviation)
18050
+ end
18051
+ end
18052
+
18053
+ # A collection of data points that describes the time-varying values of a
18054
+ # tabular metric.
18055
+ class GoogleCloudAiplatformV1beta1ModelMonitoringTabularStats
18056
+ include Google::Apis::Core::Hashable
18057
+
18058
+ # The data points of this time series. When listing time series, points are
18059
+ # returned in reverse time order.
18060
+ # Corresponds to the JSON property `dataPoints`
18061
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPoint>]
18062
+ attr_accessor :data_points
18063
+
18064
+ # One of the supported monitoring objectives: `raw-feature-drift` `prediction-
18065
+ # output-drift` `feature-attribution`
18066
+ # Corresponds to the JSON property `objectiveType`
18067
+ # @return [String]
18068
+ attr_accessor :objective_type
18069
+
18070
+ # The stats name.
18071
+ # Corresponds to the JSON property `statsName`
18072
+ # @return [String]
18073
+ attr_accessor :stats_name
18074
+
18075
+ def initialize(**args)
18076
+ update!(**args)
18077
+ end
18078
+
18079
+ # Update properties of this object
18080
+ def update!(**args)
18081
+ @data_points = args[:data_points] if args.key?(:data_points)
18082
+ @objective_type = args[:objective_type] if args.key?(:objective_type)
18083
+ @stats_name = args[:stats_name] if args.key?(:stats_name)
18084
+ end
18085
+ end
18086
+
16890
18087
  # Contains information about the original Model if this Model is a copy.
16891
18088
  class GoogleCloudAiplatformV1beta1ModelOriginalModelInfo
16892
18089
  include Google::Apis::Core::Hashable
@@ -17874,6 +19071,230 @@ module Google
17874
19071
  end
17875
19072
  end
17876
19073
 
19074
+ # NotebookExecutionJob represents an instance of a notebook execution.
19075
+ class GoogleCloudAiplatformV1beta1NotebookExecutionJob
19076
+ include Google::Apis::Core::Hashable
19077
+
19078
+ # Output only. Timestamp when this NotebookExecutionJob was created.
19079
+ # Corresponds to the JSON property `createTime`
19080
+ # @return [String]
19081
+ attr_accessor :create_time
19082
+
19083
+ # Compute configuration to use for an execution job.
19084
+ # Corresponds to the JSON property `customEnvironmentSpec`
19085
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec]
19086
+ attr_accessor :custom_environment_spec
19087
+
19088
+ # The Dataform Repository containing the input notebook.
19089
+ # Corresponds to the JSON property `dataformRepositorySource`
19090
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource]
19091
+ attr_accessor :dataform_repository_source
19092
+
19093
+ # The content of the input notebook in ipynb format.
19094
+ # Corresponds to the JSON property `directNotebookSource`
19095
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource]
19096
+ attr_accessor :direct_notebook_source
19097
+
19098
+ # The display name of the NotebookExecutionJob. The name can be up to 128
19099
+ # characters long and can consist of any UTF-8 characters.
19100
+ # Corresponds to the JSON property `displayName`
19101
+ # @return [String]
19102
+ attr_accessor :display_name
19103
+
19104
+ # Max running time of the execution job in seconds (default 86400s / 24 hrs).
19105
+ # Corresponds to the JSON property `executionTimeout`
19106
+ # @return [String]
19107
+ attr_accessor :execution_timeout
19108
+
19109
+ # The user email to run the execution as. Only supported by Colab runtimes.
19110
+ # Corresponds to the JSON property `executionUser`
19111
+ # @return [String]
19112
+ attr_accessor :execution_user
19113
+
19114
+ # The Cloud Storage uri for the input notebook.
19115
+ # Corresponds to the JSON property `gcsNotebookSource`
19116
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource]
19117
+ attr_accessor :gcs_notebook_source
19118
+
19119
+ # The GCS location to upload the result to. Format: `gs://bucket-name`
19120
+ # Corresponds to the JSON property `gcsOutputUri`
19121
+ # @return [String]
19122
+ attr_accessor :gcs_output_uri
19123
+
19124
+ # Output only. The state of the NotebookExecutionJob.
19125
+ # Corresponds to the JSON property `jobState`
19126
+ # @return [String]
19127
+ attr_accessor :job_state
19128
+
19129
+ # Output only. The resource name of this NotebookExecutionJob. Format: `projects/
19130
+ # `project_id`/locations/`location`/notebookExecutionJobs/`job_id``
19131
+ # Corresponds to the JSON property `name`
19132
+ # @return [String]
19133
+ attr_accessor :name
19134
+
19135
+ # The NotebookRuntimeTemplate to source compute configuration from.
19136
+ # Corresponds to the JSON property `notebookRuntimeTemplateResourceName`
19137
+ # @return [String]
19138
+ attr_accessor :notebook_runtime_template_resource_name
19139
+
19140
+ # Output only. The Schedule resource name if this job is triggered by one.
19141
+ # Format: `projects/`project_id`/locations/`location`/schedules/`schedule_id``
19142
+ # Corresponds to the JSON property `scheduleResourceName`
19143
+ # @return [String]
19144
+ attr_accessor :schedule_resource_name
19145
+
19146
+ # The service account to run the execution as.
19147
+ # Corresponds to the JSON property `serviceAccount`
19148
+ # @return [String]
19149
+ attr_accessor :service_account
19150
+
19151
+ # The `Status` type defines a logical error model that is suitable for different
19152
+ # programming environments, including REST APIs and RPC APIs. It is used by [
19153
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
19154
+ # data: error code, error message, and error details. You can find out more
19155
+ # about this error model and how to work with it in the [API Design Guide](https:
19156
+ # //cloud.google.com/apis/design/errors).
19157
+ # Corresponds to the JSON property `status`
19158
+ # @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
19159
+ attr_accessor :status
19160
+
19161
+ # Output only. Timestamp when this NotebookExecutionJob was most recently
19162
+ # updated.
19163
+ # Corresponds to the JSON property `updateTime`
19164
+ # @return [String]
19165
+ attr_accessor :update_time
19166
+
19167
+ def initialize(**args)
19168
+ update!(**args)
19169
+ end
19170
+
19171
+ # Update properties of this object
19172
+ def update!(**args)
19173
+ @create_time = args[:create_time] if args.key?(:create_time)
19174
+ @custom_environment_spec = args[:custom_environment_spec] if args.key?(:custom_environment_spec)
19175
+ @dataform_repository_source = args[:dataform_repository_source] if args.key?(:dataform_repository_source)
19176
+ @direct_notebook_source = args[:direct_notebook_source] if args.key?(:direct_notebook_source)
19177
+ @display_name = args[:display_name] if args.key?(:display_name)
19178
+ @execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout)
19179
+ @execution_user = args[:execution_user] if args.key?(:execution_user)
19180
+ @gcs_notebook_source = args[:gcs_notebook_source] if args.key?(:gcs_notebook_source)
19181
+ @gcs_output_uri = args[:gcs_output_uri] if args.key?(:gcs_output_uri)
19182
+ @job_state = args[:job_state] if args.key?(:job_state)
19183
+ @name = args[:name] if args.key?(:name)
19184
+ @notebook_runtime_template_resource_name = args[:notebook_runtime_template_resource_name] if args.key?(:notebook_runtime_template_resource_name)
19185
+ @schedule_resource_name = args[:schedule_resource_name] if args.key?(:schedule_resource_name)
19186
+ @service_account = args[:service_account] if args.key?(:service_account)
19187
+ @status = args[:status] if args.key?(:status)
19188
+ @update_time = args[:update_time] if args.key?(:update_time)
19189
+ end
19190
+ end
19191
+
19192
+ # Compute configuration to use for an execution job.
19193
+ class GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec
19194
+ include Google::Apis::Core::Hashable
19195
+
19196
+ # Specification of a single machine.
19197
+ # Corresponds to the JSON property `machineSpec`
19198
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec]
19199
+ attr_accessor :machine_spec
19200
+
19201
+ # Network spec.
19202
+ # Corresponds to the JSON property `networkSpec`
19203
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NetworkSpec]
19204
+ attr_accessor :network_spec
19205
+
19206
+ # Represents the spec of persistent disk options.
19207
+ # Corresponds to the JSON property `persistentDiskSpec`
19208
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentDiskSpec]
19209
+ attr_accessor :persistent_disk_spec
19210
+
19211
+ def initialize(**args)
19212
+ update!(**args)
19213
+ end
19214
+
19215
+ # Update properties of this object
19216
+ def update!(**args)
19217
+ @machine_spec = args[:machine_spec] if args.key?(:machine_spec)
19218
+ @network_spec = args[:network_spec] if args.key?(:network_spec)
19219
+ @persistent_disk_spec = args[:persistent_disk_spec] if args.key?(:persistent_disk_spec)
19220
+ end
19221
+ end
19222
+
19223
+ # The Dataform Repository containing the input notebook.
19224
+ class GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource
19225
+ include Google::Apis::Core::Hashable
19226
+
19227
+ # The commit SHA to read repository with. If unset, the file will be read at
19228
+ # HEAD.
19229
+ # Corresponds to the JSON property `commitSha`
19230
+ # @return [String]
19231
+ attr_accessor :commit_sha
19232
+
19233
+ # The resource name of the Dataform Repository. Format: `projects/`project_id`/
19234
+ # locations/`location`/repositories/`repository_id``
19235
+ # Corresponds to the JSON property `dataformRepositoryResourceName`
19236
+ # @return [String]
19237
+ attr_accessor :dataform_repository_resource_name
19238
+
19239
+ def initialize(**args)
19240
+ update!(**args)
19241
+ end
19242
+
19243
+ # Update properties of this object
19244
+ def update!(**args)
19245
+ @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
19246
+ @dataform_repository_resource_name = args[:dataform_repository_resource_name] if args.key?(:dataform_repository_resource_name)
19247
+ end
19248
+ end
19249
+
19250
+ # The content of the input notebook in ipynb format.
19251
+ class GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource
19252
+ include Google::Apis::Core::Hashable
19253
+
19254
+ # The base64-encoded contents of the input notebook file.
19255
+ # Corresponds to the JSON property `content`
19256
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
19257
+ # @return [String]
19258
+ attr_accessor :content
19259
+
19260
+ def initialize(**args)
19261
+ update!(**args)
19262
+ end
19263
+
19264
+ # Update properties of this object
19265
+ def update!(**args)
19266
+ @content = args[:content] if args.key?(:content)
19267
+ end
19268
+ end
19269
+
19270
+ # The Cloud Storage uri for the input notebook.
19271
+ class GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource
19272
+ include Google::Apis::Core::Hashable
19273
+
19274
+ # The version of the Cloud Storage object to read. If unset, the current version
19275
+ # of the object is read. See https://cloud.google.com/storage/docs/metadata#
19276
+ # generation-number.
19277
+ # Corresponds to the JSON property `generation`
19278
+ # @return [String]
19279
+ attr_accessor :generation
19280
+
19281
+ # The Cloud Storage uri pointing to the ipynb file. Format: `gs://bucket/
19282
+ # notebook_file.ipynb`
19283
+ # Corresponds to the JSON property `uri`
19284
+ # @return [String]
19285
+ attr_accessor :uri
19286
+
19287
+ def initialize(**args)
19288
+ update!(**args)
19289
+ end
19290
+
19291
+ # Update properties of this object
19292
+ def update!(**args)
19293
+ @generation = args[:generation] if args.key?(:generation)
19294
+ @uri = args[:uri] if args.key?(:uri)
19295
+ end
19296
+ end
19297
+
17877
19298
  # The idle shutdown configuration of NotebookRuntimeTemplate, which contains the
17878
19299
  # idle_timeout as required field.
17879
19300
  class GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig
@@ -19790,6 +21211,12 @@ module Google
19790
21211
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke]
19791
21212
  attr_accessor :deploy_gke
19792
21213
 
21214
+ # The regional resource name or the URI. Key is region, e.g., us-central1,
21215
+ # europe-west2, global, etc..
21216
+ # Corresponds to the JSON property `fineTune`
21217
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences]
21218
+ attr_accessor :fine_tune
21219
+
19793
21220
  # The regional resource name or the URI. Key is region, e.g., us-central1,
19794
21221
  # europe-west2, global, etc..
19795
21222
  # Corresponds to the JSON property `openEvaluationPipeline`
@@ -19856,6 +21283,7 @@ module Google
19856
21283
  @create_application = args[:create_application] if args.key?(:create_application)
19857
21284
  @deploy = args[:deploy] if args.key?(:deploy)
19858
21285
  @deploy_gke = args[:deploy_gke] if args.key?(:deploy_gke)
21286
+ @fine_tune = args[:fine_tune] if args.key?(:fine_tune)
19859
21287
  @open_evaluation_pipeline = args[:open_evaluation_pipeline] if args.key?(:open_evaluation_pipeline)
19860
21288
  @open_fine_tuning_pipeline = args[:open_fine_tuning_pipeline] if args.key?(:open_fine_tuning_pipeline)
19861
21289
  @open_fine_tuning_pipelines = args[:open_fine_tuning_pipelines] if args.key?(:open_fine_tuning_pipelines)
@@ -19901,6 +21329,11 @@ module Google
19901
21329
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DedicatedResources]
19902
21330
  attr_accessor :dedicated_resources
19903
21331
 
21332
+ # Optional. The name of the deploy task (e.g., "text to image generation").
21333
+ # Corresponds to the JSON property `deployTaskName`
21334
+ # @return [String]
21335
+ attr_accessor :deploy_task_name
21336
+
19904
21337
  # Contains information about the Large Model.
19905
21338
  # Corresponds to the JSON property `largeModelReference`
19906
21339
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LargeModelReference]
@@ -19938,6 +21371,7 @@ module Google
19938
21371
  @automatic_resources = args[:automatic_resources] if args.key?(:automatic_resources)
19939
21372
  @container_spec = args[:container_spec] if args.key?(:container_spec)
19940
21373
  @dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
21374
+ @deploy_task_name = args[:deploy_task_name] if args.key?(:deploy_task_name)
19941
21375
  @large_model_reference = args[:large_model_reference] if args.key?(:large_model_reference)
19942
21376
  @model_display_name = args[:model_display_name] if args.key?(:model_display_name)
19943
21377
  @public_artifact_uri = args[:public_artifact_uri] if args.key?(:public_artifact_uri)
@@ -22151,7 +23585,7 @@ module Google
22151
23585
  class GoogleCloudAiplatformV1beta1RougeSpec
22152
23586
  include Google::Apis::Core::Hashable
22153
23587
 
22154
- # Optional. Supported rouge types are rougen[1-9], rougeL and rougeLsum.
23588
+ # Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
22155
23589
  # Corresponds to the JSON property `rougeType`
22156
23590
  # @return [String]
22157
23591
  attr_accessor :rouge_type
@@ -22220,18 +23654,19 @@ module Google
22220
23654
  class GoogleCloudAiplatformV1beta1RuntimeConfigCodeInterpreterRuntimeConfig
22221
23655
  include Google::Apis::Core::Hashable
22222
23656
 
22223
- # Optional. The GCS bucket for file input of this Extension. If specified,
22224
- # support input from the GCS bucket. Vertex Extension Custom Code Service Agent
22225
- # should be granted file reader to this bucket. If not specified, the extension
22226
- # will only accept file contents from request body and reject GCS file inputs.
23657
+ # Optional. The Cloud Storage bucket for file input of this Extension. If
23658
+ # specified, support input from the Cloud Storage bucket. Vertex Extension
23659
+ # Custom Code Service Agent should be granted file reader to this bucket. If not
23660
+ # specified, the extension will only accept file contents from request body and
23661
+ # reject Cloud Storage file inputs.
22227
23662
  # Corresponds to the JSON property `fileInputGcsBucket`
22228
23663
  # @return [String]
22229
23664
  attr_accessor :file_input_gcs_bucket
22230
23665
 
22231
- # Optional. The GCS bucket for file output of this Extension. If specified,
22232
- # write all output files to the GCS bucket. Vertex Extension Custom Code Service
22233
- # Agent should be granted file writer to this bucket. If not specified, the file
22234
- # content will be output in response body.
23666
+ # Optional. The Cloud Storage bucket for file output of this Extension. If
23667
+ # specified, write all output files to the Cloud Storage bucket. Vertex
23668
+ # Extension Custom Code Service Agent should be granted file writer to this
23669
+ # bucket. If not specified, the file content will be output in response body.
22235
23670
  # Corresponds to the JSON property `fileOutputGcsBucket`
22236
23671
  # @return [String]
22237
23672
  attr_accessor :file_output_gcs_bucket
@@ -22253,8 +23688,7 @@ module Google
22253
23688
 
22254
23689
  # Required. Vertext AI Search serving config name. Format: `projects/`project`/
22255
23690
  # locations/`location`/collections/`collection`/engines/`engine`/servingConfigs/`
22256
- # serving_config`` or `projects/`project`/locations/`location`/collections/`
22257
- # collection`/dataStores/`data_store`/servingConfigs/`serving_config``
23691
+ # serving_config``
22258
23692
  # Corresponds to the JSON property `servingConfigName`
22259
23693
  # @return [String]
22260
23694
  attr_accessor :serving_config_name
@@ -22662,6 +24096,11 @@ module Google
22662
24096
  attr_accessor :catch_up
22663
24097
  alias_method :catch_up?, :catch_up
22664
24098
 
24099
+ # Request message for ModelMonitoringService.CreateModelMonitoringJob.
24100
+ # Corresponds to the JSON property `createModelMonitoringJobRequest`
24101
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreateModelMonitoringJobRequest]
24102
+ attr_accessor :create_model_monitoring_job_request
24103
+
22665
24104
  # Request message for PipelineService.CreatePipelineJob.
22666
24105
  # Corresponds to the JSON property `createPipelineJobRequest`
22667
24106
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreatePipelineJobRequest]
@@ -22769,6 +24208,7 @@ module Google
22769
24208
  def update!(**args)
22770
24209
  @allow_queueing = args[:allow_queueing] if args.key?(:allow_queueing)
22771
24210
  @catch_up = args[:catch_up] if args.key?(:catch_up)
24211
+ @create_model_monitoring_job_request = args[:create_model_monitoring_job_request] if args.key?(:create_model_monitoring_job_request)
22772
24212
  @create_pipeline_job_request = args[:create_pipeline_job_request] if args.key?(:create_pipeline_job_request)
22773
24213
  @create_time = args[:create_time] if args.key?(:create_time)
22774
24214
  @cron = args[:cron] if args.key?(:cron)
@@ -28996,6 +30436,33 @@ module Google
28996
30436
  end
28997
30437
  end
28998
30438
 
30439
+ # Google search entry point.
30440
+ class GoogleCloudAiplatformV1beta1SearchEntryPoint
30441
+ include Google::Apis::Core::Hashable
30442
+
30443
+ # Optional. Web content snippet that can be embedded in a web page or an app
30444
+ # webview.
30445
+ # Corresponds to the JSON property `renderedContent`
30446
+ # @return [String]
30447
+ attr_accessor :rendered_content
30448
+
30449
+ # Optional. Base64 encoded JSON representing array of tuple.
30450
+ # Corresponds to the JSON property `sdkBlob`
30451
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
30452
+ # @return [String]
30453
+ attr_accessor :sdk_blob
30454
+
30455
+ def initialize(**args)
30456
+ update!(**args)
30457
+ end
30458
+
30459
+ # Update properties of this object
30460
+ def update!(**args)
30461
+ @rendered_content = args[:rendered_content] if args.key?(:rendered_content)
30462
+ @sdk_blob = args[:sdk_blob] if args.key?(:sdk_blob)
30463
+ end
30464
+ end
30465
+
28999
30466
  # Response message for FeaturestoreService.SearchFeatures.
29000
30467
  class GoogleCloudAiplatformV1beta1SearchFeaturesResponse
29001
30468
  include Google::Apis::Core::Hashable
@@ -29207,6 +30674,224 @@ module Google
29207
30674
  end
29208
30675
  end
29209
30676
 
30677
+ # Request message for ModelMonitoringService.SearchModelMonitoringAlerts.
30678
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest
30679
+ include Google::Apis::Core::Hashable
30680
+
30681
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
30682
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
30683
+ # When the start equals the end, the interval is empty (matches no time). When
30684
+ # both start and end are unspecified, the interval matches any time.
30685
+ # Corresponds to the JSON property `alertTimeInterval`
30686
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
30687
+ attr_accessor :alert_time_interval
30688
+
30689
+ # If non-empty, returns the alerts of this model monitoring job.
30690
+ # Corresponds to the JSON property `modelMonitoringJob`
30691
+ # @return [String]
30692
+ attr_accessor :model_monitoring_job
30693
+
30694
+ # If non-empty, returns the alerts of this objective type. Supported monitoring
30695
+ # objectives: `raw-feature-drift` `prediction-output-drift` `feature-attribution`
30696
+ # Corresponds to the JSON property `objectiveType`
30697
+ # @return [String]
30698
+ attr_accessor :objective_type
30699
+
30700
+ # The standard list page size.
30701
+ # Corresponds to the JSON property `pageSize`
30702
+ # @return [Fixnum]
30703
+ attr_accessor :page_size
30704
+
30705
+ # A page token received from a previous ModelMonitoringService.
30706
+ # SearchModelMonitoringAlerts call.
30707
+ # Corresponds to the JSON property `pageToken`
30708
+ # @return [String]
30709
+ attr_accessor :page_token
30710
+
30711
+ # If non-empty, returns the alerts of this stats_name.
30712
+ # Corresponds to the JSON property `statsName`
30713
+ # @return [String]
30714
+ attr_accessor :stats_name
30715
+
30716
+ def initialize(**args)
30717
+ update!(**args)
30718
+ end
30719
+
30720
+ # Update properties of this object
30721
+ def update!(**args)
30722
+ @alert_time_interval = args[:alert_time_interval] if args.key?(:alert_time_interval)
30723
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
30724
+ @objective_type = args[:objective_type] if args.key?(:objective_type)
30725
+ @page_size = args[:page_size] if args.key?(:page_size)
30726
+ @page_token = args[:page_token] if args.key?(:page_token)
30727
+ @stats_name = args[:stats_name] if args.key?(:stats_name)
30728
+ end
30729
+ end
30730
+
30731
+ # Response message for ModelMonitoringService.SearchModelMonitoringAlerts.
30732
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse
30733
+ include Google::Apis::Core::Hashable
30734
+
30735
+ # Alerts retrieved for the requested objectives. Sorted by alert time
30736
+ # descendingly.
30737
+ # Corresponds to the JSON property `modelMonitoringAlerts`
30738
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlert>]
30739
+ attr_accessor :model_monitoring_alerts
30740
+
30741
+ # The page token that can be used by the next ModelMonitoringService.
30742
+ # SearchModelMonitoringAlerts call.
30743
+ # Corresponds to the JSON property `nextPageToken`
30744
+ # @return [String]
30745
+ attr_accessor :next_page_token
30746
+
30747
+ # The total number of alerts retrieved by the requested objectives.
30748
+ # Corresponds to the JSON property `totalNumberAlerts`
30749
+ # @return [Fixnum]
30750
+ attr_accessor :total_number_alerts
30751
+
30752
+ def initialize(**args)
30753
+ update!(**args)
30754
+ end
30755
+
30756
+ # Update properties of this object
30757
+ def update!(**args)
30758
+ @model_monitoring_alerts = args[:model_monitoring_alerts] if args.key?(:model_monitoring_alerts)
30759
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
30760
+ @total_number_alerts = args[:total_number_alerts] if args.key?(:total_number_alerts)
30761
+ end
30762
+ end
30763
+
30764
+ # Filter for searching ModelMonitoringStats.
30765
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter
30766
+ include Google::Apis::Core::Hashable
30767
+
30768
+ # Tabular statistics filter.
30769
+ # Corresponds to the JSON property `tabularStatsFilter`
30770
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter]
30771
+ attr_accessor :tabular_stats_filter
30772
+
30773
+ def initialize(**args)
30774
+ update!(**args)
30775
+ end
30776
+
30777
+ # Update properties of this object
30778
+ def update!(**args)
30779
+ @tabular_stats_filter = args[:tabular_stats_filter] if args.key?(:tabular_stats_filter)
30780
+ end
30781
+ end
30782
+
30783
+ # Tabular statistics filter.
30784
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter
30785
+ include Google::Apis::Core::Hashable
30786
+
30787
+ # Specify the algorithm type used for distance calculation, eg:
30788
+ # jensen_shannon_divergence, l_infinity.
30789
+ # Corresponds to the JSON property `algorithm`
30790
+ # @return [String]
30791
+ attr_accessor :algorithm
30792
+
30793
+ # From a particular monitoring job.
30794
+ # Corresponds to the JSON property `modelMonitoringJob`
30795
+ # @return [String]
30796
+ attr_accessor :model_monitoring_job
30797
+
30798
+ # From a particular monitoring schedule.
30799
+ # Corresponds to the JSON property `modelMonitoringSchedule`
30800
+ # @return [String]
30801
+ attr_accessor :model_monitoring_schedule
30802
+
30803
+ # One of the supported monitoring objectives: `raw-feature-drift` `prediction-
30804
+ # output-drift` `feature-attribution`
30805
+ # Corresponds to the JSON property `objectiveType`
30806
+ # @return [String]
30807
+ attr_accessor :objective_type
30808
+
30809
+ # If not specified, will return all the stats_names.
30810
+ # Corresponds to the JSON property `statsName`
30811
+ # @return [String]
30812
+ attr_accessor :stats_name
30813
+
30814
+ def initialize(**args)
30815
+ update!(**args)
30816
+ end
30817
+
30818
+ # Update properties of this object
30819
+ def update!(**args)
30820
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
30821
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
30822
+ @model_monitoring_schedule = args[:model_monitoring_schedule] if args.key?(:model_monitoring_schedule)
30823
+ @objective_type = args[:objective_type] if args.key?(:objective_type)
30824
+ @stats_name = args[:stats_name] if args.key?(:stats_name)
30825
+ end
30826
+ end
30827
+
30828
+ # Request message for ModelMonitoringService.SearchModelMonitoringStats.
30829
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest
30830
+ include Google::Apis::Core::Hashable
30831
+
30832
+ # The standard list page size.
30833
+ # Corresponds to the JSON property `pageSize`
30834
+ # @return [Fixnum]
30835
+ attr_accessor :page_size
30836
+
30837
+ # A page token received from a previous ModelMonitoringService.
30838
+ # SearchModelMonitoringStats call.
30839
+ # Corresponds to the JSON property `pageToken`
30840
+ # @return [String]
30841
+ attr_accessor :page_token
30842
+
30843
+ # Filter for searching ModelMonitoringStats.
30844
+ # Corresponds to the JSON property `statsFilter`
30845
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter]
30846
+ attr_accessor :stats_filter
30847
+
30848
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
30849
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
30850
+ # When the start equals the end, the interval is empty (matches no time). When
30851
+ # both start and end are unspecified, the interval matches any time.
30852
+ # Corresponds to the JSON property `timeInterval`
30853
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
30854
+ attr_accessor :time_interval
30855
+
30856
+ def initialize(**args)
30857
+ update!(**args)
30858
+ end
30859
+
30860
+ # Update properties of this object
30861
+ def update!(**args)
30862
+ @page_size = args[:page_size] if args.key?(:page_size)
30863
+ @page_token = args[:page_token] if args.key?(:page_token)
30864
+ @stats_filter = args[:stats_filter] if args.key?(:stats_filter)
30865
+ @time_interval = args[:time_interval] if args.key?(:time_interval)
30866
+ end
30867
+ end
30868
+
30869
+ # Response message for ModelMonitoringService.SearchModelMonitoringStats.
30870
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse
30871
+ include Google::Apis::Core::Hashable
30872
+
30873
+ # Stats retrieved for requested objectives.
30874
+ # Corresponds to the JSON property `monitoringStats`
30875
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStats>]
30876
+ attr_accessor :monitoring_stats
30877
+
30878
+ # The page token that can be used by the next ModelMonitoringService.
30879
+ # SearchModelMonitoringStats call.
30880
+ # Corresponds to the JSON property `nextPageToken`
30881
+ # @return [String]
30882
+ attr_accessor :next_page_token
30883
+
30884
+ def initialize(**args)
30885
+ update!(**args)
30886
+ end
30887
+
30888
+ # Update properties of this object
30889
+ def update!(**args)
30890
+ @monitoring_stats = args[:monitoring_stats] if args.key?(:monitoring_stats)
30891
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
30892
+ end
30893
+ end
30894
+
29210
30895
  # The request message for FeatureOnlineStoreService.SearchNearestEntities.
29211
30896
  class GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest
29212
30897
  include Google::Apis::Core::Hashable
@@ -29255,39 +30940,6 @@ module Google
29255
30940
  end
29256
30941
  end
29257
30942
 
29258
- # Segment of the content.
29259
- class GoogleCloudAiplatformV1beta1Segment
29260
- include Google::Apis::Core::Hashable
29261
-
29262
- # Output only. End index in the given Part, measured in bytes. Offset from the
29263
- # start of the Part, exclusive, starting at zero.
29264
- # Corresponds to the JSON property `endIndex`
29265
- # @return [Fixnum]
29266
- attr_accessor :end_index
29267
-
29268
- # Output only. The index of a Part object within its parent Content object.
29269
- # Corresponds to the JSON property `partIndex`
29270
- # @return [Fixnum]
29271
- attr_accessor :part_index
29272
-
29273
- # Output only. Start index in the given Part, measured in bytes. Offset from the
29274
- # start of the Part, inclusive, starting at zero.
29275
- # Corresponds to the JSON property `startIndex`
29276
- # @return [Fixnum]
29277
- attr_accessor :start_index
29278
-
29279
- def initialize(**args)
29280
- update!(**args)
29281
- end
29282
-
29283
- # Update properties of this object
29284
- def update!(**args)
29285
- @end_index = args[:end_index] if args.key?(:end_index)
29286
- @part_index = args[:part_index] if args.key?(:part_index)
29287
- @start_index = args[:start_index] if args.key?(:start_index)
29288
- end
29289
- end
29290
-
29291
30943
  # Configuration for the use of custom service account to run the workloads.
29292
30944
  class GoogleCloudAiplatformV1beta1ServiceAccountSpec
29293
30945
  include Google::Apis::Core::Hashable
@@ -31771,11 +33423,6 @@ module Google
31771
33423
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
31772
33424
  attr_accessor :function_declarations
31773
33425
 
31774
- # Tool to retrieve public web data for grounding, powered by Google.
31775
- # Corresponds to the JSON property `googleSearchRetrieval`
31776
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleSearchRetrieval]
31777
- attr_accessor :google_search_retrieval
31778
-
31779
33426
  # Defines a retrieval tool that model can call to access external knowledge.
31780
33427
  # Corresponds to the JSON property `retrieval`
31781
33428
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Retrieval]
@@ -31788,7 +33435,6 @@ module Google
31788
33435
  # Update properties of this object
31789
33436
  def update!(**args)
31790
33437
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
31791
- @google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
31792
33438
  @retrieval = args[:retrieval] if args.key?(:retrieval)
31793
33439
  end
31794
33440
  end
@@ -33019,6 +34665,25 @@ module Google
33019
34665
  end
33020
34666
  end
33021
34667
 
34668
+ # Runtime operation information for ModelMonitoringService.UpdateModelMonitor.
34669
+ class GoogleCloudAiplatformV1beta1UpdateModelMonitorOperationMetadata
34670
+ include Google::Apis::Core::Hashable
34671
+
34672
+ # Generic Metadata shared by all operations.
34673
+ # Corresponds to the JSON property `genericMetadata`
34674
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
34675
+ attr_accessor :generic_metadata
34676
+
34677
+ def initialize(**args)
34678
+ update!(**args)
34679
+ end
34680
+
34681
+ # Update properties of this object
34682
+ def update!(**args)
34683
+ @generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
34684
+ end
34685
+ end
34686
+
33022
34687
  # Details of operations that perform update PersistentResource.
33023
34688
  class GoogleCloudAiplatformV1beta1UpdatePersistentResourceOperationMetadata
33024
34689
  include Google::Apis::Core::Hashable
@@ -33335,9 +35000,9 @@ module Google
33335
35000
  class GoogleCloudAiplatformV1beta1VertexAiSearch
33336
35001
  include Google::Apis::Core::Hashable
33337
35002
 
33338
- # Required. Fully-qualified Vertex AI Search's datastore resource ID. Format:
35003
+ # Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `
33339
35004
  # projects/`project`/locations/`location`/collections/`collection`/dataStores/`
33340
- # dataStore`
35005
+ # dataStore``
33341
35006
  # Corresponds to the JSON property `datastore`
33342
35007
  # @return [String]
33343
35008
  attr_accessor :datastore
@@ -33356,10 +35021,10 @@ module Google
33356
35021
  class GoogleCloudAiplatformV1beta1VertexRagStore
33357
35022
  include Google::Apis::Core::Hashable
33358
35023
 
33359
- # Required. Vertex RAG Store corpus resource name: projects/`project`/locations/`
33360
- # location`/ragCorpora/`ragCorpus` Currently only one corpus is allowed. In the
33361
- # future we may open up multiple corpora support. However, they should be from
33362
- # the same project and location.
35024
+ # Required. Vertex RAG Store corpus resource name: `projects/`project`/locations/
35025
+ # `location`/ragCorpora/`ragCorpus`` Currently only one corpus is allowed. In
35026
+ # the future we may open up multiple corpora support. However, they should be
35027
+ # from the same project and location.
33363
35028
  # Corresponds to the JSON property `ragCorpora`
33364
35029
  # @return [Array<String>]
33365
35030
  attr_accessor :rag_corpora
@@ -33369,6 +35034,11 @@ module Google
33369
35034
  # @return [Fixnum]
33370
35035
  attr_accessor :similarity_top_k
33371
35036
 
35037
+ # Optional. Only return results with vector distance smaller than the threshold.
35038
+ # Corresponds to the JSON property `vectorDistanceThreshold`
35039
+ # @return [Float]
35040
+ attr_accessor :vector_distance_threshold
35041
+
33372
35042
  def initialize(**args)
33373
35043
  update!(**args)
33374
35044
  end
@@ -33377,6 +35047,7 @@ module Google
33377
35047
  def update!(**args)
33378
35048
  @rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
33379
35049
  @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
35050
+ @vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
33380
35051
  end
33381
35052
  end
33382
35053
 
@@ -34769,7 +36440,8 @@ module Google
34769
36440
  class LanguageLabsAidaTrustRecitationProtoSegmentResult
34770
36441
  include Google::Apis::Core::Hashable
34771
36442
 
34772
- # The dataset the segment came from.
36443
+ # The dataset the segment came from. Datasets change often as model evolves.
36444
+ # Treat this field as informational only and avoid depending on it directly.
34773
36445
  # Corresponds to the JSON property `attributionDataset`
34774
36446
  # @return [String]
34775
36447
  attr_accessor :attribution_dataset
@@ -34811,6 +36483,12 @@ module Google
34811
36483
  # @return [String]
34812
36484
  attr_accessor :segment_recitation_action
34813
36485
 
36486
+ # The category of the source dataset where the segment came from. This is more
36487
+ # stable than Dataset.
36488
+ # Corresponds to the JSON property `sourceCategory`
36489
+ # @return [String]
36490
+ attr_accessor :source_category
36491
+
34814
36492
  # The segment boundary start (inclusive) and end index (exclusive) in the given
34815
36493
  # text. In the streaming RPC, the indexes always start from the beginning of the
34816
36494
  # first text in the entire stream. The indexes are measured in UTF-16 code units.
@@ -34831,6 +36509,7 @@ module Google
34831
36509
  @end_index = args[:end_index] if args.key?(:end_index)
34832
36510
  @raw_text = args[:raw_text] if args.key?(:raw_text)
34833
36511
  @segment_recitation_action = args[:segment_recitation_action] if args.key?(:segment_recitation_action)
36512
+ @source_category = args[:source_category] if args.key?(:source_category)
34834
36513
  @start_index = args[:start_index] if args.key?(:start_index)
34835
36514
  end
34836
36515
  end
@@ -35124,7 +36803,8 @@ module Google
35124
36803
  class LearningGenaiRecitationSegmentResult
35125
36804
  include Google::Apis::Core::Hashable
35126
36805
 
35127
- # The dataset the segment came from.
36806
+ # The dataset the segment came from. Datasets change often as model evolves.
36807
+ # Treat this field as informational only and avoid depending on it directly.
35128
36808
  # Corresponds to the JSON property `attributionDataset`
35129
36809
  # @return [String]
35130
36810
  attr_accessor :attribution_dataset
@@ -35166,6 +36846,12 @@ module Google
35166
36846
  # @return [String]
35167
36847
  attr_accessor :segment_recitation_action
35168
36848
 
36849
+ # The category of the source dataset where the segment came from. This is more
36850
+ # stable than Dataset.
36851
+ # Corresponds to the JSON property `sourceCategory`
36852
+ # @return [String]
36853
+ attr_accessor :source_category
36854
+
35169
36855
  # The segment boundary start (inclusive) and end index (exclusive) in the given
35170
36856
  # text. In the streaming RPC, the indexes always start from the beginning of the
35171
36857
  # first text in the entire stream. The indexes are measured in UTF-16 code units.
@@ -35186,6 +36872,7 @@ module Google
35186
36872
  @end_index = args[:end_index] if args.key?(:end_index)
35187
36873
  @raw_text = args[:raw_text] if args.key?(:raw_text)
35188
36874
  @segment_recitation_action = args[:segment_recitation_action] if args.key?(:segment_recitation_action)
36875
+ @source_category = args[:source_category] if args.key?(:source_category)
35189
36876
  @start_index = args[:start_index] if args.key?(:start_index)
35190
36877
  end
35191
36878
  end
@@ -35379,6 +37066,31 @@ module Google
35379
37066
  end
35380
37067
  end
35381
37068
 
37069
+ # Stores all metadata relating to GenerateCode.
37070
+ class LearningGenaiRootCodeyGenerationMetadata
37071
+ include Google::Apis::Core::Hashable
37072
+
37073
+ # Last state of the sample before getting dropped/returned.
37074
+ # Corresponds to the JSON property `output`
37075
+ # @return [String]
37076
+ attr_accessor :output
37077
+
37078
+ # Last Codey postprocessing step for this sample before getting dropped/returned.
37079
+ # Corresponds to the JSON property `postInferenceStep`
37080
+ # @return [String]
37081
+ attr_accessor :post_inference_step
37082
+
37083
+ def initialize(**args)
37084
+ update!(**args)
37085
+ end
37086
+
37087
+ # Update properties of this object
37088
+ def update!(**args)
37089
+ @output = args[:output] if args.key?(:output)
37090
+ @post_inference_step = args[:post_inference_step] if args.key?(:post_inference_step)
37091
+ end
37092
+ end
37093
+
35382
37094
  # Top-level wrapper used to store all things codey-related.
35383
37095
  class LearningGenaiRootCodeyOutput
35384
37096
  include Google::Apis::Core::Hashable
@@ -35393,6 +37105,11 @@ module Google
35393
37105
  # @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootCodeyCompletionMetadata]
35394
37106
  attr_accessor :codey_completion_metadata
35395
37107
 
37108
+ # Stores all metadata relating to GenerateCode.
37109
+ # Corresponds to the JSON property `codeyGenerationMetadata`
37110
+ # @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootCodeyGenerationMetadata]
37111
+ attr_accessor :codey_generation_metadata
37112
+
35396
37113
  def initialize(**args)
35397
37114
  update!(**args)
35398
37115
  end
@@ -35401,6 +37118,7 @@ module Google
35401
37118
  def update!(**args)
35402
37119
  @codey_chat_metadata = args[:codey_chat_metadata] if args.key?(:codey_chat_metadata)
35403
37120
  @codey_completion_metadata = args[:codey_completion_metadata] if args.key?(:codey_completion_metadata)
37121
+ @codey_generation_metadata = args[:codey_generation_metadata] if args.key?(:codey_generation_metadata)
35404
37122
  end
35405
37123
  end
35406
37124
 
@@ -35429,6 +37147,113 @@ module Google
35429
37147
  end
35430
37148
  end
35431
37149
 
37150
+ # Score threshold for a category.
37151
+ class LearningGenaiRootControlDecodingConfigThreshold
37152
+ include Google::Apis::Core::Hashable
37153
+
37154
+ #
37155
+ # Corresponds to the JSON property `policy`
37156
+ # @return [String]
37157
+ attr_accessor :policy
37158
+
37159
+ #
37160
+ # Corresponds to the JSON property `scoreMax`
37161
+ # @return [Float]
37162
+ attr_accessor :score_max
37163
+
37164
+ def initialize(**args)
37165
+ update!(**args)
37166
+ end
37167
+
37168
+ # Update properties of this object
37169
+ def update!(**args)
37170
+ @policy = args[:policy] if args.key?(:policy)
37171
+ @score_max = args[:score_max] if args.key?(:score_max)
37172
+ end
37173
+ end
37174
+
37175
+ # Holds one control decoding record.
37176
+ class LearningGenaiRootControlDecodingRecord
37177
+ include Google::Apis::Core::Hashable
37178
+
37179
+ # Prefixes feeded into scorer.
37180
+ # Corresponds to the JSON property `prefixes`
37181
+ # @return [String]
37182
+ attr_accessor :prefixes
37183
+
37184
+ # Per policy scores returned from Scorer. Expect to have the same number of
37185
+ # scores as in `thresholds`.
37186
+ # Corresponds to the JSON property `scores`
37187
+ # @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingRecordPolicyScore>]
37188
+ attr_accessor :scores
37189
+
37190
+ # Suffixes feeded into scorer.
37191
+ # Corresponds to the JSON property `suffiexes`
37192
+ # @return [String]
37193
+ attr_accessor :suffiexes
37194
+
37195
+ # Per policy thresholds from user config.
37196
+ # Corresponds to the JSON property `thresholds`
37197
+ # @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingConfigThreshold>]
37198
+ attr_accessor :thresholds
37199
+
37200
+ def initialize(**args)
37201
+ update!(**args)
37202
+ end
37203
+
37204
+ # Update properties of this object
37205
+ def update!(**args)
37206
+ @prefixes = args[:prefixes] if args.key?(:prefixes)
37207
+ @scores = args[:scores] if args.key?(:scores)
37208
+ @suffiexes = args[:suffiexes] if args.key?(:suffiexes)
37209
+ @thresholds = args[:thresholds] if args.key?(:thresholds)
37210
+ end
37211
+ end
37212
+
37213
+ #
37214
+ class LearningGenaiRootControlDecodingRecordPolicyScore
37215
+ include Google::Apis::Core::Hashable
37216
+
37217
+ #
37218
+ # Corresponds to the JSON property `policy`
37219
+ # @return [String]
37220
+ attr_accessor :policy
37221
+
37222
+ #
37223
+ # Corresponds to the JSON property `score`
37224
+ # @return [Float]
37225
+ attr_accessor :score
37226
+
37227
+ def initialize(**args)
37228
+ update!(**args)
37229
+ end
37230
+
37231
+ # Update properties of this object
37232
+ def update!(**args)
37233
+ @policy = args[:policy] if args.key?(:policy)
37234
+ @score = args[:score] if args.key?(:score)
37235
+ end
37236
+ end
37237
+
37238
+ #
37239
+ class LearningGenaiRootControlDecodingRecords
37240
+ include Google::Apis::Core::Hashable
37241
+
37242
+ # One ControlDecodingRecord record maps to one rewind.
37243
+ # Corresponds to the JSON property `records`
37244
+ # @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingRecord>]
37245
+ attr_accessor :records
37246
+
37247
+ def initialize(**args)
37248
+ update!(**args)
37249
+ end
37250
+
37251
+ # Update properties of this object
37252
+ def update!(**args)
37253
+ @records = args[:records] if args.key?(:records)
37254
+ end
37255
+ end
37256
+
35432
37257
  #
35433
37258
  class LearningGenaiRootDataProviderOutput
35434
37259
  include Google::Apis::Core::Hashable
@@ -35543,6 +37368,11 @@ module Google
35543
37368
  # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceRaiSignal]
35544
37369
  attr_accessor :rai_signal
35545
37370
 
37371
+ # Number of rewinds by controlled decoding.
37372
+ # Corresponds to the JSON property `records`
37373
+ # @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingRecords]
37374
+ attr_accessor :records
37375
+
35546
37376
  # The recitation result for one stream input
35547
37377
  # Corresponds to the JSON property `streamRecitationResult`
35548
37378
  # @return [Google::Apis::AiplatformV1beta1::LanguageLabsAidaTrustRecitationProtoStreamRecitationResult]
@@ -35571,6 +37401,7 @@ module Google
35571
37401
  @rai_output = args[:rai_output] if args.key?(:rai_output)
35572
37402
  @rai_result = args[:rai_result] if args.key?(:rai_result)
35573
37403
  @rai_signal = args[:rai_signal] if args.key?(:rai_signal)
37404
+ @records = args[:records] if args.key?(:records)
35574
37405
  @stream_recitation_result = args[:stream_recitation_result] if args.key?(:stream_recitation_result)
35575
37406
  @takedown_result = args[:takedown_result] if args.key?(:takedown_result)
35576
37407
  @toxicity_result = args[:toxicity_result] if args.key?(:toxicity_result)
@@ -36840,8 +38671,9 @@ module Google
36840
38671
  attr_accessor :stream_terminated
36841
38672
  alias_method :stream_terminated?, :stream_terminated
36842
38673
 
36843
- # NOT YET IMPLEMENTED. Aggregated number of total tokens decoded so far. For
36844
- # streaming, this is sum of all the tokens decoded so far i.e. aggregated count.
38674
+ # Total tokens decoded so far per response_candidate. For streaming: Count of
38675
+ # all the tokens decoded so far (aggregated count). For unary: Count of all the
38676
+ # tokens decoded per response_candidate.
36845
38677
  # Corresponds to the JSON property `totalDecodedTokenCount`
36846
38678
  # @return [Fixnum]
36847
38679
  attr_accessor :total_decoded_token_count