google-cloud-ai_platform-v1 0.35.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -99
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +43 -17
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +28 -6
  5. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +896 -0
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/credentials.rb +47 -0
  7. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +809 -0
  8. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/paths.rb +83 -0
  9. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +50 -0
  10. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +43 -17
  11. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +28 -6
  12. data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +19 -0
  13. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +46 -18
  14. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +28 -6
  15. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +146 -17
  16. data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +2 -0
  17. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +44 -18
  18. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +28 -6
  19. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +42 -17
  20. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +44 -18
  21. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +28 -6
  22. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +43 -17
  23. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +28 -6
  24. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +52 -18
  25. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +28 -6
  26. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +43 -17
  27. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +28 -6
  28. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +49 -18
  29. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +42 -17
  30. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +43 -17
  31. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +28 -6
  32. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +43 -17
  33. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +28 -6
  34. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +42 -17
  35. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +47 -21
  36. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +28 -6
  37. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +43 -17
  38. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +28 -6
  39. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +544 -20
  40. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +43 -17
  41. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +28 -6
  42. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +43 -17
  43. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +28 -6
  44. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +43 -17
  45. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +28 -6
  46. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  47. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +43 -17
  48. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +28 -6
  49. data/lib/google/cloud/ai_platform/v1.rb +1 -0
  50. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  51. data/lib/google/cloud/aiplatform/v1/annotation_pb.rb +1 -1
  52. data/lib/google/cloud/aiplatform/v1/annotation_spec_pb.rb +1 -1
  53. data/lib/google/cloud/aiplatform/v1/artifact_pb.rb +1 -1
  54. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -1
  55. data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +1 -1
  56. data/lib/google/cloud/aiplatform/v1/content_pb.rb +64 -0
  57. data/lib/google/cloud/aiplatform/v1/context_pb.rb +1 -1
  58. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +2 -2
  59. data/lib/google/cloud/aiplatform/v1/data_item_pb.rb +1 -1
  60. data/lib/google/cloud/aiplatform/v1/data_labeling_job_pb.rb +1 -1
  61. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +4 -2
  62. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +4 -2
  63. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  64. data/lib/google/cloud/aiplatform/v1/deployed_index_ref_pb.rb +2 -2
  65. data/lib/google/cloud/aiplatform/v1/deployed_model_ref_pb.rb +1 -1
  66. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +49 -0
  67. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_pb.rb +65 -0
  68. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_services_pb.rb +53 -0
  69. data/lib/google/cloud/aiplatform/v1/encryption_spec_pb.rb +1 -1
  70. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +2 -2
  71. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +2 -2
  72. data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +1 -1
  73. data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +1 -1
  74. data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +1 -1
  75. data/lib/google/cloud/aiplatform/v1/event_pb.rb +1 -1
  76. data/lib/google/cloud/aiplatform/v1/execution_pb.rb +1 -1
  77. data/lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb +1 -1
  78. data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +1 -1
  79. data/lib/google/cloud/aiplatform/v1/feature_group_pb.rb +2 -2
  80. data/lib/google/cloud/aiplatform/v1/feature_monitoring_stats_pb.rb +1 -1
  81. data/lib/google/cloud/aiplatform/v1/feature_online_store_admin_service_pb.rb +2 -2
  82. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +2 -2
  83. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +10 -2
  84. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_services_pb.rb +5 -0
  85. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +2 -2
  86. data/lib/google/cloud/aiplatform/v1/feature_registry_service_pb.rb +2 -2
  87. data/lib/google/cloud/aiplatform/v1/feature_selector_pb.rb +1 -1
  88. data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +2 -2
  89. data/lib/google/cloud/aiplatform/v1/feature_view_sync_pb.rb +2 -2
  90. data/lib/google/cloud/aiplatform/v1/featurestore_monitoring_pb.rb +1 -1
  91. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +2 -2
  92. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -1
  93. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +2 -2
  94. data/lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb +1 -1
  95. data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -2
  96. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +2 -2
  97. data/lib/google/cloud/aiplatform/v1/index_pb.rb +1 -1
  98. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +2 -2
  99. data/lib/google/cloud/aiplatform/v1/io_pb.rb +1 -1
  100. data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +2 -2
  101. data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +1 -1
  102. data/lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb +1 -1
  103. data/lib/google/cloud/aiplatform/v1/llm_utility_service_pb.rb +2 -2
  104. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +1 -1
  105. data/lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb +1 -1
  106. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +1 -1
  107. data/lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb +1 -1
  108. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +2 -2
  109. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +1 -1
  110. data/lib/google/cloud/aiplatform/v1/migratable_resource_pb.rb +1 -1
  111. data/lib/google/cloud/aiplatform/v1/migration_service_pb.rb +2 -2
  112. data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +2 -2
  113. data/lib/google/cloud/aiplatform/v1/model_evaluation_pb.rb +1 -1
  114. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +1 -1
  115. data/lib/google/cloud/aiplatform/v1/model_garden_service_pb.rb +2 -2
  116. data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +1 -1
  117. data/lib/google/cloud/aiplatform/v1/model_pb.rb +3 -2
  118. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +2 -2
  119. data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +1 -1
  120. data/lib/google/cloud/aiplatform/v1/openapi_pb.rb +47 -0
  121. data/lib/google/cloud/aiplatform/v1/operation_pb.rb +1 -1
  122. data/lib/google/cloud/aiplatform/v1/pipeline_failure_policy_pb.rb +1 -1
  123. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -1
  124. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +2 -2
  125. data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +1 -1
  126. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +16 -2
  127. data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +16 -3
  128. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +6 -2
  129. data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +1 -1
  130. data/lib/google/cloud/aiplatform/v1/schedule_pb.rb +1 -1
  131. data/lib/google/cloud/aiplatform/v1/schedule_service_pb.rb +2 -2
  132. data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +4 -2
  133. data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +1 -1
  134. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +2 -2
  135. data/lib/google/cloud/aiplatform/v1/study_pb.rb +1 -1
  136. data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +1 -1
  137. data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +1 -1
  138. data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +1 -1
  139. data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +1 -1
  140. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +2 -2
  141. data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +1 -1
  142. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +51 -0
  143. data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +1 -1
  144. data/lib/google/cloud/aiplatform/v1/types_pb.rb +1 -1
  145. data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +1 -1
  146. data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +1 -1
  147. data/lib/google/cloud/aiplatform/v1/value_pb.rb +1 -1
  148. data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +2 -2
  149. data/proto_docs/google/api/client.rb +1 -0
  150. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +2 -2
  151. data/proto_docs/google/cloud/aiplatform/v1/content.rb +312 -0
  152. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +15 -0
  153. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +102 -0
  154. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +12 -1
  155. data/proto_docs/google/cloud/aiplatform/v1/deployed_index_ref.rb +3 -0
  156. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +45 -0
  157. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool_service.rb +170 -0
  158. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +6 -0
  159. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +8 -0
  160. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +5 -1
  161. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +2 -2
  162. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +2 -2
  163. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +3 -1
  164. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +136 -0
  165. data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +3 -2
  166. data/proto_docs/google/cloud/aiplatform/v1/feature_view_sync.rb +2 -2
  167. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +1 -1
  168. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +5 -0
  169. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +28 -0
  170. data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +1 -0
  171. data/proto_docs/google/cloud/aiplatform/v1/model.rb +55 -4
  172. data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +4 -0
  173. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +1 -1
  174. data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +1 -0
  175. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +4 -4
  176. data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +1 -0
  177. data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +102 -0
  178. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +1 -0
  179. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +195 -0
  180. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +73 -1
  181. data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +16 -0
  182. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +112 -0
  183. data/proto_docs/google/protobuf/any.rb +2 -1
  184. data/proto_docs/google/type/date.rb +53 -0
  185. metadata +26 -9
