google-cloud-ai_platform-v1 0.61.0 → 0.63.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/ai_platform/v1/bindings_override.rb +24 -0
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +11 -0
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +7 -0
  6. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +11 -0
  7. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +70 -0
  8. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +7 -0
  9. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +7 -0
  10. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +7 -0
  11. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +70 -0
  12. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +7 -0
  13. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +7 -0
  14. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +7 -0
  15. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +70 -0
  16. data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +57 -0
  17. data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +57 -0
  18. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +7 -0
  19. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +7 -0
  20. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +7 -0
  21. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +70 -0
  22. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +7 -0
  23. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +7 -0
  24. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +7 -0
  25. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +7 -0
  26. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +7 -0
  27. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +70 -0
  28. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +7 -0
  29. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +7 -0
  30. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +26 -0
  31. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +7 -0
  32. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +26 -0
  33. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +70 -0
  34. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/client.rb +879 -0
  35. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/credentials.rb +47 -0
  36. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/paths.rb +88 -0
  37. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/client.rb +827 -0
  38. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/service_stub.rb +388 -0
  39. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest.rb +53 -0
  40. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service.rb +55 -0
  41. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +7 -0
  42. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +7 -0
  43. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +7 -0
  44. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +70 -0
  45. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +7 -0
  46. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +7 -0
  47. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +7 -0
  48. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +70 -0
  49. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +7 -0
  50. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +7 -0
  51. data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +7 -0
  52. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +70 -0
  53. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +7 -0
  54. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +7 -0
  55. data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +7 -0
  56. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +70 -0
  57. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +7 -0
  58. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +7 -0
  59. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +7 -0
  60. data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +7 -0
  61. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +7 -0
  62. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +7 -0
  63. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +7 -0
  64. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +70 -0
  65. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +7 -0
  66. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +7 -0
  67. data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +7 -0
  68. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +70 -0
  69. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +7 -0
  70. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +7 -0
  71. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +124 -0
  72. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +7 -0
  73. data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +117 -0
  74. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +70 -0
  75. data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +61 -0
  76. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +7 -0
  77. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +7 -0
  78. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +7 -0
  79. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +70 -0
  80. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +7 -0
  81. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +7 -0
  82. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +7 -0
  83. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +70 -0
  84. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +7 -0
  85. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +7 -0
  86. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +7 -0
  87. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +70 -0
  88. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +21 -2
  89. data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +19 -0
  90. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +21 -2
  91. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/client.rb +600 -0
  92. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/credentials.rb +47 -0
  93. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/paths.rb +52 -0
  94. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/client.rb +571 -0
  95. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/service_stub.rb +199 -0
  96. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest.rb +53 -0
  97. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service.rb +55 -0
  98. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/client.rb +921 -0
  99. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/credentials.rb +47 -0
  100. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/operations.rb +821 -0
  101. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb +69 -0
  102. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/client.rb +869 -0
  103. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/operations.rb +4328 -0
  104. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/service_stub.rb +388 -0
  105. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest.rb +54 -0
  106. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service.rb +56 -0
  107. data/lib/google/cloud/ai_platform/v1/rest.rb +3 -0
  108. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +7 -0
  109. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +7 -0
  110. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +7 -0
  111. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +70 -0
  112. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +7 -0
  113. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +7 -0
  114. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +7 -0
  115. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +70 -0
  116. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +7 -0
  117. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +7 -0
  118. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +7 -0
  119. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +70 -0
  120. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  121. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +7 -0
  122. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +7 -0
  123. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +7 -0
  124. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +70 -0
  125. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +7 -0
  126. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +7 -0
  127. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +7 -0
  128. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +7 -0
  129. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +7 -0
  130. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +70 -0
  131. data/lib/google/cloud/ai_platform/v1.rb +3 -0
  132. data/lib/google/cloud/aiplatform/v1/cached_content_pb.rb +54 -0
  133. data/lib/google/cloud/aiplatform/v1/content_pb.rb +3 -1
  134. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +5 -2
  135. data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +2 -1
  136. data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_pb.rb +57 -0
  137. data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_services_pb.rb +54 -0
  138. data/lib/google/cloud/aiplatform/v1/model_pb.rb +1 -1
  139. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +4 -1
  140. data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +2 -0
  141. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +1 -1
  142. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  143. data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_pb.rb +52 -0
  144. data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_services_pb.rb +47 -0
  145. data/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb +51 -0
  146. data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_pb.rb +62 -0
  147. data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_services_pb.rb +53 -0
  148. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +9 -1
  149. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +12 -0
  150. data/proto_docs/google/cloud/aiplatform/v1/cached_content.rb +105 -0
  151. data/proto_docs/google/cloud/aiplatform/v1/content.rb +61 -0
  152. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +4 -0
  153. data/proto_docs/google/cloud/aiplatform/v1/data_labeling_job.rb +4 -0
  154. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
  155. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +4 -0
  156. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +57 -5
  157. data/proto_docs/google/cloud/aiplatform/v1/evaluation_service.rb +100 -0
  158. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +16 -0
  159. data/proto_docs/google/cloud/aiplatform/v1/explanation_metadata.rb +4 -0
  160. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
  161. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +18 -0
  162. data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +39 -0
  163. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
  164. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +29 -0
  165. data/proto_docs/google/cloud/aiplatform/v1/gen_ai_cache_service.rb +108 -0
  166. data/proto_docs/google/cloud/aiplatform/v1/index.rb +6 -0
  167. data/proto_docs/google/cloud/aiplatform/v1/io.rb +8 -0
  168. data/proto_docs/google/cloud/aiplatform/v1/migratable_resource.rb +8 -0
  169. data/proto_docs/google/cloud/aiplatform/v1/migration_service.rb +18 -0
  170. data/proto_docs/google/cloud/aiplatform/v1/model.rb +7 -0
  171. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +10 -0
  172. data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +10 -0
  173. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +63 -0
  174. data/proto_docs/google/cloud/aiplatform/v1/notebook_execution_job.rb +14 -0
  175. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +42 -2
  176. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +4 -0
  177. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +24 -0
  178. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +14 -0
  179. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb +87 -0
  180. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_execution_service.rb +73 -0
  181. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_service.rb +136 -0
  182. data/proto_docs/google/cloud/aiplatform/v1/schedule.rb +4 -0
  183. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.rb +12 -0
  184. data/proto_docs/google/cloud/aiplatform/v1/study.rb +24 -0
  185. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_data.rb +6 -0
  186. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +95 -0
  187. data/proto_docs/google/cloud/aiplatform/v1/training_pipeline.rb +14 -0
  188. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +6 -0
  189. data/proto_docs/google/cloud/aiplatform/v1/user_action_reference.rb +4 -0
  190. data/proto_docs/google/cloud/aiplatform/v1/value.rb +6 -0
  191. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb +32 -0
  192. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data_service.rb +8 -0
  193. data/proto_docs/google/longrunning/operations.rb +4 -0
  194. data/proto_docs/google/protobuf/struct.rb +12 -0
  195. data/proto_docs/google/type/latlng.rb +38 -0
  196. metadata +43 -9
