google-apis-aiplatform_v1 0.12.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -882,11 +882,6 @@ module Google
882
882
  # @return [String]
883
883
  attr_accessor :end_offset
884
884
 
885
- # Internal only fields
886
- # Corresponds to the JSON property `modelLevelMetaData`
887
- # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata]
888
- attr_accessor :model_level_meta_data
889
-
890
885
  # The start offset of the video.
891
886
  # Corresponds to the JSON property `startOffset`
892
887
  # @return [String]
@@ -899,36 +894,10 @@ module Google
899
894
  # Update properties of this object
900
895
  def update!(**args)
901
896
  @end_offset = args[:end_offset] if args.key?(:end_offset)
902
- @model_level_meta_data = args[:model_level_meta_data] if args.key?(:model_level_meta_data)
903
897
  @start_offset = args[:start_offset] if args.key?(:start_offset)
904
898
  end
905
899
  end
906
900
 
907
- # Internal only fields
908
- class CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata
909
- include Google::Apis::Core::Hashable
910
-
911
- # Frame rate to decode from this video.
912
- # Corresponds to the JSON property `fps`
913
- # @return [Float]
914
- attr_accessor :fps
915
-
916
- # Number of frames to decode from this video.
917
- # Corresponds to the JSON property `numFrames`
918
- # @return [Fixnum]
919
- attr_accessor :num_frames
920
-
921
- def initialize(**args)
922
- update!(**args)
923
- end
924
-
925
- # Update properties of this object
926
- def update!(**args)
927
- @fps = args[:fps] if args.key?(:fps)
928
- @num_frames = args[:num_frames] if args.key?(:num_frames)
929
- end
930
- end
931
-
932
901
  # Content filter results for a prompt sent in the request.
933
902
  class CloudAiNlLlmProtoServicePromptFeedback
934
903
  include Google::Apis::Core::Hashable
@@ -1091,11 +1060,31 @@ module Google
1091
1060
  # @return [String]
1092
1061
  attr_accessor :category
1093
1062
 
1063
+ # The influential terms that could potentially block the response.
1064
+ # Corresponds to the JSON property `influentialTerms`
1065
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm>]
1066
+ attr_accessor :influential_terms
1067
+
1094
1068
  # Harm probability levels in the content.
1095
1069
  # Corresponds to the JSON property `probability`
1096
1070
  # @return [String]
1097
1071
  attr_accessor :probability
1098
1072
 
1073
+ # Harm probability score.
1074
+ # Corresponds to the JSON property `probabilityScore`
1075
+ # @return [Float]
1076
+ attr_accessor :probability_score
1077
+
1078
+ # Harm severity levels in the content.
1079
+ # Corresponds to the JSON property `severity`
1080
+ # @return [String]
1081
+ attr_accessor :severity
1082
+
1083
+ # Harm severity score.
1084
+ # Corresponds to the JSON property `severityScore`
1085
+ # @return [Float]
1086
+ attr_accessor :severity_score
1087
+
1099
1088
  def initialize(**args)
1100
1089
  update!(**args)
1101
1090
  end
@@ -1104,7 +1093,48 @@ module Google
1104
1093
  def update!(**args)
1105
1094
  @blocked = args[:blocked] if args.key?(:blocked)
1106
1095
  @category = args[:category] if args.key?(:category)
1096
+ @influential_terms = args[:influential_terms] if args.key?(:influential_terms)
1107
1097
  @probability = args[:probability] if args.key?(:probability)
1098
+ @probability_score = args[:probability_score] if args.key?(:probability_score)
1099
+ @severity = args[:severity] if args.key?(:severity)
1100
+ @severity_score = args[:severity_score] if args.key?(:severity_score)
1101
+ end
1102
+ end
1103
+
1104
+ # The influential term that could potentially block the response.
1105
+ class CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm
1106
+ include Google::Apis::Core::Hashable
1107
+
1108
+ # The beginning offset of the influential term.
1109
+ # Corresponds to the JSON property `beginOffset`
1110
+ # @return [Fixnum]
1111
+ attr_accessor :begin_offset
1112
+
1113
+ # The confidence score of the influential term.
1114
+ # Corresponds to the JSON property `confidence`
1115
+ # @return [Float]
1116
+ attr_accessor :confidence
1117
+
1118
+ # The source of the influential term, prompt or response.
1119
+ # Corresponds to the JSON property `source`
1120
+ # @return [String]
1121
+ attr_accessor :source
1122
+
1123
+ # The influential term.
1124
+ # Corresponds to the JSON property `term`
1125
+ # @return [String]
1126
+ attr_accessor :term
1127
+
1128
+ def initialize(**args)
1129
+ update!(**args)
1130
+ end
1131
+
1132
+ # Update properties of this object
1133
+ def update!(**args)
1134
+ @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
1135
+ @confidence = args[:confidence] if args.key?(:confidence)
1136
+ @source = args[:source] if args.key?(:source)
1137
+ @term = args[:term] if args.key?(:term)
1108
1138
  end
1109
1139
  end
1110
1140
 
@@ -2977,6 +3007,11 @@ module Google
2977
3007
  # @return [String]
2978
3008
  attr_accessor :finish_reason
2979
3009
 
3010
+ # Metadata returned to client when grounding is enabled.
3011
+ # Corresponds to the JSON property `groundingMetadata`
3012
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingMetadata]
3013
+ attr_accessor :grounding_metadata
3014
+
2980
3015
  # Output only. Index of the candidate.
2981
3016
  # Corresponds to the JSON property `index`
2982
3017
  # @return [Fixnum]
@@ -2998,6 +3033,7 @@ module Google
2998
3033
  @content = args[:content] if args.key?(:content)
2999
3034
  @finish_message = args[:finish_message] if args.key?(:finish_message)