@@ -205,6 +205,7 @@ module Google
205
205
  end
206
206
  end
207
207
 
208
+ # The alert config for model monitoring.
208
209
  # @!attribute [rw] email_alert_config
209
210
  # @return [::Google::Cloud::AIPlatform::V1::ModelMonitoringAlertConfig::EmailAlertConfig]
210
211
  # Email alert config.
@@ -46,10 +46,10 @@ module Google
46
46
  # Optional. The user-provided custom service account to use to do the model
47
47
  # upload. If empty, [Vertex AI Service
48
48
  # Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
49
- # will be used. Users uploading the Model must have the
50
- # `iam.serviceAccounts.actAs` permission on this service account. Also, this
51
- # account must belong to the project specified in the `parent` field and have
52
- # all necessary read permissions.
49
+ # will be used to access resources needed to upload the model. This account
50
+ # must belong to the target project where the model is uploaded to, i.e., the
51
+ # project specified in the `parent` field of this request and have necessary
52
+ # read permissions (to Google Cloud Storage, Artifact Registry, etc.).
53
53
  class UploadModelRequest
54
54
  include ::Google::Protobuf::MessageExts
55
55
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -72,6 +72,7 @@ module Google
72
72
  # If this is set, then all resources created by the NasJob
73
73
  # will be encrypted with the provided encryption key.