@@ -0,0 +1,53 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/aiplatform/v1/reasoning_engine_service.proto for package 'Google.Cloud.AIPlatform.V1'
3
+ # Original file comments:
4
+ # Copyright 2024 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/aiplatform/v1/reasoning_engine_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module AIPlatform
25
+ module V1
26
+ module ReasoningEngineService
27
+ # A service for managing Vertex AI's Reasoning Engines.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.aiplatform.v1.ReasoningEngineService'
35
+
36
+ # Creates a reasoning engine.
37
+ rpc :CreateReasoningEngine, ::Google::Cloud::AIPlatform::V1::CreateReasoningEngineRequest, ::Google::Longrunning::Operation
38
+ # Gets a reasoning engine.
39
+ rpc :GetReasoningEngine, ::Google::Cloud::AIPlatform::V1::GetReasoningEngineRequest, ::Google::Cloud::AIPlatform::V1::ReasoningEngine
40
+ # Lists reasoning engines in a location.
41
+ rpc :ListReasoningEngines, ::Google::Cloud::AIPlatform::V1::ListReasoningEnginesRequest, ::Google::Cloud::AIPlatform::V1::ListReasoningEnginesResponse
42
+ # Updates a reasoning engine.
43
+ rpc :UpdateReasoningEngine, ::Google::Cloud::AIPlatform::V1::UpdateReasoningEngineRequest, ::Google::Longrunning::Operation
44
+ # Deletes a reasoning engine.
45
+ rpc :DeleteReasoningEngine, ::Google::Cloud::AIPlatform::V1::DeleteReasoningEngineRequest, ::Google::Longrunning::Operation
46
+ end
47
+
48
+ Stub = Service.rpc_stub_class
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -8,9 +8,10 @@ require 'google/api/field_behavior_pb'
8
8
  require 'google/api/resource_pb'
9
9
  require 'google/cloud/aiplatform/v1/openapi_pb'
10
10
  require 'google/protobuf/struct_pb'
11
+ require 'google/type/latlng_pb'
11
12
 
12
13
 