3000
3035
  @finish_reason = args[:finish_reason] if args.key?(:finish_reason)
3036
+ @grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata)
3001
3037
  @index = args[:index] if args.key?(:index)
3002
3038
  @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
3003
3039
  end
@@ -3961,13 +3997,6 @@ module Google
3961
3997
  # @return [String]
3962
3998
  attr_accessor :pipeline_job_id
3963
3999
 
3964
- # Optional. Whether to do component level validations before job creation.
3965
- # Currently we only support Google First Party Component/Pipelines.
3966
- # Corresponds to the JSON property `preflightValidations`
3967
- # @return [Boolean]
3968
- attr_accessor :preflight_validations
3969
- alias_method :preflight_validations?, :preflight_validations
3970
-
3971
4000
  def initialize(**args)
3972
4001
  update!(**args)
3973
4002
  end
@@ -3977,7 +4006,6 @@ module Google
3977
4006
  @parent = args[:parent] if args.key?(:parent)
3978
4007
  @pipeline_job = args[:pipeline_job] if args.key?(:pipeline_job)
3979
4008
  @pipeline_job_id = args[:pipeline_job_id] if args.key?(:pipeline_job_id)
3980
- @preflight_validations = args[:preflight_validations] if args.key?(:preflight_validations)
3981
4009
  end
3982
4010
  end
3983
4011
 
@@ -5896,6 +5924,11 @@ module Google
5896
5924
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig]
5897
5925
  attr_accessor :predict_request_response_logging_config
5898
5926
 
5927
+ # Represents configuration for private service connect.
5928
+ # Corresponds to the JSON property `privateServiceConnectConfig`
5929
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PrivateServiceConnectConfig]
5930
+ attr_accessor :private_service_connect_config
5931
+
5899
5932
  # A map from a DeployedModel's ID to the percentage of this Endpoint's traffic
5900
5933
  # that should be forwarded to that DeployedModel. If a DeployedModel's ID is not
5901
5934
  # listed in this map, then it receives no traffic. The traffic percentage values
@@ -5928,6 +5961,7 @@ module Google
5928
5961
  @name = args[:name] if args.key?(:name)
5929
5962
  @network = args[:network] if args.key?(:network)
5930
5963
  @predict_request_response_logging_config = args[:predict_request_response_logging_config] if args.key?(:predict_request_response_logging_config)
5964
+ @private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
5931
5965
  @traffic_split = args[:traffic_split] if args.key?(:traffic_split)
5932
5966
  @update_time = args[:update_time] if args.key?(:update_time)
5933
5967
  end
@@ -8473,6 +8507,11 @@ module Google
8473
8507
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup>]
8474
8508
  attr_accessor :feature_groups
8475
8509
 
8510
+ # Optional. The project number of the parent project of the Feature Groups.
8511
+ # Corresponds to the JSON property `projectNumber`
8512
+ # @return [Fixnum]
8513
+ attr_accessor :project_number
8514
+
8476
8515
  def initialize(**args)
8477
8516
  update!(**args)
8478
8517
  end
@@ -8480,6 +8519,7 @@ module Google
8480
8519
  # Update properties of this object
8481
8520
  def update!(**args)
8482
8521
  @feature_groups = args[:feature_groups] if args.key?(:feature_groups)
8522
+ @project_number = args[:project_number] if args.key?(:project_number)
8483
8523
  end
8484
8524
  end
8485
8525
 
@@ -8546,6 +8586,12 @@ module Google
8546
8586
  # @return [Google::Apis::AiplatformV1::GoogleTypeInterval]
8547
8587
  attr_accessor :run_time
8548
8588
 
8589
+ # Summary from the Sync job. For continuous syncs, the summary is updated
8590
+ # periodically. For batch syncs, it gets updated on completion of the sync.
8591
+ # Corresponds to the JSON property `syncSummary`
8592
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewSyncSyncSummary]
8593
+ attr_accessor :sync_summary
8594
+
8549
8595
  def initialize(**args)
8550
8596
  update!(**args)
8551
8597
  end
@@ -8556,6 +8602,7 @@ module Google
8556
8602
  @final_status = args[:final_status] if args.key?(:final_status)
8557
8603
  @name = args[:name] if args.key?(:name)
8558
8604
  @run_time = args[:run_time] if args.key?(:run_time)
8605
+ @sync_summary = args[:sync_summary] if args.key?(:sync_summary)
8559
8606
  end
8560
8607
  end
8561
8608
 
@@ -8582,6 +8629,32 @@ module Google
8582
8629
  end
8583
8630
  end
8584
8631
 
8632
+ # Summary from the Sync job. For continuous syncs, the summary is updated
8633
+ # periodically. For batch syncs, it gets updated on completion of the sync.
8634
+ class GoogleCloudAiplatformV1FeatureViewSyncSyncSummary
8635
+ include Google::Apis::Core::Hashable
8636
+
8637
+ # Output only. Total number of rows synced.
8638
+ # Corresponds to the JSON property `rowSynced`
8639
+ # @return [Fixnum]
8640
+ attr_accessor :row_synced
8641
+
8642
+ # Output only. BigQuery slot milliseconds consumed for the sync job.
8643
+ # Corresponds to the JSON property `totalSlot`
8644
+ # @return [Fixnum]
8645
+ attr_accessor :total_slot
8646
+
8647
+ def initialize(**args)
8648
+ update!(**args)
8649
+ end
8650
+
8651
+ # Update properties of this object
8652
+ def update!(**args)
8653
+ @row_synced = args[:row_synced] if args.key?(:row_synced)
8654
+ @total_slot = args[:total_slot] if args.key?(:total_slot)
8655
+ end
8656
+ end
8657
+
8585
8658
  # Vertex AI Feature Store provides a centralized repository for organizing,
8586
8659
  # storing, and serving ML features. The Featurestore is a top-level container