74
74
  # @!attribute [rw] enable_restricted_image_training
75
+ # @deprecated This field is deprecated and may be removed in the next major version update.
75
76
  # @return [::Boolean]
76
77
  # Optional. Enable a separation of Custom model training
77
78
  # and restricted image training for tenant project.
@@ -0,0 +1,102 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ # Schema is used to define the format of input/output data. Represents a select
25
+ # subset of an [OpenAPI 3.0 schema
26
+ # object](https://spec.openapis.org/oas/v3.0.3#schema). More fields may be
27
+ # added in the future as needed.
28
+ # @!attribute [rw] type
29
+ # @return [::Google::Cloud::AIPlatform::V1::Type]
30
+ # Optional. The type of the data.
31
+ # @!attribute [rw] format
32
+ # @return [::String]
33
+ # Optional. The format of the data.
34
+ # Supported formats:
35
+ # for NUMBER type: float, double
36
+ # for INTEGER type: int32, int64
37
+ # @!attribute [rw] description
38
+ # @return [::String]
39
+ # Optional. The description of the data.
40
+ # @!attribute [rw] nullable
41
+ # @return [::Boolean]
42
+ # Optional. Indicates if the value may be null.
43
+ # @!attribute [rw] items
44
+ # @return [::Google::Cloud::AIPlatform::V1::Schema]
45
+ # Optional. Schema of the elements of Type.ARRAY.
46
+ # @!attribute [rw] enum
47
+ # @return [::Array<::String>]
48
+ # Optional. Possible values of the element of Type.STRING with enum format.
49
+ # For example we can define an Enum Direction as :
50
+ # \\{type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
51
+ # @!attribute [rw] properties
52
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::Schema}]
53
+ # Optional. Properties of Type.OBJECT.
54
+ # @!attribute [rw] required
55
+ # @return [::Array<::String>]
56
+ # Optional. Required properties of Type.OBJECT.
57
+ # @!attribute [rw] example
58
+ # @return [::Google::Protobuf::Value]
59
+ # Optional. Example of the object. Will only populated when the object is the
60
+ # root.
61
+ class Schema
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+
65
+ # @!attribute [rw] key
66
+ # @return [::String]
67
+ # @!attribute [rw] value
68
+ # @return [::Google::Cloud::AIPlatform::V1::Schema]
69
+ class PropertiesEntry
70
+ include ::Google::Protobuf::MessageExts
71
+ extend ::Google::Protobuf::MessageExts::ClassMethods
72
+ end
73
+ end
74
+
75
+ # Type contains the list of OpenAPI data types as defined by
76
+ # https://swagger.io/docs/specification/data-models/data-types/
77
+ module Type
78
+ # Not specified, should not be used.
79
+ TYPE_UNSPECIFIED = 0
80
+
81
+ # OpenAPI string type
82
+ STRING = 1
83
+
84
+ # OpenAPI number type
85
+ NUMBER = 2
86
+
87
+ # OpenAPI integer type
88
+ INTEGER = 3
89
+
90
+ # OpenAPI boolean type
91
+ BOOLEAN = 4
92
+
93
+ # OpenAPI array type
94
+ ARRAY = 5
95
+
96
+ # OpenAPI object type
97
+ OBJECT = 6
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end
@@ -132,6 +132,7 @@ module Google
132
132
 
133
133
  # The runtime config of a PipelineJob.
134
134
  # @!attribute [rw] parameters
135
+ # @deprecated This field is deprecated and may be removed in the next major version update.
135
136
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::Value}]
136
137
  # Deprecated. Use
137
138
  # {::Google::Cloud::AIPlatform::V1::PipelineJob::RuntimeConfig#parameter_values RuntimeConfig.parameter_values}
@@ -114,6 +114,21 @@ module Google
114
114
  extend ::Google::Protobuf::MessageExts::ClassMethods
115
115
  end
116
116
 