13
- descriptor_data = "\n%google/cloud/aiplatform/v1/tool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/openapi.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf3\x01\n\x04Tool\x12S\n\x15\x66unction_declarations\x18\x01 \x03(\x0b\x32/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xe0\x41\x01\x12=\n\tretrieval\x18\x02 \x01(\x0b\x32%.google.cloud.aiplatform.v1.RetrievalB\x03\xe0\x41\x01\x12W\n\x17google_search_retrieval\x18\x03 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.GoogleSearchRetrievalB\x03\xe0\x41\x01\"\xba\x01\n\x13\x46unctionDeclaration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.SchemaB\x03\xe0\x41\x01\x12\x39\n\x08response\x18\x04 \x01(\x0b\x32\".google.cloud.aiplatform.v1.SchemaB\x03\xe0\x41\x01\"M\n\x0c\x46unctionCall\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12*\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"U\n\x10\x46unctionResponse\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12.\n\x08response\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x02\"\xc9\x01\n\tRetrieval\x12\x46\n\x10vertex_ai_search\x18\x02 \x01(\x0b\x32*.google.cloud.aiplatform.v1.VertexAISearchH\x00\x12\x46\n\x10vertex_rag_store\x18\x04 \x01(\x0b\x32*.google.cloud.aiplatform.v1.VertexRagStoreH\x00\x12\"\n\x13\x64isable_attribution\x18\x03 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x42\x08\n\x06source\"\xaa\x03\n\x0eVertexRagStore\x12R\n\rrag_resources\x18\x04 \x03(\x0b\x32\x36.google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\x03\xe0\x41\x01\x12$\n\x10similarity_top_k\x18\x02 \x01(\x05\x42\x05\x18\x01\xe0\x41\x01H\x00\x88\x01\x01\x12-\n\x19vector_distance_threshold\x18\x03 \x01(\x01\x42\x05\x18\x01\xe0\x41\x01H\x01\x88\x01\x01\x12Q\n\x14rag_retrieval_config\x18\x06 \x01(\x0b\x32..google.cloud.aiplatform.v1.RagRetrievalConfigB\x03\xe0\x41\x01\x1ai\n\x0bRagResource\x12?\n\nrag_corpus\x18\x01 \x01(\tB+\xe0\x41\x01\xfa\x41%\n#aiplatform.googleapis.com/RagCorpus\x12\x19\n\x0crag_file_ids\x18\x02 \x03(\tB\x03\xe0\x41\x01\x42\x13\n\x11_similarity_top_kB\x1c\n\x1a_vector_distance_threshold\"(\n\x0eVertexAISearch\x12\x16\n\tdatastore\x18\x01 \x01(\tB\x03\xe0\x41\x02\"m\n\x15GoogleSearchRetrieval\x12T\n\x18\x64ynamic_retrieval_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"\xca\x01\n\x16\x44ynamicRetrievalConfig\x12\x45\n\x04mode\x18\x01 \x01(\x0e\x32\x37.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\x12#\n\x11\x64ynamic_threshold\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\".\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cMODE_DYNAMIC\x10\x01\x42\x14\n\x12_dynamic_threshold\"e\n\nToolConfig\x12W\n\x17\x66unction_calling_config\x18\x01 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.FunctionCallingConfigB\x03\xe0\x41\x01\"\xc2\x01\n\x15\x46unctionCallingConfig\x12I\n\x04mode\x18\x01 \x01(\x0e\x32\x36.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\x03\xe0\x41\x01\x12#\n\x16\x61llowed_function_names\x18\x02 \x03(\tB\x03\xe0\x41\x01\"9\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\x07\n\x03\x41NY\x10\x02\x12\x08\n\x04NONE\x10\x03\"\x8a\x02\n\x12RagRetrievalConfig\x12\x12\n\x05top_k\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12J\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x35.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterB\x03\xe0\x41\x01\x1a\x93\x01\n\x06\x46ilter\x12(\n\x19vector_distance_threshold\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x12*\n\x1bvector_similarity_threshold\x18\x04 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x12\x1c\n\x0fmetadata_filter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x15\n\x13vector_db_thresholdB\xc7\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\tToolProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
14
+ descriptor_data = "\n%google/cloud/aiplatform/v1/tool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/openapi.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x18google/type/latlng.proto\"\xd1\x02\n\x04Tool\x12S\n\x15\x66unction_declarations\x18\x01 \x03(\x0b\x32/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xe0\x41\x01\x12=\n\tretrieval\x18\x02 \x01(\x0b\x32%.google.cloud.aiplatform.v1.RetrievalB\x03\xe0\x41\x01\x12W\n\x17google_search_retrieval\x18\x03 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.GoogleSearchRetrievalB\x03\xe0\x41\x01\x12K\n\x0e\x63ode_execution\x18\x04 \x01(\x0b\x32..google.cloud.aiplatform.v1.Tool.CodeExecutionB\x03\xe0\x41\x01\x1a\x0f\n\rCodeExecution\"\xba\x01\n\x13\x46unctionDeclaration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.SchemaB\x03\xe0\x41\x01\x12\x39\n\x08response\x18\x04 \x01(\x0b\x32\".google.cloud.aiplatform.v1.SchemaB\x03\xe0\x41\x01\"M\n\x0c\x46unctionCall\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12*\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"U\n\x10\x46unctionResponse\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12.\n\x08response\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x02\"\xa1\x01\n\x0e\x45xecutableCode\x12J\n\x08language\x18\x01 \x01(\x0e\x32\x33.google.cloud.aiplatform.v1.ExecutableCode.LanguageB\x03\xe0\x41\x02\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\"0\n\x08Language\x12\x18\n\x14LANGUAGE_UNSPECIFIED\x10\x00\x12\n\n\x06PYTHON\x10\x01\"\xe0\x01\n\x13\x43odeExecutionResult\x12M\n\x07outcome\x18\x01 \x01(\x0e\x32\x37.google.cloud.aiplatform.v1.CodeExecutionResult.OutcomeB\x03\xe0\x41\x02\x12\x13\n\x06output\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n\x07Outcome\x12\x17\n\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x0e\n\nOUTCOME_OK\x10\x01\x12\x12\n\x0eOUTCOME_FAILED\x10\x02\x12\x1d\n\x19OUTCOME_DEADLINE_EXCEEDED\x10\x03\"\xc9\x01\n\tRetrieval\x12\x46\n\x10vertex_ai_search\x18\x02 \x01(\x0b\x32*.google.cloud.aiplatform.v1.VertexAISearchH\x00\x12\x46\n\x10vertex_rag_store\x18\x04 \x01(\x0b\x32*.google.cloud.aiplatform.v1.VertexRagStoreH\x00\x12\"\n\x13\x64isable_attribution\x18\x03 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x42\x08\n\x06source\"\xaa\x03\n\x0eVertexRagStore\x12R\n\rrag_resources\x18\x04 \x03(\x0b\x32\x36.google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\x03\xe0\x41\x01\x12$\n\x10similarity_top_k\x18\x02 \x01(\x05\x42\x05\x18\x01\xe0\x41\x01H\x00\x88\x01\x01\x12-\n\x19vector_distance_threshold\x18\x03 \x01(\x01\x42\x05\x18\x01\xe0\x41\x01H\x01\x88\x01\x01\x12Q\n\x14rag_retrieval_config\x18\x06 \x01(\x0b\x32..google.cloud.aiplatform.v1.RagRetrievalConfigB\x03\xe0\x41\x01\x1ai\n\x0bRagResource\x12?\n\nrag_corpus\x18\x01 \x01(\tB+\xe0\x41\x01\xfa\x41%\n#aiplatform.googleapis.com/RagCorpus\x12\x19\n\x0crag_file_ids\x18\x02 \x03(\tB\x03\xe0\x41\x01\x42\x13\n\x11_similarity_top_kB\x1c\n\x1a_vector_distance_threshold\"(\n\x0eVertexAISearch\x12\x16\n\tdatastore\x18\x01 \x01(\tB\x03\xe0\x41\x02\"m\n\x15GoogleSearchRetrieval\x12T\n\x18\x64ynamic_retrieval_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"\xca\x01\n\x16\x44ynamicRetrievalConfig\x12\x45\n\x04mode\x18\x01 \x01(\x0e\x32\x37.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\x12#\n\x11\x64ynamic_threshold\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\".\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cMODE_DYNAMIC\x10\x01\x42\x14\n\x12_dynamic_threshold\"\xb1\x01\n\nToolConfig\x12W\n\x17\x66unction_calling_config\x18\x01 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.FunctionCallingConfigB\x03\xe0\x41\x01\x12J\n\x10retrieval_config\x18\x02 \x01(\x0b\x32+.google.cloud.aiplatform.v1.RetrievalConfigB\x03\xe0\x41\x01\"\xc2\x01\n\x15\x46unctionCallingConfig\x12I\n\x04mode\x18\x01 \x01(\x0e\x32\x36.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\x03\xe0\x41\x01\x12#\n\x16\x61llowed_function_names\x18\x02 \x03(\tB\x03\xe0\x41\x01\"9\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\x07\n\x03\x41NY\x10\x02\x12\x08\n\x04NONE\x10\x03\"v\n\x0fRetrievalConfig\x12)\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLngH\x00\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\n\n\x08_lat_lngB\x10\n\x0e_language_code\"\x8a\x02\n\x12RagRetrievalConfig\x12\x12\n\x05top_k\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12J\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x35.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterB\x03\xe0\x41\x01\x1a\x93\x01\n\x06\x46ilter\x12(\n\x19vector_distance_threshold\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x12*\n\x1bvector_similarity_threshold\x18\x04 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x12\x1c\n\x0fmetadata_filter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x15\n\x13vector_db_thresholdB\xc7\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\tToolProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
14
15
 
15
16
  pool = Google::Protobuf::DescriptorPool.generated_pool
16
17
 
@@ -27,6 +28,7 @@ rescue TypeError
27
28
  imports = [
28
29
  ["google.cloud.aiplatform.v1.Schema", "google/cloud/aiplatform/v1/openapi.proto"],
29
30
  ["google.protobuf.Struct", "google/protobuf/struct.proto"],
31
+ ["google.type.LatLng", "google/type/latlng.proto"],
30
32
  ]
31
33
  imports.each do |type_name, expected_filename|
32
34
  import_file = pool.lookup(type_name).file_descriptor
@@ -43,9 +45,14 @@ module Google
43
45
  module AIPlatform
44
46
  module V1
45
47
  Tool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Tool").msgclass
48
+ Tool::CodeExecution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Tool.CodeExecution").msgclass
46
49
  FunctionDeclaration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionDeclaration").msgclass
47
50
  FunctionCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionCall").msgclass
48
51
  FunctionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionResponse").msgclass
52
+ ExecutableCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExecutableCode").msgclass
53
+ ExecutableCode::Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExecutableCode.Language").enummodule
54
+ CodeExecutionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.CodeExecutionResult").msgclass
55
+ CodeExecutionResult::Outcome = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.CodeExecutionResult.Outcome").enummodule
49
56
  Retrieval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Retrieval").msgclass
50
57
  VertexRagStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.VertexRagStore").msgclass
51
58
  VertexRagStore::RagResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.VertexRagStore.RagResource").msgclass
@@ -56,6 +63,7 @@ module Google
56
63
  ToolConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ToolConfig").msgclass
57
64
  FunctionCallingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionCallingConfig").msgclass
58
65
  FunctionCallingConfig::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionCallingConfig.Mode").enummodule
66
+ RetrievalConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.RetrievalConfig").msgclass
59
67
  RagRetrievalConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.RagRetrievalConfig").msgclass
60
68
  RagRetrievalConfig::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.RagRetrievalConfig.Filter").msgclass
61
69
  end
@@ -233,6 +233,8 @@ module Google
233
233
  # @!attribute [rw] gcs_source
234
234
  # @return [::Google::Cloud::AIPlatform::V1::GcsSource]
235
235
  # The Cloud Storage location for the input instances.
236
+ #
237
+ # Note: The following fields are mutually exclusive: `gcs_source`, `bigquery_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
236
238
  # @!attribute [rw] bigquery_source
237
239
  # @return [::Google::Cloud::AIPlatform::V1::BigQuerySource]
238
240
  # The BigQuery location of the input table.
@@ -240,6 +242,8 @@ module Google
240
242
  # context OpenAPI Schema, if one is provided. The table may contain
241
243
  # additional columns that are not described by the schema, and they will
242
244
  # be ignored.
245
+ #
246
+ # Note: The following fields are mutually exclusive: `bigquery_source`, `gcs_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
243
247
  # @!attribute [rw] instances_format
244
248
  # @return [::String]
245
249
  # Required. The format in which instances are given, must be one of the
@@ -380,6 +384,8 @@ module Google
380
384
  # as per their schema, followed by an additional `error` field which as
381
385
  # value has {::Google::Rpc::Status google.rpc.Status}
382
386
  # containing only `code` and `message` fields.
387
+ #
388
+ # Note: The following fields are mutually exclusive: `gcs_destination`, `bigquery_destination`. If a field in that set is populated, all other fields in the set will automatically be cleared.
383
389
  # @!attribute [rw] bigquery_destination
384
390
  # @return [::Google::Cloud::AIPlatform::V1::BigQueryDestination]
385
391
  # The BigQuery project or dataset location where the output is to be
@@ -402,6 +408,8 @@ module Google
402
408
  # instance schema, followed by a single "errors" column, which as values
403
409
  # has {::Google::Rpc::Status google.rpc.Status}
404
410
  # represented as a STRUCT, and containing only `code` and `message`.
411
+ #
412
+ # Note: The following fields are mutually exclusive: `bigquery_destination`, `gcs_destination`. If a field in that set is populated, all other fields in the set will automatically be cleared.
405
413
  # @!attribute [rw] predictions_format
406
414
  # @return [::String]
407
415
  # Required. The format in which Vertex AI gives the predictions, must be
@@ -419,11 +427,15 @@ module Google
419
427
  # @return [::String]
420
428
  # Output only. The full path of the Cloud Storage directory created, into
421
429
  # which the prediction output is written.
430
+ #
431
+ # Note: The following fields are mutually exclusive: `gcs_output_directory`, `bigquery_output_dataset`. If a field in that set is populated, all other fields in the set will automatically be cleared.
422
432
  # @!attribute [r] bigquery_output_dataset
423
433
  # @return [::String]
424
434
  # Output only. The path of the BigQuery dataset created, in
425
435
  # `bq://projectId.bqDatasetId`
426
436
  # format, into which the prediction output is written.
437
+ #
438
+ # Note: The following fields are mutually exclusive: `bigquery_output_dataset`, `gcs_output_directory`. If a field in that set is populated, all other fields in the set will automatically be cleared.
427
439
  # @!attribute [r] bigquery_output_table
428
440
  # @return [::String]
429
441
  # Output only. The name of the BigQuery table created, in
@@ -0,0 +1,105 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module AIPlatform
23
+ module V1
24
+ # A resource used in LLM queries for users to explicitly specify what to cache
25
+ # and how to cache.
26
+ # @!attribute [rw] expire_time
27
+ # @return [::Google::Protobuf::Timestamp]
28
+ # Timestamp of when this resource is considered expired.
29
+ # This is *always* provided on output, regardless of what was sent
30
+ # on input.
31
+ #
32
+ # Note: The following fields are mutually exclusive: `expire_time`, `ttl`. If a field in that set is populated, all other fields in the set will automatically be cleared.
33
+ # @!attribute [rw] ttl
34
+ # @return [::Google::Protobuf::Duration]
35
+ # Input only. The TTL for this resource. The expiration time is computed:
36
+ # now + TTL.
37
+ #
38
+ # Note: The following fields are mutually exclusive: `ttl`, `expire_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
39
+ # @!attribute [rw] name
40
+ # @return [::String]
41
+ # Immutable. Identifier. The server-generated resource name of the cached
42
+ # content Format:
43
+ # projects/\\{project}/locations/\\{location}/cachedContents/\\{cached_content}
44
+ # @!attribute [rw] display_name
45
+ # @return [::String]
46
+ # Optional. Immutable. The user-generated meaningful display name of the
47
+ # cached content.
48
+ # @!attribute [rw] model
49
+ # @return [::String]
50
+ # Immutable. The name of the publisher model to use for cached content.
51
+ # Format:
52
+ # projects/\\{project}/locations/\\{location}/publishers/\\{publisher}/models/\\{model}
53
+ # @!attribute [rw] system_instruction
54
+ # @return [::Google::Cloud::AIPlatform::V1::Content]
55
+ # Optional. Input only. Immutable. Developer set system instruction.
56
+ # Currently, text only
57
+ # @!attribute [rw] contents
58
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Content>]
59
+ # Optional. Input only. Immutable. The content to cache
60
+ # @!attribute [rw] tools
61
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Tool>]
62
+ # Optional. Input only. Immutable. A list of `Tools` the model may use to
63
+ # generate the next response
64
+ # @!attribute [rw] tool_config
65
+ # @return [::Google::Cloud::AIPlatform::V1::ToolConfig]
66
+ # Optional. Input only. Immutable. Tool config. This config is shared for all
67
+ # tools
68
+ # @!attribute [r] create_time
69
+ # @return [::Google::Protobuf::Timestamp]
70
+ # Output only. Creatation time of the cache entry.
71
+ # @!attribute [r] update_time
72
+ # @return [::Google::Protobuf::Timestamp]
73
+ # Output only. When the cache entry was last updated in UTC time.
74
+ # @!attribute [r] usage_metadata
75
+ # @return [::Google::Cloud::AIPlatform::V1::CachedContent::UsageMetadata]
76
+ # Output only. Metadata on the usage of the cached content.
77
+ class CachedContent
78
+ include ::Google::Protobuf::MessageExts
79
+ extend ::Google::Protobuf::MessageExts::ClassMethods
80
+
81
+ # Metadata on the usage of the cached content.
82
+ # @!attribute [rw] total_token_count
83
+ # @return [::Integer]
84
+ # Total number of tokens that the cached content consumes.
85
+ # @!attribute [rw] text_count
86
+ # @return [::Integer]
87
+ # Number of text characters.
88
+ # @!attribute [rw] image_count
89
+ # @return [::Integer]
90
+ # Number of images.
91
+ # @!attribute [rw] video_duration_seconds
92
+ # @return [::Integer]
93
+ # Duration of video in seconds.
94
+ # @!attribute [rw] audio_duration_seconds
95
+ # @return [::Integer]
96
+ # Duration of audio in seconds.
97
+ class UsageMetadata
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
@@ -51,23 +51,43 @@ module Google
51
51
  # @!attribute [rw] text