8587
8660
  # for your features and their values.
@@ -9409,7 +9482,7 @@ module Google
9409
9482
  # Optional. A list of `Tools` the model may use to generate the next response. A
9410
9483
  # `Tool` is a piece of code that enables the system to interact with external
9411
9484
  # systems to perform an action, or set of actions, outside of knowledge and
9412
- # scope of the model. The only supported tool is currently `Function`
9485
+ # scope of the model.
9413
9486
  # Corresponds to the JSON property `tools`
9414
9487
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool>]
9415
9488
  attr_accessor :tools
@@ -9603,6 +9676,110 @@ module Google
9603
9676
  end
9604
9677
  end
9605
9678
 
9679
+ # Tool to retrieve public web data for grounding, powered by Google.
9680
+ class GoogleCloudAiplatformV1GoogleSearchRetrieval
9681
+ include Google::Apis::Core::Hashable
9682
+
9683
+ # Optional. Disable using the result from this tool in detecting grounding
9684
+ # attribution. This does not affect how the result is given to the model for
9685
+ # generation.
9686
+ # Corresponds to the JSON property `disableAttribution`
9687
+ # @return [Boolean]
9688
+ attr_accessor :disable_attribution
9689
+ alias_method :disable_attribution?, :disable_attribution
9690
+
9691
+ def initialize(**args)
9692
+ update!(**args)
9693
+ end
9694
+
9695
+ # Update properties of this object
9696
+ def update!(**args)
9697
+ @disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
9698
+ end
9699
+ end
9700
+
9701
+ # Grounding attribution.
9702
+ class GoogleCloudAiplatformV1GroundingAttribution
9703
+ include Google::Apis::Core::Hashable
9704
+
9705
+ # Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1.
9706
+ # 1 is the most confident.
9707
+ # Corresponds to the JSON property `confidenceScore`
9708
+ # @return [Float]
9709
+ attr_accessor :confidence_score
9710
+
9711
+ # Segment of the content.
9712
+ # Corresponds to the JSON property `segment`
9713
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Segment]
9714
+ attr_accessor :segment
9715
+
9716
+ # Attribution from the web.
9717
+ # Corresponds to the JSON property `web`
9718
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttributionWeb]
9719
+ attr_accessor :web
9720
+
9721
+ def initialize(**args)
9722
+ update!(**args)
9723
+ end
9724
+
9725
+ # Update properties of this object
9726
+ def update!(**args)
9727
+ @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
9728
+ @segment = args[:segment] if args.key?(:segment)
9729
+ @web = args[:web] if args.key?(:web)
9730
+ end
9731
+ end
9732
+
9733
+ # Attribution from the web.
9734
+ class GoogleCloudAiplatformV1GroundingAttributionWeb
9735
+ include Google::Apis::Core::Hashable
9736
+
9737
+ # Output only. Title of the attribution.
9738
+ # Corresponds to the JSON property `title`
9739
+ # @return [String]
9740
+ attr_accessor :title
9741
+
9742
+ # Output only. URI reference of the attribution.
9743
+ # Corresponds to the JSON property `uri`
9744
+ # @return [String]
9745
+ attr_accessor :uri
9746
+
9747
+ def initialize(**args)
9748
+ update!(**args)
9749
+ end
9750
+
9751
+ # Update properties of this object
9752
+ def update!(**args)
9753
+ @title = args[:title] if args.key?(:title)
9754
+ @uri = args[:uri] if args.key?(:uri)
9755
+ end
9756
+ end
9757
+
9758
+ # Metadata returned to client when grounding is enabled.
9759
+ class GoogleCloudAiplatformV1GroundingMetadata
9760
+ include Google::Apis::Core::Hashable
9761
+
9762
+ # Optional. List of grounding attributions.
9763
+ # Corresponds to the JSON property `groundingAttributions`
9764
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttribution>]
9765
+ attr_accessor :grounding_attributions
9766
+
9767
+ # Optional. Web search queries for the following-up web search.
9768
+ # Corresponds to the JSON property `webSearchQueries`
9769
+ # @return [Array<String>]
9770
+ attr_accessor :web_search_queries
9771
+
9772
+ def initialize(**args)
9773
+ update!(**args)
9774
+ end
9775
+
9776
+ # Update properties of this object
9777
+ def update!(**args)
9778
+ @grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
9779
+ @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
9780
+ end
9781
+ end
9782
+
9606
9783
  # Represents a HyperparameterTuningJob. A HyperparameterTuningJob has a Study
9607
9784
  # specification and multiple CustomJobs with identical CustomJob specification.
9608
9785
  class GoogleCloudAiplatformV1HyperparameterTuningJob
@@ -12685,7 +12862,7 @@ module Google
12685
12862
  include Google::Apis::Core::Hashable
12686
12863
 
12687
12864
  # Immutable. The path to the directory containing the Model artifact and any of
12688
- # its supporting files. Not present for AutoML Models or Large Models.
12865
+ # its supporting files. Not required for AutoML Models.
12689
12866
  # Corresponds to the JSON property `artifactUri`
12690
12867
  # @return [String]
12691
12868
  attr_accessor :artifact_uri
@@ -13231,6 +13408,12 @@ module Google
13231
13408
  # @return [String]
13232
13409
  attr_accessor :log_type
13233
13410
 
13411
+ # Output only. The schema version of the request/response logging BigQuery table.
13412
+ # Default to v1 if unset.
13413
+ # Corresponds to the JSON property `requestResponseLoggingSchemaVersion`
13414
+ # @return [String]
13415
+ attr_accessor :request_response_logging_schema_version
13416
+
13234
13417
  def initialize(**args)
13235
13418
  update!(**args)
13236
13419
  end
@@ -13240,6 +13423,7 @@ module Google
13240
13423
  @bigquery_table_path = args[:bigquery_table_path] if args.key?(:bigquery_table_path)