117
+ # Request message for
118
+ # {::Google::Cloud::AIPlatform::V1::PredictionService::Client#stream_raw_predict PredictionService.StreamRawPredict}.
119
+ # @!attribute [rw] endpoint
120
+ # @return [::String]
121
+ # Required. The name of the Endpoint requested to serve the prediction.
122
+ # Format:
123
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
124
+ # @!attribute [rw] http_body
125
+ # @return [::Google::Api::HttpBody]
126
+ # The prediction input. Supports HTTP headers and arbitrary data payload.
127
+ class StreamRawPredictRequest
128
+ include ::Google::Protobuf::MessageExts
129
+ extend ::Google::Protobuf::MessageExts::ClassMethods
130
+ end
131
+
117
132
  # Request message for
118
133
  # {::Google::Cloud::AIPlatform::V1::PredictionService::Client#direct_predict PredictionService.DirectPredict}.
119
134
  # @!attribute [rw] endpoint
@@ -179,6 +194,87 @@ module Google
179
194
  extend ::Google::Protobuf::MessageExts::ClassMethods
180
195
  end
181
196
 
197
+ # Request message for
198
+ # {::Google::Cloud::AIPlatform::V1::PredictionService::Client#stream_direct_predict PredictionService.StreamDirectPredict}.
199
+ #
200
+ # The first message must contain
201
+ # {::Google::Cloud::AIPlatform::V1::StreamDirectPredictRequest#endpoint endpoint}
202
+ # field and optionally [input][]. The subsequent messages must contain
203
+ # [input][].
204
+ # @!attribute [rw] endpoint
205
+ # @return [::String]
206
+ # Required. The name of the Endpoint requested to serve the prediction.
207
+ # Format:
208
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
209
+ # @!attribute [rw] inputs
210
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Tensor>]
211
+ # Optional. The prediction input.
212
+ # @!attribute [rw] parameters
213
+ # @return [::Google::Cloud::AIPlatform::V1::Tensor]
214
+ # Optional. The parameters that govern the prediction.
215
+ class StreamDirectPredictRequest
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
219
+
220
+ # Response message for
221
+ # {::Google::Cloud::AIPlatform::V1::PredictionService::Client#stream_direct_predict PredictionService.StreamDirectPredict}.
222
+ # @!attribute [rw] outputs
223
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Tensor>]
224
+ # The prediction output.
225
+ # @!attribute [rw] parameters
226
+ # @return [::Google::Cloud::AIPlatform::V1::Tensor]
227
+ # The parameters that govern the prediction.
228
+ class StreamDirectPredictResponse
229
+ include ::Google::Protobuf::MessageExts
230
+ extend ::Google::Protobuf::MessageExts::ClassMethods
231
+ end
232
+
233
+ # Request message for
234
+ # {::Google::Cloud::AIPlatform::V1::PredictionService::Client#stream_direct_raw_predict PredictionService.StreamDirectRawPredict}.
235
+ #
236
+ # The first message must contain
237
+ # {::Google::Cloud::AIPlatform::V1::StreamDirectRawPredictRequest#endpoint endpoint}
238
+ # and
239
+ # {::Google::Cloud::AIPlatform::V1::StreamDirectRawPredictRequest#method_name method_name}
240
+ # fields and optionally
241
+ # {::Google::Cloud::AIPlatform::V1::StreamDirectRawPredictRequest#input input}. The
242
+ # subsequent messages must contain
243
+ # {::Google::Cloud::AIPlatform::V1::StreamDirectRawPredictRequest#input input}.
244
+ # {::Google::Cloud::AIPlatform::V1::StreamDirectRawPredictRequest#method_name method_name}
245
+ # in the subsequent messages have no effect.
246
+ # @!attribute [rw] endpoint
247
+ # @return [::String]
248
+ # Required. The name of the Endpoint requested to serve the prediction.
249
+ # Format:
250
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
251
+ # @!attribute [rw] method_name
252
+ # @return [::String]
253
+ # Optional. Fully qualified name of the API method being invoked to perform
254
+ # predictions.
255
+ #
256
+ # Format:
257
+ # `/namespace.Service/Method/`
258
+ # Example:
259
+ # `/tensorflow.serving.PredictionService/Predict`
260
+ # @!attribute [rw] input
261
+ # @return [::String]
262
+ # Optional. The prediction input.
263
+ class StreamDirectRawPredictRequest
264
+ include ::Google::Protobuf::MessageExts
265
+ extend ::Google::Protobuf::MessageExts::ClassMethods
266
+ end
267
+
268
+ # Response message for
269
+ # {::Google::Cloud::AIPlatform::V1::PredictionService::Client#stream_direct_raw_predict PredictionService.StreamDirectRawPredict}.
270
+ # @!attribute [rw] output
271
+ # @return [::String]
272
+ # The prediction output.
273
+ class StreamDirectRawPredictResponse
274
+ include ::Google::Protobuf::MessageExts
275
+ extend ::Google::Protobuf::MessageExts::ClassMethods
276
+ end
277
+
182
278
  # Request message for