52
52
  # @return [::String]
53
53
  # Optional. Text part (can be code).
54
+ #
55
+ # Note: The following fields are mutually exclusive: `text`, `inline_data`, `file_data`, `function_call`, `function_response`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
54
56
  # @!attribute [rw] inline_data
55
57
  # @return [::Google::Cloud::AIPlatform::V1::Blob]
56
58
  # Optional. Inlined bytes data.
59
+ #
60
+ # Note: The following fields are mutually exclusive: `inline_data`, `text`, `file_data`, `function_call`, `function_response`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
57
61
  # @!attribute [rw] file_data
58
62
  # @return [::Google::Cloud::AIPlatform::V1::FileData]
59
63
  # Optional. URI based data.
64
+ #
65
+ # Note: The following fields are mutually exclusive: `file_data`, `text`, `inline_data`, `function_call`, `function_response`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
60
66
  # @!attribute [rw] function_call
61
67
  # @return [::Google::Cloud::AIPlatform::V1::FunctionCall]
62
68
  # Optional. A predicted [FunctionCall] returned from the model that
63
69
  # contains a string representing the [FunctionDeclaration.name] with the
64
70
  # parameters and their values.
71
+ #
72
+ # Note: The following fields are mutually exclusive: `function_call`, `text`, `inline_data`, `file_data`, `function_response`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
65
73
  # @!attribute [rw] function_response