13241
13424
  @log_source = args[:log_source] if args.key?(:log_source)
13242
13425
  @log_type = args[:log_type] if args.key?(:log_type)
13426
+ @request_response_logging_schema_version = args[:request_response_logging_schema_version] if args.key?(:request_response_logging_schema_version)
13243
13427
  end
13244
13428
  end
13245
13429
 
@@ -13349,7 +13533,7 @@ module Google
13349
13533
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig]
13350
13534
  attr_accessor :model_deployment_monitoring_schedule_config
13351
13535
 
13352
- # Alert config for model monitoring.
13536
+ # The alert config for model monitoring.
13353
13537
  # Corresponds to the JSON property `modelMonitoringAlertConfig`
13354
13538
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelMonitoringAlertConfig]
13355
13539
  attr_accessor :model_monitoring_alert_config
@@ -13927,7 +14111,7 @@ module Google
13927
14111
  end
13928
14112
  end
13929
14113
 
13930
- #
14114
+ # The alert config for model monitoring.
13931
14115
  class GoogleCloudAiplatformV1ModelMonitoringAlertConfig
13932
14116
  include Google::Apis::Core::Hashable
13933
14117
 
@@ -14847,6 +15031,146 @@ module Google
14847
15031
  end
14848
15032
  end
14849
15033
 
15034
+ # A query to find a number of similar entities.
15035
+ class GoogleCloudAiplatformV1NearestNeighborQuery
15036
+ include Google::Apis::Core::Hashable
15037
+
15038
+ # The embedding vector.
15039
+ # Corresponds to the JSON property `embedding`
15040
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NearestNeighborQueryEmbedding]
15041
+ attr_accessor :embedding
15042
+
15043
+ # Optional. The entity id whose similar entities should be searched for. If
15044
+ # embedding is set, search will use embedding instead of entity_id.
15045
+ # Corresponds to the JSON property `entityId`
15046
+ # @return [String]
15047
+ attr_accessor :entity_id
15048
+
15049
+ # Optional. The number of similar entities to be retrieved from feature view for
15050
+ # each query.
15051
+ # Corresponds to the JSON property `neighborCount`
15052
+ # @return [Fixnum]
15053
+ attr_accessor :neighbor_count
15054
+
15055
+ # Parameters that can be overrided in each query to tune query latency and
15056
+ # recall.
15057
+ # Corresponds to the JSON property `parameters`
15058
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NearestNeighborQueryParameters]
15059
+ attr_accessor :parameters
15060
+
15061
+ # Optional. Crowding is a constraint on a neighbor list produced by nearest
15062
+ # neighbor search requiring that no more than
15063
+ # sper_crowding_attribute_neighbor_count of the k neighbors returned have the
15064
+ # same value of crowding_attribute. It's used for improving result diversity.
15065
+ # Corresponds to the JSON property `perCrowdingAttributeNeighborCount`
15066
+ # @return [Fixnum]
15067
+ attr_accessor :per_crowding_attribute_neighbor_count
15068
+
15069
+ # Optional. The list of string filters.
15070
+ # Corresponds to the JSON property `stringFilters`
15071
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NearestNeighborQueryStringFilter>]
15072
+ attr_accessor :string_filters
15073
+
15074
+ def initialize(**args)
15075
+ update!(**args)
15076
+ end
15077
+
15078
+ # Update properties of this object
15079
+ def update!(**args)
15080
+ @embedding = args[:embedding] if args.key?(:embedding)
15081
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
15082
+ @neighbor_count = args[:neighbor_count] if args.key?(:neighbor_count)
15083
+ @parameters = args[:parameters] if args.key?(:parameters)
15084
+ @per_crowding_attribute_neighbor_count = args[:per_crowding_attribute_neighbor_count] if args.key?(:per_crowding_attribute_neighbor_count)
15085
+ @string_filters = args[:string_filters] if args.key?(:string_filters)
15086
+ end
15087
+ end
15088
+
15089
+ # The embedding vector.
15090
+ class GoogleCloudAiplatformV1NearestNeighborQueryEmbedding
15091
+ include Google::Apis::Core::Hashable
15092
+
15093
+ # Optional. Individual value in the embedding.
15094
+ # Corresponds to the JSON property `value`
15095
+ # @return [Array<Float>]
15096
+ attr_accessor :value
15097
+
15098
+ def initialize(**args)
15099
+ update!(**args)
15100
+ end
15101
+
15102
+ # Update properties of this object
15103
+ def update!(**args)
15104
+ @value = args[:value] if args.key?(:value)
15105
+ end
15106
+ end
15107
+
15108
+ # Parameters that can be overrided in each query to tune query latency and
15109
+ # recall.
15110
+ class GoogleCloudAiplatformV1NearestNeighborQueryParameters
15111
+ include Google::Apis::Core::Hashable
15112
+
15113
+ # Optional. The number of neighbors to find via approximate search before exact
15114
+ # reordering is performed; if set, this value must be > neighbor_count.
15115
+ # Corresponds to the JSON property `approximateNeighborCandidates`
15116
+ # @return [Fixnum]
15117
+ attr_accessor :approximate_neighbor_candidates
15118
+
15119
+ # Optional. The fraction of the number of leaves to search, set at query time
15120
+ # allows user to tune search performance. This value increase result in both
15121
+ # search accuracy and latency increase. The value should be between 0.0 and 1.0.
15122
+ # Corresponds to the JSON property `leafNodesSearchFraction`
15123
+ # @return [Float]
15124
+ attr_accessor :leaf_nodes_search_fraction
15125
+
15126
+ def initialize(**args)
15127
+ update!(**args)
15128
+ end
15129
+
15130
+ # Update properties of this object
15131
+ def update!(**args)
15132
+ @approximate_neighbor_candidates = args[:approximate_neighbor_candidates] if args.key?(:approximate_neighbor_candidates)
15133
+ @leaf_nodes_search_fraction = args[:leaf_nodes_search_fraction] if args.key?(:leaf_nodes_search_fraction)
15134
+ end
15135
+ end
15136
+
15137
+ # String filter is used to search a subset of the entities by using boolean
15138
+ # rules on string columns. For example: if a query specifies string filter with '
15139
+ # name = color, allow_tokens = `red, blue`, deny_tokens = `purple`',' then that
15140
+ # query will match entities that are red or blue, but if those points are also
15141
+ # purple, then they will be excluded even if they are red/blue. Only string
15142
+ # filter is supported for now, numeric filter will be supported in the near
15143
+ # future.
15144
+ class GoogleCloudAiplatformV1NearestNeighborQueryStringFilter
15145
+ include Google::Apis::Core::Hashable
15146
+
15147
+ # Optional. The allowed tokens.
15148
+ # Corresponds to the JSON property `allowTokens`
15149
+ # @return [Array<String>]
15150
+ attr_accessor :allow_tokens
15151
+
15152
+ # Optional. The denied tokens.
15153
+ # Corresponds to the JSON property `denyTokens`
15154
+ # @return [Array<String>]
15155
+ attr_accessor :deny_tokens
15156
+
15157
+ # Required. Column names in BigQuery that used as filters.
15158
+ # Corresponds to the JSON property `name`
15159
+ # @return [String]
15160
+ attr_accessor :name
15161
+
15162
+ def initialize(**args)
15163
+ update!(**args)
15164
+ end
15165
+
15166
+ # Update properties of this object
15167
+ def update!(**args)
15168
+ @allow_tokens = args[:allow_tokens] if args.key?(:allow_tokens)
15169
+ @deny_tokens = args[:deny_tokens] if args.key?(:deny_tokens)
15170
+ @name = args[:name] if args.key?(:name)
15171
+ end
15172
+ end
15173
+
14850
15174
  # Runtime operation metadata with regard to Matching Engine Index.
