diff --git a/clients/ai_platform/README.md b/clients/ai_platform/README.md index f9f1da611c..0896d64084 100644 --- a/clients/ai_platform/README.md +++ b/clients/ai_platform/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_ai_platform, "~> 0.4"}] + [{:google_api_ai_platform, "~> 0.5"}] end ``` diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex index be0add43bb..48e9113364 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex @@ -36870,4 +36870,82 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}] ) end + + @doc """ + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation's parent resource. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - The standard list filter. + * `:pageSize` (*type:* `integer()`) - The standard list page size. + * `:pageToken` (*type:* `String.t`) - The standard list page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningListOperationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec aiplatform_projects_locations_tuning_jobs_operations_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AIPlatform.V1.Model.GoogleLongrunningListOperationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def aiplatform_projects_locations_tuning_jobs_operations_list( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}/operations", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningListOperationsResponse{}] + ) + end end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex index f32951c22a..ef04308618 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.AIPlatform.V1 do API client metadata for GoogleApi.AIPlatform.V1. """ - @discovery_revision "20240320" + @discovery_revision "20240322" def discovery_revision(), do: @discovery_revision end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/cloud_ai_nl_llm_proto_service_part.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/cloud_ai_nl_llm_proto_service_part.ex index ca99931d51..59ee13669e 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/cloud_ai_nl_llm_proto_service_part.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/cloud_ai_nl_llm_proto_service_part.ex @@ -26,6 +26,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePart do * `functionCall` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServiceFunctionCall.t`, *default:* `nil`) - Function call data. * `functionResponse` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServiceFunctionResponse.t`, *default:* `nil`) - Function response data. * `inlineData` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartBlob.t`, *default:* `nil`) - Inline bytes data + * `lmRootMetadata` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartLMRootMetadata.t`, *default:* `nil`) - Metadata provides extra info for building the LM Root request. Note: High enough tag number for internal only fields. * `text` (*type:* `String.t`, *default:* `nil`) - Text input. * `videoMetadata` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartVideoMetadata.t`, *default:* `nil`) - Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. """ @@ -42,6 +43,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePart do :functionResponse => GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServiceFunctionResponse.t() | nil, :inlineData => GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartBlob.t() | nil, + :lmRootMetadata => + GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartLMRootMetadata.t() | nil, :text => String.t() | nil, :videoMetadata => GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartVideoMetadata.t() | nil @@ -59,6 +62,11 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePart do ) field(:inlineData, as: GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartBlob) + + field(:lmRootMetadata, + as: GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartLMRootMetadata + ) + field(:text) field(:videoMetadata, diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/cloud_ai_nl_llm_proto_service_part_lm_root_metadata.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/cloud_ai_nl_llm_proto_service_part_lm_root_metadata.ex new file mode 100644 index 0000000000..bb0b390ac7 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/cloud_ai_nl_llm_proto_service_part_lm_root_metadata.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartLMRootMetadata do + @moduledoc """ + Metadata provides extra info for building the LM Root request. + + ## Attributes + + * `chunkId` (*type:* `String.t`, *default:* `nil`) - Chunk id that will be used when mapping the part to the LM Root's chunk. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :chunkId => String.t() | nil + } + + field(:chunkId) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartLMRootMetadata do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartLMRootMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.CloudAiNlLlmProtoServicePartLMRootMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_blob.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_blob.ex index 64b58387e4..a87d296fc4 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_blob.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_blob.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Blob do @moduledoc """ - Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. + Content blob. It's preferred to send as text directly rather than raw bytes. ## Attributes - * `data` (*type:* `String.t`, *default:* `nil`) - Required. Raw bytes for media formats. + * `data` (*type:* `String.t`, *default:* `nil`) - Required. Raw bytes. * `mimeType` (*type:* `String.t`, *default:* `nil`) - Required. The IANA standard MIME type of the source data. """ diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_deployed_model.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_deployed_model.ex index 1f63d68805..0383322a2c 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_deployed_model.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_deployed_model.ex @@ -25,6 +25,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DeployedModel do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when the DeployedModel was created. * `dedicatedResources` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DedicatedResources.t`, *default:* `nil`) - A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration. * `disableContainerLogging` (*type:* `boolean()`, *default:* `nil`) - For custom-trained Models and AutoML Tabular Models, the container of the DeployedModel instances will send `stderr` and `stdout` streams to Cloud Logging by default. Please note that the logs incur cost, which are subject to [Cloud Logging pricing](https://cloud.google.com/logging/pricing). User can disable container logging by setting this flag to true. + * `disableExplanations` (*type:* `boolean()`, *default:* `nil`) - If true, deploy the model without explainable feature, regardless the existence of Model.explanation_spec or explanation_spec. * `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the DeployedModel. If not provided upon creation, the Model's display_name is used. * `enableAccessLogging` (*type:* `boolean()`, *default:* `nil`) - If true, online prediction access logs are sent to Cloud Logging. These logs are like standard server access logs, containing information like timestamp and latency for each prediction request. Note that logs may incur a cost, especially if your project receives prediction requests at a high queries per second rate (QPS). Estimate your costs before enabling this option. * `explanationSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ExplanationSpec.t`, *default:* `nil`) - Explanation configuration for this DeployedModel. When deploying a Model using EndpointService.DeployModel, this value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of explanation_spec is not populated, the value of the same field of Model.explanation_spec is inherited. If the corresponding Model.explanation_spec is not populated, all fields of the explanation_spec will be used for the explanation configuration. @@ -45,6 +46,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DeployedModel do :dedicatedResources => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DedicatedResources.t() | nil, :disableContainerLogging => boolean() | nil, + :disableExplanations => boolean() | nil, :displayName => String.t() | nil, :enableAccessLogging => boolean() | nil, :explanationSpec => @@ -69,6 +71,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DeployedModel do ) field(:disableContainerLogging) + field(:disableExplanations) field(:displayName) field(:enableAccessLogging) diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store.ex index bb66c941ea..6c5cb14063 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store.ex @@ -23,9 +23,11 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStor * `bigtable` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreBigtable.t`, *default:* `nil`) - Contains settings for the Cloud Bigtable instance that will be created to serve featureValues for all FeatureViews under this FeatureOnlineStore. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this FeatureOnlineStore was created. + * `dedicatedServingEndpoint` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint.t`, *default:* `nil`) - Optional. The dedicated serving endpoint for this FeatureOnlineStore, which is different from common Vertex service endpoint. * `etag` (*type:* `String.t`, *default:* `nil`) - Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. * `labels` (*type:* `map()`, *default:* `nil`) - Optional. The labels with user-defined metadata to organize your FeatureOnlineStore. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureOnlineStore(System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + * `optimized` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized.t`, *default:* `nil`) - Contains settings for the Optimized store that will be created to serve featureValues for all FeatureViews under this FeatureOnlineStore. When choose Optimized storage type, need to set PrivateServiceConnectConfig.enable_private_service_connect to use private endpoint. Otherwise will use public endpoint by default. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the featureOnlineStore. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this FeatureOnlineStore was last updated. """ @@ -37,9 +39,15 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStor GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreBigtable.t() | nil, :createTime => DateTime.t() | nil, + :dedicatedServingEndpoint => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint.t() + | nil, :etag => String.t() | nil, :labels => map() | nil, :name => String.t() | nil, + :optimized => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized.t() + | nil, :state => String.t() | nil, :updateTime => DateTime.t() | nil } @@ -49,9 +57,20 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStor ) field(:createTime, as: DateTime) + + field(:dedicatedServingEndpoint, + as: + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint + ) + field(:etag) field(:labels, type: :map) field(:name) + + field(:optimized, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized + ) + field(:state) field(:updateTime, as: DateTime) end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store_dedicated_serving_endpoint.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store_dedicated_serving_endpoint.ex new file mode 100644 index 0000000000..856c80afa2 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store_dedicated_serving_endpoint.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint do + @moduledoc """ + The dedicated serving endpoint for this FeatureOnlineStore. Only need to set when you choose Optimized storage type. Public endpoint is provisioned by default. + + ## Attributes + + * `publicEndpointDomainName` (*type:* `String.t`, *default:* `nil`) - Output only. This field will be populated with the domain name to use for this FeatureOnlineStore + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :publicEndpointDomainName => String.t() | nil + } + + field(:publicEndpointDomainName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store_optimized.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store_optimized.ex new file mode 100644 index 0000000000..cc1479f729 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_online_store_optimized.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized do + @moduledoc """ + Optimized storage type + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view.ex index 455ac08787..253614929b 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view.ex @@ -25,6 +25,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureView do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this FeatureView was created. * `etag` (*type:* `String.t`, *default:* `nil`) - Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. * `featureRegistrySource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource.t`, *default:* `nil`) - Optional. Configures the features from a Feature Registry source that need to be loaded onto the FeatureOnlineStore. + * `indexConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfig.t`, *default:* `nil`) - Optional. Configuration for index preparation for vector search. It contains the required configurations to create an index from source data, so that approximate nearest neighbor (a.k.a ANN) algorithms search can be performed during online serving. * `labels` (*type:* `map()`, *default:* `nil`) - Optional. The labels with user-defined metadata to organize your FeatureViews. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureOnlineStore(System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * `syncConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewSyncConfig.t`, *default:* `nil`) - Configures when data is to be synced/updated for this FeatureView. At the end of the sync the latest featureValues for each entityId of this FeatureView are made ready for online serving. @@ -42,6 +43,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureView do :featureRegistrySource => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource.t() | nil, + :indexConfig => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfig.t() | nil, :labels => map() | nil, :name => String.t() | nil, :syncConfig => @@ -60,6 +63,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureView do as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource ) + field(:indexConfig, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfig + ) + field(:labels, type: :map) field(:name) diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view_index_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view_index_config.ex new file mode 100644 index 0000000000..3799eedcab --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view_index_config.ex @@ -0,0 +1,80 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfig do + @moduledoc """ + Configuration for vector indexing. + + ## Attributes + + * `bruteForceConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig.t`, *default:* `nil`) - Optional. Configuration options for using brute force search, which simply implements the standard linear search in the database for each query. It is primarily meant for benchmarking and to generate the ground truth for approximate search. + * `crowdingColumn` (*type:* `String.t`, *default:* `nil`) - Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by FeatureOnlineStoreService.SearchNearestEntities to diversify search results. If NearestNeighborQuery.per_crowding_attribute_neighbor_count is set to K in SearchNearestEntitiesRequest, it's guaranteed that no more than K entities of the same crowding attribute are returned in the response. + * `distanceMeasureType` (*type:* `String.t`, *default:* `nil`) - Optional. The distance measure used in nearest neighbor search. + * `embeddingColumn` (*type:* `String.t`, *default:* `nil`) - Optional. Column of embedding. This column contains the source data to create index for vector search. embedding_column must be set when using vector search. + * `embeddingDimension` (*type:* `integer()`, *default:* `nil`) - Optional. The number of dimensions of the input embedding. + * `filterColumns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Columns of features that're used to filter vector search results. + * `treeAhConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig.t`, *default:* `nil`) - Optional. Configuration options for the tree-AH algorithm (Shallow tree + Asymmetric Hashing). Please refer to this paper for more details: https://arxiv.org/abs/1908.10396 + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bruteForceConfig => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig.t() + | nil, + :crowdingColumn => String.t() | nil, + :distanceMeasureType => String.t() | nil, + :embeddingColumn => String.t() | nil, + :embeddingDimension => integer() | nil, + :filterColumns => list(String.t()) | nil, + :treeAhConfig => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig.t() + | nil + } + + field(:bruteForceConfig, + as: + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig + ) + + field(:crowdingColumn) + field(:distanceMeasureType) + field(:embeddingColumn) + field(:embeddingDimension) + field(:filterColumns, type: :list) + + field(:treeAhConfig, + as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfig do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view_index_config_brute_force_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view_index_config_brute_force_config.ex new file mode 100644 index 0000000000..0cd8ef0c47 --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view_index_config_brute_force_config.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig do + @moduledoc """ + Configuration options for using brute force search. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view_index_config_tree_ah_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view_index_config_tree_ah_config.ex new file mode 100644 index 0000000000..29edd2083f --- /dev/null +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_view_index_config_tree_ah_config.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig do + @moduledoc """ + Configuration options for the tree-AH algorithm. + + ## Attributes + + * `leafNodeEmbeddingCount` (*type:* `String.t`, *default:* `nil`) - Optional. Number of embeddings on each leaf node. The default value is 1000 if not set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :leafNodeEmbeddingCount => String.t() | nil + } + + field(:leafNodeEmbeddingCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig do + def decode(value, options) do + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generate_content_request.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generate_content_request.ex index be254e2207..5c869fe8db 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generate_content_request.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generate_content_request.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRe * `contents` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t)`, *default:* `nil`) - Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request. * `generationConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig.t`, *default:* `nil`) - Optional. Generation config. * `safetySettings` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SafetySetting.t)`, *default:* `nil`) - Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates. + * `systemInstruction` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t`, *default:* `nil`) - Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph. * `tools` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool.t)`, *default:* `nil`) - Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. """ @@ -36,6 +37,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRe GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig.t() | nil, :safetySettings => list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SafetySetting.t()) | nil, + :systemInstruction => + GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t() | nil, :tools => list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool.t()) | nil } @@ -50,6 +53,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRe type: :list ) + field(:systemInstruction, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content) field(:tools, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool, type: :list) end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generation_config.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generation_config.ex index 99805f9956..6c875ce51e 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generation_config.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generation_config.ex @@ -22,7 +22,9 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig ## Attributes * `candidateCount` (*type:* `integer()`, *default:* `nil`) - Optional. Number of candidates to generate. + * `frequencyPenalty` (*type:* `number()`, *default:* `nil`) - Optional. Frequency penalties. * `maxOutputTokens` (*type:* `integer()`, *default:* `nil`) - Optional. The maximum number of output tokens to generate per message. + * `presencePenalty` (*type:* `number()`, *default:* `nil`) - Optional. Positive penalties. * `stopSequences` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Stop sequences. * `temperature` (*type:* `number()`, *default:* `nil`) - Optional. Controls the randomness of predictions. * `topK` (*type:* `number()`, *default:* `nil`) - Optional. If specified, top-k sampling will be used. @@ -33,7 +35,9 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig @type t :: %__MODULE__{ :candidateCount => integer() | nil, + :frequencyPenalty => number() | nil, :maxOutputTokens => integer() | nil, + :presencePenalty => number() | nil, :stopSequences => list(String.t()) | nil, :temperature => number() | nil, :topK => number() | nil, @@ -41,7 +45,9 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig } field(:candidateCount) + field(:frequencyPenalty) field(:maxOutputTokens) + field(:presencePenalty) field(:stopSequences, type: :list) field(:temperature) field(:topK) diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_grounding_metadata.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_grounding_metadata.ex index b30a3bb4d6..e5d899ca79 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_grounding_metadata.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_grounding_metadata.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GroundingMetadata ## Attributes * `groundingAttributions` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GroundingAttribution.t)`, *default:* `nil`) - Optional. List of grounding attributions. + * `retrievalQueries` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Queries executed by the retrieval tools. * `webSearchQueries` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Web search queries for the following-up web search. """ @@ -31,6 +32,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GroundingMetadata :groundingAttributions => list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GroundingAttribution.t()) | nil, + :retrievalQueries => list(String.t()) | nil, :webSearchQueries => list(String.t()) | nil } @@ -39,6 +41,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GroundingMetadata type: :list ) + field(:retrievalQueries, type: :list) field(:webSearchQueries, type: :list) end diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/learning_genai_root_harm.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/learning_genai_root_harm.ex index ca34aaea21..0fa44624bf 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/learning_genai_root_harm.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/learning_genai_root_harm.ex @@ -26,6 +26,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarm do * `fringe` (*type:* `boolean()`, *default:* `nil`) - * `grailImageHarmType` (*type:* `GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmGrailImageHarmType.t`, *default:* `nil`) - * `grailTextHarmType` (*type:* `GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmGrailTextHarmType.t`, *default:* `nil`) - + * `imageChild` (*type:* `boolean()`, *default:* `nil`) - * `imageCsam` (*type:* `boolean()`, *default:* `nil`) - * `imagePedo` (*type:* `boolean()`, *default:* `nil`) - * `imagePorn` (*type:* `boolean()`, *default:* `nil`) - Image signals @@ -34,6 +35,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarm do * `safetycat` (*type:* `GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmSafetyCatCategories.t`, *default:* `nil`) - * `spii` (*type:* `GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmSpiiFilter.t`, *default:* `nil`) - Spii Filter uses buckets http://google3/google/privacy/dlp/v2/storage.proto;l=77;rcl=584719820 to classify the input. LMRoot converts the bucket into double score. For example the score for "POSSIBLE" is 3 / 5 = 0.6 . * `threshold` (*type:* `float()`, *default:* `nil`) - + * `videoFrameChild` (*type:* `boolean()`, *default:* `nil`) - * `videoFrameCsam` (*type:* `boolean()`, *default:* `nil`) - * `videoFramePedo` (*type:* `boolean()`, *default:* `nil`) - * `videoFramePorn` (*type:* `boolean()`, *default:* `nil`) - Video frame signals @@ -50,6 +52,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarm do GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmGrailImageHarmType.t() | nil, :grailTextHarmType => GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmGrailTextHarmType.t() | nil, + :imageChild => boolean() | nil, :imageCsam => boolean() | nil, :imagePedo => boolean() | nil, :imagePorn => boolean() | nil, @@ -59,6 +62,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarm do GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmSafetyCatCategories.t() | nil, :spii => GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmSpiiFilter.t() | nil, :threshold => float() | nil, + :videoFrameChild => boolean() | nil, :videoFrameCsam => boolean() | nil, :videoFramePedo => boolean() | nil, :videoFramePorn => boolean() | nil, @@ -77,6 +81,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarm do as: GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmGrailTextHarmType ) + field(:imageChild) field(:imageCsam) field(:imagePedo) field(:imagePorn) @@ -85,6 +90,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarm do field(:safetycat, as: GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmSafetyCatCategories) field(:spii, as: GoogleApi.AIPlatform.V1.Model.LearningGenaiRootHarmSpiiFilter) field(:threshold) + field(:videoFrameChild) field(:videoFrameCsam) field(:videoFramePedo) field(:videoFramePorn) diff --git a/clients/ai_platform/lib/google_api/ai_platform/v1/model/learning_genai_root_routing_decision_metadata_token_length_based_model_input_token_metadata.ex b/clients/ai_platform/lib/google_api/ai_platform/v1/model/learning_genai_root_routing_decision_metadata_token_length_based_model_input_token_metadata.ex index 4c7ee1d590..e5437470a5 100644 --- a/clients/ai_platform/lib/google_api/ai_platform/v1/model/learning_genai_root_routing_decision_metadata_token_length_based_model_input_token_metadata.ex +++ b/clients/ai_platform/lib/google_api/ai_platform/v1/model/learning_genai_root_routing_decision_metadata_token_length_based_model_input_token_metadata.ex @@ -23,17 +23,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.LearningGenaiRootRoutingDecisionMetadata * `computedInputTokenLength` (*type:* `integer()`, *default:* `nil`) - The length computed by backends using the formatter & tokenizer specific to the model * `modelId` (*type:* `String.t`, *default:* `nil`) - + * `pickedAsFallback` (*type:* `boolean()`, *default:* `nil`) - If true, the model was selected as a fallback, since no model met requirements. + * `selected` (*type:* `boolean()`, *default:* `nil`) - If true, the model was selected since it met the requriements. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :computedInputTokenLength => integer() | nil, - :modelId => String.t() | nil + :modelId => String.t() | nil, + :pickedAsFallback => boolean() | nil, + :selected => boolean() | nil } field(:computedInputTokenLength) field(:modelId) + field(:pickedAsFallback) + field(:selected) end defimpl Poison.Decoder, diff --git a/clients/ai_platform/mix.exs b/clients/ai_platform/mix.exs index 1a0329172f..f22209ba6c 100644 --- a/clients/ai_platform/mix.exs +++ b/clients/ai_platform/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.AIPlatform.Mixfile do use Mix.Project - @version "0.4.0" + @version "0.5.0" def project() do [