66
74
  # @return [::Google::Cloud::AIPlatform::V1::FunctionResponse]
67
75
  # Optional. The result output of a [FunctionCall] that contains a string
68
76
  # representing the [FunctionDeclaration.name] and a structured JSON object
69
77
  # containing any output from the function call. It is used as context to
70
78
  # the model.
79
+ #
80
+ # Note: The following fields are mutually exclusive: `function_response`, `text`, `inline_data`, `file_data`, `function_call`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
81
+ # @!attribute [rw] executable_code
82
+ # @return [::Google::Cloud::AIPlatform::V1::ExecutableCode]
83
+ # Optional. Code generated by the model that is meant to be executed.
84
+ #
85
+ # Note: The following fields are mutually exclusive: `executable_code`, `text`, `inline_data`, `file_data`, `function_call`, `function_response`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
86
+ # @!attribute [rw] code_execution_result
87
+ # @return [::Google::Cloud::AIPlatform::V1::CodeExecutionResult]
88
+ # Optional. Result of executing the [ExecutableCode].
89
+ #
90
+ # Note: The following fields are mutually exclusive: `code_execution_result`, `text`, `inline_data`, `file_data`, `function_call`, `function_response`, `executable_code`. If a field in that set is populated, all other fields in the set will automatically be cleared.
71
91
  # @!attribute [rw] video_metadata