14851
15175
  class GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadata
14852
15176
  include Google::Apis::Core::Hashable
@@ -14959,6 +15283,56 @@ module Google
14959
15283
  end
14960
15284
  end
14961
15285
 
15286
+ # Nearest neighbors for one query.
15287
+ class GoogleCloudAiplatformV1NearestNeighbors
15288
+ include Google::Apis::Core::Hashable
15289
+
15290
+ # All its neighbors.
15291
+ # Corresponds to the JSON property `neighbors`
15292
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NearestNeighborsNeighbor>]
15293
+ attr_accessor :neighbors
15294
+
15295
+ def initialize(**args)
15296
+ update!(**args)
15297
+ end
15298
+
15299
+ # Update properties of this object
15300
+ def update!(**args)
15301
+ @neighbors = args[:neighbors] if args.key?(:neighbors)
15302
+ end
15303
+ end
15304
+
15305
+ # A neighbor of the query vector.
15306
+ class GoogleCloudAiplatformV1NearestNeighborsNeighbor
15307
+ include Google::Apis::Core::Hashable
15308
+
15309
+ # The distance between the neighbor and the query vector.
15310
+ # Corresponds to the JSON property `distance`
15311
+ # @return [Float]
15312
+ attr_accessor :distance
15313
+
15314
+ # The id of the similar entity.
15315
+ # Corresponds to the JSON property `entityId`
15316
+ # @return [String]
15317
+ attr_accessor :entity_id
15318
+
15319
+ # Response message for FeatureOnlineStoreService.FetchFeatureValues
15320
+ # Corresponds to the JSON property `entityKeyValues`
15321
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FetchFeatureValuesResponse]
15322
+ attr_accessor :entity_key_values
15323
+
15324
+ def initialize(**args)
15325
+ update!(**args)
15326
+ end
15327
+
15328
+ # Update properties of this object
15329
+ def update!(**args)
15330
+ @distance = args[:distance] if args.key?(:distance)
15331
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
15332
+ @entity_key_values = args[:entity_key_values] if args.key?(:entity_key_values)
15333
+ end
15334
+ end
15335
+
14962
15336
  # Neighbors for example-based explanations.
14963
15337
  class GoogleCloudAiplatformV1Neighbor
14964
15338
  include Google::Apis::Core::Hashable
@@ -15760,11 +16134,6 @@ module Google
15760
16134
  class GoogleCloudAiplatformV1PipelineJobRuntimeConfig
15761
16135
  include Google::Apis::Core::Hashable
15762
16136
 
15763
- # The default runtime for the PipelineJob.
15764
- # Corresponds to the JSON property `defaultRuntime`
15765
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime]
15766
- attr_accessor :default_runtime
15767
-
15768
16137
  # Represents the failure policy of a pipeline. Currently, the default of a
15769
16138
  # pipeline is that the pipeline will continue to run until no more tasks can be
15770
16139
  # executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a
@@ -15815,7 +16184,6 @@ module Google
15815
16184
 
15816
16185
  # Update properties of this object
15817
16186
  def update!(**args)
15818
- @default_runtime = args[:default_runtime] if args.key?(:default_runtime)
15819
16187
  @failure_policy = args[:failure_policy] if args.key?(:failure_policy)
15820
16188
  @gcs_output_directory = args[:gcs_output_directory] if args.key?(:gcs_output_directory)
15821
16189
  @input_artifacts = args[:input_artifacts] if args.key?(:input_artifacts)
@@ -15824,26 +16192,6 @@ module Google
15824
16192
  end
15825
16193
  end
15826
16194
 
