Skip to content

Commit 1667225

Browse files
feat: Add traffic_type, tool_use_prompt_tokens_details to message GenerateContentResponse.UsageMetadata (#32443)
feat: add max_concurrent_active_run_count field to Schedule message PiperOrigin-RevId: 868308825 Source-Link: googleapis/googleapis@ce85add Source-Link: googleapis/googleapis-gen@e5914b1 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWFpX3BsYXRmb3JtLXYxLy5Pd2xCb3QueWFtbCIsImgiOiJlNTkxNGIxYTFmNGQyZmQzZWYzNzc0NDEyNWY0NjI3Y2UwNTFiODAwIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add `traffic_type, tool_use_prompt_tokens_details` to message `GenerateContentResponse.UsageMetadata` PiperOrigin-RevId: 871498028 Source-Link: googleapis/googleapis@7d37a81 Source-Link: googleapis/googleapis-gen@39ddaa3 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWFpX3BsYXRmb3JtLXYxLy5Pd2xCb3QueWFtbCIsImgiOiIzOWRkYWEzMzQwMzhlZDcyZmQyMTIwZGQ0ZWQ1YzY2Zjc3OTE3YTYwIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 6303bad commit 1667225

4 files changed

Lines changed: 37 additions & 2 deletions

File tree

google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/schedule_pb.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,36 @@ module BlockedReason
663663
# @!attribute [r] candidates_tokens_details
664664
# @return [::Array<::Google::Cloud::AIPlatform::V1::ModalityTokenCount>]
665665
# Output only. List of modalities that were returned in the response.
666+
# @!attribute [r] tool_use_prompt_tokens_details
667+
# @return [::Array<::Google::Cloud::AIPlatform::V1::ModalityTokenCount>]
668+
# Output only. A detailed breakdown by modality of the token counts from
669+
# the results of tool executions, which are provided back to the model as
670+
# input.
671+
# @!attribute [r] traffic_type
672+
# @return [::Google::Cloud::AIPlatform::V1::GenerateContentResponse::UsageMetadata::TrafficType]
673+
# Output only. The traffic type for this request.
666674
class UsageMetadata
667675
include ::Google::Protobuf::MessageExts
668676
extend ::Google::Protobuf::MessageExts::ClassMethods
677+
678+
# The type of traffic that this request was processed with, indicating
679+
# which quota is consumed.
680+
module TrafficType
681+
# Unspecified request traffic type.
682+
TRAFFIC_TYPE_UNSPECIFIED = 0
683+
684+
# The request was processed using Pay-As-You-Go quota.
685+
ON_DEMAND = 1
686+
687+
# Type for Priority Pay-As-You-Go traffic.
688+
ON_DEMAND_PRIORITY = 3
689+
690+
# Type for Flex traffic.
691+
ON_DEMAND_FLEX = 4
692+
693+
# Type for Provisioned Throughput traffic.
694+
PROVISIONED_THROUGHPUT = 2
695+
end
669696
end
670697
end
671698

google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/schedule.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ module V1
103103
# Required. Maximum number of runs that can be started concurrently for this
104104
# Schedule. This is the limit for starting the scheduled requests and not the
105105
# execution of the operations/jobs created by the requests (if applicable).
106+
# @!attribute [rw] max_concurrent_active_run_count
107+
# @return [::Integer]
108+
# Optional. Specifies the maximum number of active runs that can be executed
109+
# concurrently for this Schedule. This limits the number of runs that can be
110+
# in a non-terminal state at the same time.
111+
# Currently, this field is only supported for requests of type
112+
# CreatePipelineJobRequest.
106113
# @!attribute [rw] allow_queueing
107114
# @return [::Boolean]
108115
# Optional. Whether new scheduled runs can be queued when max_concurrent_runs

0 commit comments

Comments
 (0)