72
92
  # @return [::Google::Cloud::AIPlatform::V1::VideoMetadata]
73
93
  # Optional. Video metadata. The metadata should only be specified while the
@@ -179,9 +199,13 @@ module Google
179
199
  # @!attribute [rw] auto_mode
180
200
  # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode]
181
201
  # Automated routing.
202
+ #
203
+ # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared.
182
204
  # @!attribute [rw] manual_mode
183
205
  # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode]
184
206
  # Manual routing.
207
+ #
208
+ # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared.
185
209
  class RoutingConfig
186
210
  include ::Google::Protobuf::MessageExts
187
211
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -508,9 +532,13 @@ module Google
508
532
  # @!attribute [rw] web
509
533
  # @return [::Google::Cloud::AIPlatform::V1::GroundingChunk::Web]
510
534
  # Grounding chunk from the web.
535
+ #
536
+ # Note: The following fields are mutually exclusive: `web`, `retrieved_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
511
537
  # @!attribute [rw] retrieved_context
512
538
  # @return [::Google::Cloud::AIPlatform::V1::GroundingChunk::RetrievedContext]
513
539
  # Grounding chunk from context retrieved by the retrieval tools.
540
+ #
541
+ # Note: The following fields are mutually exclusive: `retrieved_context`, `web`. If a field in that set is populated, all other fields in the set will automatically be cleared.
514
542
  class GroundingChunk