15827
- # The default runtime for the PipelineJob.
15828
- class GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime
15829
- include Google::Apis::Core::Hashable
15830
-
15831
- # Persistent resource based runtime detail. For more information, refer to https:
15832
- # //cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
15833
- # Corresponds to the JSON property `persistentResourceRuntimeDetail`
15834
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail]
15835
- attr_accessor :persistent_resource_runtime_detail
15836
-
15837
- def initialize(**args)
15838
- update!(**args)
15839
- end
15840
-
15841
- # Update properties of this object
15842
- def update!(**args)
15843
- @persistent_resource_runtime_detail = args[:persistent_resource_runtime_detail] if args.key?(:persistent_resource_runtime_detail)
15844
- end
15845
- end
15846
-
15847
16195
  # The type of an input artifact.
15848
16196
  class GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact
15849
16197
  include Google::Apis::Core::Hashable
@@ -15866,27 +16214,6 @@ module Google
15866
16214
  end
15867
16215
  end
15868
16216
 
15869
- # Persistent resource based runtime detail. For more information, refer to https:
15870
- # //cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
15871
- class GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail
15872
- include Google::Apis::Core::Hashable
15873
-
15874
- # Persistent resource name. Format: `projects/`project`/locations/`location`/
15875
- # persistentResources/`persistent_resource``
15876
- # Corresponds to the JSON property `persistentResourceName`
15877
- # @return [String]
15878
- attr_accessor :persistent_resource_name
15879
-
15880
- def initialize(**args)
15881
- update!(**args)
15882
- end
15883
-
15884
- # Update properties of this object
15885
- def update!(**args)
15886
- @persistent_resource_name = args[:persistent_resource_name] if args.key?(:persistent_resource_name)
15887
- end
15888
- end
15889
-
15890
16217
  # The runtime detail of a task execution.
15891
16218
  class GoogleCloudAiplatformV1PipelineTaskDetail
15892
16219
  include Google::Apis::Core::Hashable
@@ -16655,6 +16982,11 @@ module Google
16655
16982
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeploy]
16656
16983
  attr_accessor :deploy
16657
16984
 
16985
+ # Configurations for PublisherModel GKE deployment
16986
+ # Corresponds to the JSON property `deployGke`
16987
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke]
16988
+ attr_accessor :deploy_gke
16989
+
16658
16990
  # The regional resource name or the URI. Key is region, e.g., us-central1,
16659
16991
  # europe-west2, global, etc..
16660
16992
  # Corresponds to the JSON property `openEvaluationPipeline`
@@ -16720,6 +17052,7 @@ module Google
16720
17052
  def update!(**args)
16721
17053
  @create_application = args[:create_application] if args.key?(:create_application)
16722
17054
  @deploy = args[:deploy] if args.key?(:deploy)
17055
+ @deploy_gke = args[:deploy_gke] if args.key?(:deploy_gke)
16723
17056
  @open_evaluation_pipeline = args[:open_evaluation_pipeline] if args.key?(:open_evaluation_pipeline)
16724
17057
  @open_fine_tuning_pipeline = args[:open_fine_tuning_pipeline] if args.key?(:open_fine_tuning_pipeline)
16725
17058
  @open_fine_tuning_pipelines = args[:open_fine_tuning_pipelines] if args.key?(:open_fine_tuning_pipelines)
@@ -16810,6 +17143,25 @@ module Google
16810
17143
  end
16811
17144
  end
16812
17145
 
17146
+ # Configurations for PublisherModel GKE deployment
17147
+ class GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke
17148
+ include Google::Apis::Core::Hashable
17149
+
17150
+ # Optional. GKE deployment configuration in yaml format.
17151
+ # Corresponds to the JSON property `gkeYamlConfigs`
17152
+ # @return [Array<String>]
17153
+ attr_accessor :gke_yaml_configs
17154
+
17155
+ def initialize(**args)
17156
+ update!(**args)
17157
+ end
17158
+
17159
+ # Update properties of this object
17160
+ def update!(**args)
17161
+ @gke_yaml_configs = args[:gke_yaml_configs] if args.key?(:gke_yaml_configs)
17162
+ end
17163
+ end
17164
+
16813
17165
  # Open fine tuning pipelines.
16814
17166
  class GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines
16815
17167
  include Google::Apis::Core::Hashable
@@ -17793,6 +18145,35 @@ module Google
17793
18145
  end
17794
18146
  end
17795
18147
 
18148
+ # Defines a retrieval tool that model can call to access external knowledge.
18149
+ class GoogleCloudAiplatformV1Retrieval
18150
+ include Google::Apis::Core::Hashable
18151
+
18152
+ # Optional. Disable using the result from this tool in detecting grounding
18153
+ # attribution. This does not affect how the result is given to the model for
18154
+ # generation.
18155
+ # Corresponds to the JSON property `disableAttribution`
18156
+ # @return [Boolean]
18157
+ attr_accessor :disable_attribution
18158
+ alias_method :disable_attribution?, :disable_attribution
18159
+
18160
+ # Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
18161
+ # google.com/vertex-ai-search-and-conversation
18162
+ # Corresponds to the JSON property `vertexAiSearch`
18163
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearch]
18164
+ attr_accessor :vertex_ai_search
18165
+
18166
+ def initialize(**args)
18167
+ update!(**args)
18168
+ end
18169
+
18170
+ # Update properties of this object
18171
+ def update!(**args)
18172
+ @disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
18173
+ @vertex_ai_search = args[:vertex_ai_search] if args.key?(:vertex_ai_search)
18174
+ end
18175
+ end
18176
+
17796
18177
  # Safety rating corresponding to the generated content.
17797
18178
  class GoogleCloudAiplatformV1SafetyRating
17798
18179
  include Google::Apis::Core::Hashable
@@ -18230,12 +18611,6 @@ module Google
18230
18611
  attr_accessor :disable_retries
18231
18612
  alias_method :disable_retries?, :disable_retries