183
279
  # {::Google::Cloud::AIPlatform::V1::PredictionService::Client#streaming_predict PredictionService.StreamingPredict}.
184
280
  #
@@ -333,10 +429,18 @@ module Google
333
429
  # Required. The name of the Endpoint requested to perform token counting.
334
430
  # Format:
335
431
  # `projects/{project}/locations/{location}/endpoints/{endpoint}`
432
+ # @!attribute [rw] model
433
+ # @return [::String]
434
+ # Required. The name of the publisher model requested to serve the
435
+ # prediction. Format:
436
+ # `projects/{project}/locations/{location}/publishers/*/models/*`
336
437
  # @!attribute [rw] instances
337
438
  # @return [::Array<::Google::Protobuf::Value>]
338
439
  # Required. The instances that are the input to token counting call.
339
440
  # Schema is identical to the prediction schema of the underlying model.
441
+ # @!attribute [rw] contents
442
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Content>]
443
+ # Required. Input content.
340
444
  class CountTokensRequest
341
445
  include ::Google::Protobuf::MessageExts
342
446
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -354,6 +458,97 @@ module Google
354
458
  include ::Google::Protobuf::MessageExts
355
459
  extend ::Google::Protobuf::MessageExts::ClassMethods
356
460
  end
461
+
462
+ # Request message for [PredictionService.GenerateContent].
463
+ # @!attribute [rw] model
464
+ # @return [::String]
465
+ # Required. The name of the publisher model requested to serve the
466
+ # prediction. Format:
467
+ # `projects/{project}/locations/{location}/publishers/*/models/*`
468
+ # @!attribute [rw] contents
469
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Content>]
470
+ # Required. The content of the current conversation with the model.
471
+ #
472
+ # For single-turn queries, this is a single instance. For multi-turn queries,
473
+ # this is a repeated field that contains conversation history + latest
474
+ # request.
475
+ # @!attribute [rw] tools
476
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Tool>]
477
+ # Optional. A list of `Tools` the model may use to generate the next
478
+ # response.
479
+ #
480
+ # A `Tool` is a piece of code that enables the system to interact with
481
+ # external systems to perform an action, or set of actions, outside of
482
+ # knowledge and scope of the model.
483
+ # @!attribute [rw] safety_settings
484
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting>]
485
+ # Optional. Per request settings for blocking unsafe content.
486
+ # Enforced on GenerateContentResponse.candidates.
487
+ # @!attribute [rw] generation_config
488
+ # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig]
489
+ # Optional. Generation config.
490
+ class GenerateContentRequest
491
+ include ::Google::Protobuf::MessageExts
492
+ extend ::Google::Protobuf::MessageExts::ClassMethods
493
+ end
494
+
495
+ # Response message for [PredictionService.GenerateContent].
496
+ # @!attribute [r] candidates
497
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Candidate>]
498
+ # Output only. Generated candidates.
499
+ # @!attribute [r] prompt_feedback
500
+ # @return [::Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback]
501
+ # Output only. Content filter results for a prompt sent in the request.
502
+ # Note: Sent only in the first stream chunk.
503
+ # Only happens when no candidates were generated due to content violations.
504
+ # @!attribute [rw] usage_metadata
505
+ # @return [::Google::Cloud::AIPlatform::V1::GenerateContentResponse::UsageMetadata]
506
+ # Usage metadata about the response(s).
507
+ class GenerateContentResponse
508
+ include ::Google::Protobuf::MessageExts
509
+ extend ::Google::Protobuf::MessageExts::ClassMethods
510
+
511
+ # Content filter results for a prompt sent in the request.
512
+ # @!attribute [r] block_reason
513
+ # @return [::Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback::BlockedReason]
514
+ # Output only. Blocked reason.
515
+ # @!attribute [r] safety_ratings
516
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::SafetyRating>]
517
+ # Output only. Safety ratings.
518
+ # @!attribute [r] block_reason_message
519
+ # @return [::String]
520
+ # Output only. A readable block reason message.
521
+ class PromptFeedback
522
+ include ::Google::Protobuf::MessageExts
523
+ extend ::Google::Protobuf::MessageExts::ClassMethods
524
+
525
+ # Blocked reason enumeration.
526
+ module BlockedReason
527
+ # Unspecified blocked reason.
528
+ BLOCKED_REASON_UNSPECIFIED = 0
529
+
530
+ # Candidates blocked due to safety.
531
+ SAFETY = 1
532
+
533
+ # Candidates blocked due to other reason.
534
+ OTHER = 2
535
+ end
536
+ end
537
+
538
+ # Usage metadata about response(s).
539
+ # @!attribute [rw] prompt_token_count
540
+ # @return [::Integer]
541
+ # Number of tokens in the request.
542
+ # @!attribute [rw] candidates_token_count
543
+ # @return [::Integer]
544
+ # Number of tokens in the response(s).
545
+ # @!attribute [rw] total_token_count
546
+ # @return [::Integer]
547
+ class UsageMetadata
548
+ include ::Google::Protobuf::MessageExts
549
+ extend ::Google::Protobuf::MessageExts::ClassMethods
550
+ end
551
+ end
357
552
  end