515
543
  include ::Google::Protobuf::MessageExts
516
544
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -611,6 +639,18 @@ module Google
611
639
  extend ::Google::Protobuf::MessageExts::ClassMethods
612
640
  end
613
641
 
642
+ # Represents token counting info for a single modality.
643
+ # @!attribute [rw] modality
644
+ # @return [::Google::Cloud::AIPlatform::V1::Modality]
645
+ # The modality associated with this token count.
646
+ # @!attribute [rw] token_count
647
+ # @return [::Integer]
648
+ # Number of tokens.
649
+ class ModalityTokenCount
650
+ include ::Google::Protobuf::MessageExts
651
+ extend ::Google::Protobuf::MessageExts::ClassMethods
652
+ end
653
+
614
654
  # Harm categories that will block the content.
615
655
  module HarmCategory
616
656
  # The harm category is unspecified.
@@ -631,6 +671,27 @@ module Google
631
671
  # The harm category is civic integrity.
632
672
  HARM_CATEGORY_CIVIC_INTEGRITY = 5
633
673
  end
674
+
675
+ # Content Part modality
676
+ module Modality
677
+ # Unspecified modality.
678
+ MODALITY_UNSPECIFIED = 0
679
+
680
+ # Plain text.
681
+ TEXT = 1
682
+
683
+ # Image.
684
+ IMAGE = 2
685
+
686
+ # Video.
687
+ VIDEO = 3
688
+
689
+ # Audio.
690
+ AUDIO = 4
691
+
692
+ # Document, e.g. PDF.
693
+ DOCUMENT = 5
694
+ end
634
695
  end
635
696
  end
636
697
  end
@@ -258,9 +258,13 @@ module Google
258
258
  # @!attribute [rw] container_spec
259
259
  # @return [::Google::Cloud::AIPlatform::V1::ContainerSpec]
260
260
  # The custom container task.
261
+ #
262
+ # Note: The following fields are mutually exclusive: `container_spec`, `python_package_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared.
261
263
  # @!attribute [rw] python_package_spec
262
264
  # @return [::Google::Cloud::AIPlatform::V1::PythonPackageSpec]
263
265
  # The Python packaged task.
266
+ #
267
+ # Note: The following fields are mutually exclusive: `python_package_spec`, `container_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared.
264
268
  # @!attribute [rw] machine_spec
265
269
  # @return [::Google::Cloud::AIPlatform::V1::MachineSpec]
266
270
  # Optional. Immutable. The specification of a single machine.
@@ -145,9 +145,13 @@ module Google
145
145
  # @!attribute [rw] max_data_item_count
146
146
  # @return [::Integer]
147
147
  # Max number of human labeled DataItems.
148
+ #
149
+ # Note: The following fields are mutually exclusive: `max_data_item_count`, `max_data_item_percentage`. If a field in that set is populated, all other fields in the set will automatically be cleared.
148
150
  # @!attribute [rw] max_data_item_percentage
149
151
  # @return [::Integer]
150
152
  # Max percent of total DataItems for human labeling.
153
+ #
154
+ # Note: The following fields are mutually exclusive: `max_data_item_percentage`, `max_data_item_count`. If a field in that set is populated, all other fields in the set will automatically be cleared.
151
155
  # @!attribute [rw] sample_config
152
156
  # @return [::Google::Cloud::AIPlatform::V1::SampleConfig]
153
157
  # Active learning data sampling config. For every active learning labeling
@@ -194,9 +194,13 @@ module Google
194
194
  # @!attribute [rw] fraction_split
195
195
  # @return [::Google::Cloud::AIPlatform::V1::ExportFractionSplit]
196
196
  # Split based on fractions defining the size of each set.
197
+ #
198
+ # Note: The following fields are mutually exclusive: `fraction_split`, `filter_split`. If a field in that set is populated, all other fields in the set will automatically be cleared.
197
199
  # @!attribute [rw] filter_split
198
200
  # @return [::Google::Cloud::AIPlatform::V1::ExportFilterSplit]
199
201
  # Split based on the provided filters for each set.
202
+ #
203
+ # Note: The following fields are mutually exclusive: `filter_split`, `fraction_split`. If a field in that set is populated, all other fields in the set will automatically be cleared.
200
204
  # @!attribute [rw] annotations_filter
201
205
  # @return [::String]
202
206
  # An expression for filtering what part of the Dataset is to be exported.
@@ -410,9 +410,13 @@ module Google
410
410
  # @return [::String]
411
411
  # A comma-separated list of data item fields to order by, sorted in
412
412
  # ascending order. Use "desc" after a field name for descending.
413
+ #
414
+ # Note: The following fields are mutually exclusive: `order_by_data_item`, `order_by_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
413
415
  # @!attribute [rw] order_by_annotation
414
416
  # @return [::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest::OrderByAnnotation]
415
417
  # Expression that allows ranking results based on annotation's property.
418
+ #
419
+ # Note: The following fields are mutually exclusive: `order_by_annotation`, `order_by_data_item`. If a field in that set is populated, all other fields in the set will automatically be cleared.
416
420
  # @!attribute [rw] dataset
417
421
  # @return [::String]
418
422
  # Required. The resource name of the Dataset from which to search DataItems.