18232
18613
 
18233
- # Optional. This is the maximum time a user will wait in the QRM queue for
18234
- # resources. Default is 1 day
18235
- # Corresponds to the JSON property `maxWaitDuration`
18236
- # @return [String]
18237
- attr_accessor :max_wait_duration
18238
-
18239
18614
  # Restarts the entire CustomJob if a worker gets restarted. This feature can be
18240
18615
  # used by distributed training jobs that are not resilient to workers leaving
18241
18616
  # and joining a job.
@@ -18256,7 +18631,6 @@ module Google
18256
18631
  # Update properties of this object
18257
18632
  def update!(**args)
18258
18633
  @disable_retries = args[:disable_retries] if args.key?(:disable_retries)
18259
- @max_wait_duration = args[:max_wait_duration] if args.key?(:max_wait_duration)
18260
18634
  @restart_job_on_worker_restart = args[:restart_job_on_worker_restart] if args.key?(:restart_job_on_worker_restart)
18261
18635
  @timeout = args[:timeout] if args.key?(:timeout)
18262
18636
  end
@@ -24597,6 +24971,87 @@ module Google
24597
24971
  end
24598
24972
  end
24599
24973
 
24974
+ # The request message for FeatureOnlineStoreService.SearchNearestEntities.
24975
+ class GoogleCloudAiplatformV1SearchNearestEntitiesRequest
24976
+ include Google::Apis::Core::Hashable
24977
+
24978
+ # A query to find a number of similar entities.
24979
+ # Corresponds to the JSON property `query`
24980
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NearestNeighborQuery]
24981
+ attr_accessor :query
24982
+
24983
+ # Optional. If set to true, the full entities (including all vector values and
24984
+ # metadata) of the nearest neighbors are returned; otherwise only entity id of
24985
+ # the nearest neighbors will be returned. Note that returning full entities will
24986
+ # significantly increase the latency and cost of the query.
24987
+ # Corresponds to the JSON property `returnFullEntity`
24988
+ # @return [Boolean]
24989
+ attr_accessor :return_full_entity
24990
+ alias_method :return_full_entity?, :return_full_entity
24991
+
24992
+ def initialize(**args)
24993
+ update!(**args)
24994
+ end
24995
+
24996
+ # Update properties of this object
24997
+ def update!(**args)
24998
+ @query = args[:query] if args.key?(:query)
24999
+ @return_full_entity = args[:return_full_entity] if args.key?(:return_full_entity)
25000
+ end
25001
+ end
25002
+
25003
+ # Response message for FeatureOnlineStoreService.SearchNearestEntities
25004
+ class GoogleCloudAiplatformV1SearchNearestEntitiesResponse
25005
+ include Google::Apis::Core::Hashable
25006
+
25007
+ # Nearest neighbors for one query.
25008
+ # Corresponds to the JSON property `nearestNeighbors`
25009
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NearestNeighbors]
25010
+ attr_accessor :nearest_neighbors
25011
+
25012
+ def initialize(**args)
25013
+ update!(**args)
25014
+ end
25015
+
25016
+ # Update properties of this object
25017
+ def update!(**args)
25018
+ @nearest_neighbors = args[:nearest_neighbors] if args.key?(:nearest_neighbors)
25019
+ end
25020
+ end
25021
+
25022
+ # Segment of the content.
25023
+ class GoogleCloudAiplatformV1Segment
25024
+ include Google::Apis::Core::Hashable
25025
+
25026
+ # Output only. End index in the given Part, measured in bytes. Offset from the
25027
+ # start of the Part, exclusive, starting at zero.
25028
+ # Corresponds to the JSON property `endIndex`
25029
+ # @return [Fixnum]
25030
+ attr_accessor :end_index
25031
+
25032
+ # Output only. The index of a Part object within its parent Content object.
25033
+ # Corresponds to the JSON property `partIndex`
25034
+ # @return [Fixnum]
25035
+ attr_accessor :part_index
25036
+
25037
+ # Output only. Start index in the given Part, measured in bytes. Offset from the
25038
+ # start of the Part, inclusive, starting at zero.
25039
+ # Corresponds to the JSON property `startIndex`
25040
+ # @return [Fixnum]
25041
+ attr_accessor :start_index
25042
+
25043
+ def initialize(**args)
25044
+ update!(**args)
25045
+ end
25046
+
25047
+ # Update properties of this object
25048
+ def update!(**args)
25049
+ @end_index = args[:end_index] if args.key?(:end_index)
25050
+ @part_index = args[:part_index] if args.key?(:part_index)
25051
+ @start_index = args[:start_index] if args.key?(:start_index)
25052
+ end
25053
+ end
25054
+
24600
25055
  # A set of Shielded Instance options. See [Images using supported Shielded VM
24601
25056
  # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
24602
25057
  # vm).
@@ -26539,7 +26994,8 @@ module Google
26539
26994
 
26540
26995
  # Tool details that the model may use to generate response. A `Tool` is a piece
26541
26996
  # of code that enables the system to interact with external systems to perform
26542
- # an action, or set of actions, outside of knowledge and scope of the model.
26997
+ # an action, or set of actions, outside of knowledge and scope of the model. A
26998
+ # Tool object should contain exactly one type of Tool.
26543
26999
  class GoogleCloudAiplatformV1Tool
26544
27000
  include Google::Apis::Core::Hashable
26545
27001
 
@@ -26553,6 +27009,16 @@ module Google
26553
27009
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionDeclaration>]
26554
27010
  attr_accessor :function_declarations
26555
27011
 
27012
+ # Tool to retrieve public web data for grounding, powered by Google.
27013
+ # Corresponds to the JSON property `googleSearchRetrieval`
27014
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GoogleSearchRetrieval]
27015
+ attr_accessor :google_search_retrieval
27016
+
27017
+ # Defines a retrieval tool that model can call to access external knowledge.
27018
+ # Corresponds to the JSON property `retrieval`
27019
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Retrieval]
27020
+ attr_accessor :retrieval
27021
+
26556
27022
  def initialize(**args)