358
553
  end
359
554
  end
@@ -43,6 +43,9 @@ module Google
43
43
  # @!attribute [rw] launch_stage
44
44
  # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::LaunchStage]
45
45
  # Optional. Indicates the launch stage of the model.
46
+ # @!attribute [rw] version_state
47
+ # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::VersionState]
48
+ # Optional. Indicates the state of the model version.
46
49
  # @!attribute [r] publisher_model_template
47
50
  # @return [::String]
48
51
  # Optional. Output only. Immutable. Used to indicate this model has a
@@ -64,6 +67,14 @@ module Google
64
67
  # @!attribute [rw] resource_name
65
68
  # @return [::String]
66
69
  # The resource name of the Google Cloud resource.
70
+ # @!attribute [rw] use_case
71
+ # @deprecated This field is deprecated and may be removed in the next major version update.
72
+ # @return [::String]
73
+ # Use case (CUJ) of the resource.
74
+ # @!attribute [rw] description
75
+ # @deprecated This field is deprecated and may be removed in the next major version update.
76
+ # @return [::String]
77
+ # Description of the resource.
67
78
  class ResourceReference
68
79
  include ::Google::Protobuf::MessageExts
69
80
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -89,12 +100,18 @@ module Google
89
100
  # @!attribute [rw] open_notebook
90
101
  # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::RegionalResourceReferences]
91
102
  # Optional. Open notebook of the PublisherModel.
103
+ # @!attribute [rw] open_notebooks
104
+ # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::OpenNotebooks]
105
+ # Optional. Open notebooks of the PublisherModel.
92
106
  # @!attribute [rw] create_application
93
107
  # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::RegionalResourceReferences]
94
108
  # Optional. Create application using the PublisherModel.
95
109
  # @!attribute [rw] open_fine_tuning_pipeline
96
110
  # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::RegionalResourceReferences]
97
111
  # Optional. Open fine-tuning pipeline of the PublisherModel.
112
+ # @!attribute [rw] open_fine_tuning_pipelines
113
+ # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::OpenFineTuningPipelines]
114
+ # Optional. Open fine-tuning pipelines of the PublisherModel.
98
115
  # @!attribute [rw] open_prompt_tuning_pipeline
99
116
  # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::RegionalResourceReferences]
100
117
  # Optional. Open prompt-tuning pipeline of the PublisherModel.
@@ -104,6 +121,9 @@ module Google
104
121
  # @!attribute [rw] deploy
105
122
  # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::Deploy]
106
123
  # Optional. Deploy the PublisherModel to Vertex Endpoint.
124
+ # @!attribute [rw] deploy_gke
125
+ # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::DeployGke]
126
+ # Optional. Deploy PublisherModel to Google Kubernetes Engine.
107
127
  # @!attribute [rw] open_generation_ai_studio
108
128
  # @return [::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::RegionalResourceReferences]
109
129
  # Optional. Open in Generation AI Studio.