@@ -172,15 +172,21 @@ module Google
172
172
  # @return [::Google::Cloud::AIPlatform::V1::DedicatedResources]
173
173
  # A description of resources that are dedicated to the DeployedModel, and
174
174
  # that need a higher degree of manual configuration.
175
+ #
176
+ # Note: The following fields are mutually exclusive: `dedicated_resources`, `automatic_resources`, `shared_resources`. If a field in that set is populated, all other fields in the set will automatically be cleared.
175
177
  # @!attribute [rw] automatic_resources
176
178
  # @return [::Google::Cloud::AIPlatform::V1::AutomaticResources]
177
179
  # A description of resources that to large degree are decided by Vertex
178
180
  # AI, and require only a modest additional configuration.
181
+ #
182
+ # Note: The following fields are mutually exclusive: `automatic_resources`, `dedicated_resources`, `shared_resources`. If a field in that set is populated, all other fields in the set will automatically be cleared.
179
183
  # @!attribute [rw] shared_resources
180
184
  # @return [::String]
181
185
  # The resource name of the shared DeploymentResourcePool to deploy on.
182
186
  # Format:
183
187
  # `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
188
+ #
189
+ # Note: The following fields are mutually exclusive: `shared_resources`, `dedicated_resources`, `automatic_resources`. If a field in that set is populated, all other fields in the set will automatically be cleared.
184
190
  # @!attribute [rw] id
185
191
  # @return [::String]
186
192
  # Immutable. The ID of the DeployedModel. If not provided upon deployment,
@@ -279,6 +285,9 @@ module Google
279
285
  # @return [::Google::Protobuf::Map{::String => ::String}]
280
286
  # System labels to apply to Model Garden deployments.
281
287
  # System labels are managed by Google for internal use only.
288
+ # @!attribute [rw] speculative_decoding_spec
289
+ # @return [::Google::Cloud::AIPlatform::V1::SpeculativeDecodingSpec]
290
+ # Optional. Spec for configuring speculative decoding.
282
291
  class DeployedModel
283
292
  include ::Google::Protobuf::MessageExts
284
293
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -352,6 +361,15 @@ module Google
352
361
  extend ::Google::Protobuf::MessageExts::ClassMethods
353
362
  end
354
363
 
364
+ # Configurations (e.g. inference timeout) that are applied on your endpoints.
365
+ # @!attribute [rw] inference_timeout
366
+ # @return [::Google::Protobuf::Duration]
367
+ # Customizable online prediction request timeout.
368
+ class ClientConnectionConfig
369
+ include ::Google::Protobuf::MessageExts
370
+ extend ::Google::Protobuf::MessageExts::ClassMethods
371
+ end
372
+
355
373
  # Configuration for faster model deployment.
356
374
  # @!attribute [rw] fast_tryout_enabled
357
375
  # @return [::Boolean]
@@ -361,13 +379,47 @@ module Google
361
379
  extend ::Google::Protobuf::MessageExts::ClassMethods
362
380
  end
363
381
 
364
- # Configurations (e.g. inference timeout) that are applied on your endpoints.
365
- # @!attribute [rw] inference_timeout
366
- # @return [::Google::Protobuf::Duration]
367
- # Customizable online prediction request timeout.
368
- class ClientConnectionConfig
382
+ # Configuration for Speculative Decoding.
383
+ # @!attribute [rw] draft_model_speculation
384
+ # @return [::Google::Cloud::AIPlatform::V1::SpeculativeDecodingSpec::DraftModelSpeculation]
385
+ # draft model speculation.
386
+ #
387
+ # Note: The following fields are mutually exclusive: `draft_model_speculation`, `ngram_speculation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
388
+ # @!attribute [rw] ngram_speculation
389
+ # @return [::Google::Cloud::AIPlatform::V1::SpeculativeDecodingSpec::NgramSpeculation]
390
+ # N-Gram speculation.
391
+ #
392
+ # Note: The following fields are mutually exclusive: `ngram_speculation`, `draft_model_speculation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
393
+ # @!attribute [rw] speculative_token_count
394
+ # @return [::Integer]
395
+ # The number of speculative tokens to generate at each step.
396
+ class SpeculativeDecodingSpec
369
397
  include ::Google::Protobuf::MessageExts
370
398
  extend ::Google::Protobuf::MessageExts::ClassMethods
399
+
400
+ # Draft model speculation works by using the smaller model to generate
401
+ # candidate tokens for speculative decoding.
402
+ # @!attribute [rw] draft_model
403
+ # @return [::String]
404
+ # Required. The resource name of the draft model.
405
+ class DraftModelSpeculation
406
+ include ::Google::Protobuf::MessageExts
407
+ extend ::Google::Protobuf::MessageExts::ClassMethods
408
+ end
409
+
410
+ # N-Gram speculation works by trying to find matching tokens in the
411
+ # previous prompt sequence and use those as speculation for generating
412
+ # new tokens.
413
+ # @!attribute [rw] ngram_size
414
+ # @return [::Integer]
415
+ # The number of last N input tokens used as ngram to search/match
416
+ # against the previous prompt sequence.
417
+ # This is equal to the N in N-Gram.
418
+ # The default value is 3 if not specified.
419
+ class NgramSpeculation
420
+ include ::Google::Protobuf::MessageExts
421
+ extend ::Google::Protobuf::MessageExts::ClassMethods
422
+ end
371
423
  end
372
424
  end
373
425
  end