26557
27023
  update!(**args)
26558
27024
  end
@@ -26560,6 +27026,8 @@ module Google
26560
27026
  # Update properties of this object
26561
27027
  def update!(**args)
26562
27028
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
27029
+ @google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
27030
+ @retrieval = args[:retrieval] if args.key?(:retrieval)
26563
27031
  end
26564
27032
  end
26565
27033
 
@@ -27446,6 +27914,14 @@ module Google
27446
27914
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapoint>]
27447
27915
  attr_accessor :datapoints
27448
27916
 
27917
+ # Optional. Update mask is used to specify the fields to be overwritten in the
27918
+ # datapoints by the update. The fields specified in the update_mask are relative
27919
+ # to each IndexDatapoint inside datapoints, not the full request. Updatable
27920
+ # fields: * Use `all_restricts` to update both restricts and numeric_restricts.
27921
+ # Corresponds to the JSON property `updateMask`
27922
+ # @return [String]
27923
+ attr_accessor :update_mask
27924
+
27449
27925
  def initialize(**args)
27450
27926
  update!(**args)
27451
27927
  end
@@ -27453,6 +27929,7 @@ module Google
27453
27929
  # Update properties of this object
27454
27930
  def update!(**args)
27455
27931
  @datapoints = args[:datapoints] if args.key?(:datapoints)
27932
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
27456
27933
  end
27457
27934
  end
27458
27935
 
@@ -27537,6 +28014,27 @@ module Google
27537
28014
  end
27538
28015
  end
27539
28016
 
28017
+ # Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
28018
+ # google.com/vertex-ai-search-and-conversation
28019
+ class GoogleCloudAiplatformV1VertexAiSearch
28020
+ include Google::Apis::Core::Hashable
28021
+
28022
+ # Required. Fully-qualified Vertex AI Search's datastore resource ID. projects/<>
28023
+ # /locations/<>/collections/<>/dataStores/<>
28024
+ # Corresponds to the JSON property `datastore`
28025
+ # @return [String]
28026
+ attr_accessor :datastore
28027
+
28028
+ def initialize(**args)
28029
+ update!(**args)
28030
+ end
28031
+
28032
+ # Update properties of this object
28033
+ def update!(**args)
28034
+ @datastore = args[:datastore] if args.key?(:datastore)
28035
+ end
28036
+ end
28037
+
27540
28038
  # Metadata describes the input video content.
27541
28039
  class GoogleCloudAiplatformV1VideoMetadata
27542
28040
  include Google::Apis::Core::Hashable
@@ -28831,7 +29329,8 @@ module Google
28831
29329
 
28832
29330
  # The recitation action for one given input. When its segments contain different
28833
29331
  # actions, the overall action will be returned in the precedence of BLOCK > CITE
28834
- # > NO_ACTION.
29332
+ # > NO_ACTION. When the given input is not found in any source, the recitation
29333
+ # action will not be specified.
28835
29334
  # Corresponds to the JSON property `recitationAction`
28836
29335
  # @return [String]
28837
29336
  attr_accessor :recitation_action
@@ -29185,7 +29684,8 @@ module Google
29185
29684
 
29186
29685
  # The recitation action for one given input. When its segments contain different
29187
29686
  # actions, the overall action will be returned in the precedence of BLOCK > CITE
29188
- # > NO_ACTION.
29687
+ # > NO_ACTION. When the given input is not found in any source, the recitation
29688
+ # action will be NO_ACTION.
29189
29689
  # Corresponds to the JSON property `recitationAction`
29190
29690
  # @return [String]
29191
29691
  attr_accessor :recitation_action
@@ -29685,7 +30185,9 @@ module Google
29685
30185
  # @return [Google::Apis::AiplatformV1::LearningGenaiRootHarmSafetyCatCategories]
29686
30186
  attr_accessor :safetycat
29687
30187
 
29688
- #
30188
+ # Spii Filter uses buckets http://google3/google/privacy/dlp/v2/storage.proto;l=
30189
+ # 77;rcl=584719820 to classify the input. LMRoot converts the bucket into double
30190
+ # score. For example the score for "POSSIBLE" is 3 / 5 = 0.6 .
29689
30191
  # Corresponds to the JSON property `spii`
29690
30192
  # @return [Google::Apis::AiplatformV1::LearningGenaiRootHarmSpiiFilter]
29691
30193
  attr_accessor :spii
@@ -30645,6 +31147,12 @@ module Google
30645
31147
  # @return [Google::Apis::AiplatformV1::LearningGenaiRootGroundingMetadata]
30646
31148
  attr_accessor :grounding_metadata
30647
31149
 
31150
+ # Applies to streaming response message only. Whether the message is a code.
31151
+ # Corresponds to the JSON property `isCode`
31152
+ # @return [Boolean]
31153
+ attr_accessor :is_code
31154
+ alias_method :is_code?, :is_code
31155
+
30648
31156
  # Applies to Response message only. Indicates whether the message is a fallback
30649
31157
  # and the response would have otherwise been empty.
30650
31158
  # Corresponds to the JSON property `isFallback`
@@ -30743,6 +31251,7 @@ module Google
30743
31251
  @final_message_score = args[:final_message_score] if args.key?(:final_message_score)
30744
31252
  @finish_reason = args[:finish_reason] if args.key?(:finish_reason)
30745
31253
  @grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata)
31254
+ @is_code = args[:is_code] if args.key?(:is_code)
30746
31255
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
30747
31256
  @langid_result = args[:langid_result] if args.key?(:langid_result)
30748
31257
  @language = args[:language] if args.key?(:language)