@@ -124,7 +144,16 @@ module Google
124
144
  # Required.
125
145
  # @!attribute [rw] title
126
146
  # @return [::String]
127
- # Required. The title of the regional resource reference.
147
+ # Required.
148
+ # @!attribute [rw] resource_title
149
+ # @return [::String]
150
+ # Optional. Title of the resource.
151
+ # @!attribute [rw] resource_use_case
152
+ # @return [::String]
153
+ # Optional. Use case (CUJ) of the resource.
154
+ # @!attribute [rw] resource_description
155
+ # @return [::String]
156
+ # Optional. Description of the resource.
128
157
  class RegionalResourceReferences
129
158
  include ::Google::Protobuf::MessageExts
130
159
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -151,6 +180,24 @@ module Google
151
180
  extend ::Google::Protobuf::MessageExts::ClassMethods
152
181
  end
153
182
 
183
+ # Open notebooks.
184
+ # @!attribute [rw] notebooks
185
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::RegionalResourceReferences>]
186
+ # Required. Regional resource references to notebooks.
187
+ class OpenNotebooks
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+ end
191
+
192
+ # Open fine tuning pipelines.
193
+ # @!attribute [rw] fine_tuning_pipelines
194
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::PublisherModel::CallToAction::RegionalResourceReferences>]
195
+ # Required. Regional resource references to fine tuning pipelines.
196
+ class OpenFineTuningPipelines
197
+ include ::Google::Protobuf::MessageExts
198
+ extend ::Google::Protobuf::MessageExts::ClassMethods
199
+ end
200
+
154
201
  # Model metadata that is needed for UploadModel or
155
202
  # DeployModel/CreateEndpoint requests.
156
203
  # @!attribute [rw] dedicated_resources
@@ -184,10 +231,23 @@ module Google
184
231
  # @!attribute [rw] title
185
232
  # @return [::String]
186
233
  # Required. The title of the regional resource reference.
234
+ # @!attribute [rw] public_artifact_uri
235
+ # @return [::String]
236
+ # Optional. The signed URI for ephemeral Cloud Storage access to model
237
+ # artifact.
187
238
  class Deploy
188
239
  include ::Google::Protobuf::MessageExts
189
240
  extend ::Google::Protobuf::MessageExts::ClassMethods
190
241
  end
242
+
243
+ # Configurations for PublisherModel GKE deployment
244
+ # @!attribute [rw] gke_yaml_configs
245
+ # @return [::Array<::String>]
246
+ # Optional. GKE deployment configuration in yaml format.
247
+ class DeployGke
248
+ include ::Google::Protobuf::MessageExts
249
+ extend ::Google::Protobuf::MessageExts::ClassMethods
250
+ end
191
251
  end
192
252
 
193
253
  # An enum representing the open source category of a PublisherModel.
@@ -231,6 +291,18 @@ module Google
231
291
  # Used to indicate the PublisherModel is at GA launch stage.
232
292
  GA = 4
233
293
  end
294
+
295
+ # An enum representing the state of the PublicModelVersion.
296
+ module VersionState
297
+ # The version state is unspecified.
298
+ VERSION_STATE_UNSPECIFIED = 0
299
+
300
+ # Used to indicate the version is stable.
301
+ VERSION_STATE_STABLE = 1
302
+
303
+ # Used to indicate the version is unstable.
304
+ VERSION_STATE_UNSTABLE = 2
305
+ end
234
306
  end
235
307
  end
236
308
  end
@@ -33,6 +33,22 @@ module Google
33
33
  include ::Google::Protobuf::MessageExts
34
34
  extend ::Google::Protobuf::MessageExts::ClassMethods
35
35
  end
36
+
37
+ # PscAutomatedEndpoints defines the output of the forwarding rule
38
+ # automatically created by each PscAutomationConfig.
39
+ # @!attribute [rw] project_id
40
+ # @return [::String]
41
+ # Corresponding project_id in pscAutomationConfigs
42
+ # @!attribute [rw] network
43
+ # @return [::String]
44
+ # Corresponding network in pscAutomationConfigs.
45
+ # @!attribute [rw] match_address
46
+ # @return [::String]
47
+ # Ip Address created by the automated forwarding rule.
48
+ class PscAutomatedEndpoints
49
+ include ::Google::Protobuf::MessageExts
50
+ extend ::Google::Protobuf::MessageExts::ClassMethods
51
+ end
36
52
  end
