Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class AiPlatformManagedModelUsageMetric.
The usage metric that the SKU applies to.
Generated from protobuf message google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformManagedModelUsageFee.AiPlatformManagedModelUsageMetric
Namespace
Google \ Cloud \ CommerceProducer \ V1beta \ Sku \ SkuPrice \ AiPlatformManagedModelUsageFeeMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ input_tokens_metric |
AiPlatformManagedModelUsageMetric\InputTokensMetric
Output only. Input tokens read from the prediction endpoint input. |
↳ cache_read_input_tokens_metric |
AiPlatformManagedModelUsageMetric\CacheReadInputTokensMetric
Output only. Input tokens read from the cache. |
↳ cache_write_input_tokens_metric |
AiPlatformManagedModelUsageMetric\CacheWriteInputTokensMetric
Output only. Input tokens written to the cache. |
↳ output_tokens_metric |
AiPlatformManagedModelUsageMetric\OutputTokensMetric
Output only. Output tokens returned from the prediction endpoint. |
↳ web_search_requests_metric |
AiPlatformManagedModelUsageMetric\WebSearchRequestsMetric
Output only. Web search requests executed by the model. |
getInputTokensMetric
Output only. Input tokens read from the prediction endpoint input.
| Returns | |
|---|---|
| Type | Description |
AiPlatformManagedModelUsageMetric\InputTokensMetric|null |
|
hasInputTokensMetric
setInputTokensMetric
Output only. Input tokens read from the prediction endpoint input.
| Parameter | |
|---|---|
| Name | Description |
var |
AiPlatformManagedModelUsageMetric\InputTokensMetric
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCacheReadInputTokensMetric
Output only. Input tokens read from the cache.
| Returns | |
|---|---|
| Type | Description |
AiPlatformManagedModelUsageMetric\CacheReadInputTokensMetric|null |
|
hasCacheReadInputTokensMetric
setCacheReadInputTokensMetric
Output only. Input tokens read from the cache.
| Parameter | |
|---|---|
| Name | Description |
var |
AiPlatformManagedModelUsageMetric\CacheReadInputTokensMetric
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCacheWriteInputTokensMetric
Output only. Input tokens written to the cache.
| Returns | |
|---|---|
| Type | Description |
AiPlatformManagedModelUsageMetric\CacheWriteInputTokensMetric|null |
|
hasCacheWriteInputTokensMetric
setCacheWriteInputTokensMetric
Output only. Input tokens written to the cache.
| Parameter | |
|---|---|
| Name | Description |
var |
AiPlatformManagedModelUsageMetric\CacheWriteInputTokensMetric
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOutputTokensMetric
Output only. Output tokens returned from the prediction endpoint.
| Returns | |
|---|---|
| Type | Description |
AiPlatformManagedModelUsageMetric\OutputTokensMetric|null |
|
hasOutputTokensMetric
setOutputTokensMetric
Output only. Output tokens returned from the prediction endpoint.
| Parameter | |
|---|---|
| Name | Description |
var |
AiPlatformManagedModelUsageMetric\OutputTokensMetric
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWebSearchRequestsMetric
Output only. Web search requests executed by the model.
| Returns | |
|---|---|
| Type | Description |
AiPlatformManagedModelUsageMetric\WebSearchRequestsMetric|null |
|
hasWebSearchRequestsMetric
setWebSearchRequestsMetric
Output only. Web search requests executed by the model.
| Parameter | |
|---|---|
| Name | Description |
var |
AiPlatformManagedModelUsageMetric\WebSearchRequestsMetric
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetric
| Returns | |
|---|---|
| Type | Description |
string |
|