37
53
  end
38
54
  end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ # Tool details that the model may use to generate response.
25
+ #
26
+ # A `Tool` is a piece of code that enables the system to interact with
27
+ # external systems to perform an action, or set of actions, outside of
28
+ # knowledge and scope of the model.
29
+ # @!attribute [rw] function_declarations
30
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::FunctionDeclaration>]
31
+ # Optional. One or more function declarations to be passed to the model along
32
+ # with the current user query. Model may decide to call a subset of these
33
+ # functions by populating [FunctionCall][content.part.function_call] in the
34
+ # response. User should provide a
35
+ # [FunctionResponse][content.part.function_response] for each function call
36
+ # in the next turn. Based on the function responses, Model will generate the
37
+ # final response back to the user. Maximum 64 function declarations can be
38
+ # provided.
39
+ class Tool
40
+ include ::Google::Protobuf::MessageExts
41
+ extend ::Google::Protobuf::MessageExts::ClassMethods
42
+ end
43
+
44
+ # Structured representation of a function declaration as defined by the
45
+ # [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included
46
+ # in this declaration are the function name and parameters. This
47
+ # FunctionDeclaration is a representation of a block of code that can be used
48
+ # as a `Tool` by the model and executed by the client.
49
+ # @!attribute [rw] name
50
+ # @return [::String]
51
+ # Required. The name of the function to call.
52
+ # Must start with a letter or an underscore.
53
+ # Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum
54
+ # length of 64.
55
+ # @!attribute [rw] description
56
+ # @return [::String]
57
+ # Optional. Description and purpose of the function.
58
+ # Model uses it to decide how and whether to call the function.
59
+ # @!attribute [rw] parameters
60
+ # @return [::Google::Cloud::AIPlatform::V1::Schema]
61
+ # Optional. Describes the parameters to this function in JSON Schema Object
62
+ # format. Reflects the Open API 3.03 Parameter Object. string Key: the name
63
+ # of the parameter. Parameter names are case sensitive. Schema Value: the
64
+ # Schema defining the type used for the parameter. For function with no
65
+ # parameters, this can be left unset. Example with 1 required and 1 optional
66
+ # parameter: type: OBJECT properties:
67
+ # param1:
68
+ # type: STRING
69
+ # param2:
70
+ # type: INTEGER
71
+ # required:
72
+ # - param1
73
+ class FunctionDeclaration
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+ end
77
+
78
+ # A predicted [FunctionCall] returned from the model that contains a string
79
+ # representing the [FunctionDeclaration.name] and a structured JSON object
80
+ # containing the parameters and their values.
81
+ # @!attribute [rw] name
82
+ # @return [::String]
83
+ # Required. The name of the function to call.
84
+ # Matches [FunctionDeclaration.name].
85
+ # @!attribute [rw] args
86
+ # @return [::Google::Protobuf::Struct]
87
+ # Optional. Required. The function parameters and values in JSON object
88
+ # format. See [FunctionDeclaration.parameters] for parameter details.
89
+ class FunctionCall
90
+ include ::Google::Protobuf::MessageExts
91
+ extend ::Google::Protobuf::MessageExts::ClassMethods
92
+ end
93
+
94
+ # The result output from a [FunctionCall] that contains a string representing
95
+ # the [FunctionDeclaration.name] and a structured JSON object containing any
96
+ # output from the function is used as context to the model. This should contain
97
+ # the result of a [FunctionCall] made based on model prediction.
98
+ # @!attribute [rw] name
99
+ # @return [::String]
100
+ # Required. The name of the function to call.
101
+ # Matches [FunctionDeclaration.name] and [FunctionCall.name].
102
+ # @!attribute [rw] response
103
+ # @return [::Google::Protobuf::Struct]
104
+ # Required. The function response in JSON object format.
105
+ class FunctionResponse
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
109
+ end
110
+ end
111
+ end
112
+ end
@@ -129,7 +129,8 @@ module Google
129
129
  #
130
130
  # Note: this functionality is not currently available in the official
131
131
  # protobuf release, and it is not used for type URLs beginning with
132
- # type.googleapis.com.
132
+ # type.googleapis.com. As of May 2023, there are no widely used type server
133
+ # implementations and no plans to implement one.
133
134
  #
134
135
  # Schemes other than `http`, `https` (or the empty scheme) might be
135
136
  # used with implementation specific semantics.