Package com.google.cloud.aiplatform.v1
Class UsageMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UsageMetadata.Builder>
com.google.cloud.aiplatform.v1.UsageMetadata.Builder
- All Implemented Interfaces:
UsageMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UsageMetadata
public static final class UsageMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UsageMetadata.Builder>
implements UsageMetadataOrBuilder
Usage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics.Protobuf type
google.cloud.aiplatform.v1.UsageMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllCacheTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only.addAllCandidatesTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only.addAllPromptTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only.addAllToolUsePromptTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only.addCacheTokensDetails(int index, ModalityTokenCount value) Output only.addCacheTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.Output only.addCacheTokensDetails(ModalityTokenCount.Builder builderForValue) Output only.Output only.addCacheTokensDetailsBuilder(int index) Output only.addCandidatesTokensDetails(int index, ModalityTokenCount value) Output only.addCandidatesTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.Output only.addCandidatesTokensDetails(ModalityTokenCount.Builder builderForValue) Output only.Output only.addCandidatesTokensDetailsBuilder(int index) Output only.addPromptTokensDetails(int index, ModalityTokenCount value) Output only.addPromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.Output only.addPromptTokensDetails(ModalityTokenCount.Builder builderForValue) Output only.Output only.addPromptTokensDetailsBuilder(int index) Output only.addToolUsePromptTokensDetails(int index, ModalityTokenCount value) Output only.addToolUsePromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.Output only.addToolUsePromptTokensDetails(ModalityTokenCount.Builder builderForValue) Output only.Output only.addToolUsePromptTokensDetailsBuilder(int index) Output only.build()clear()Output only.Output only.The total number of tokens in the generated candidates.Output only.The total number of tokens in the prompt.Output only.Output only.Output only.Output only.The total number of tokens for the entire request.Output only.intOutput only.getCacheTokensDetails(int index) Output only.getCacheTokensDetailsBuilder(int index) Output only.Output only.intOutput only.Output only.getCacheTokensDetailsOrBuilder(int index) Output only.List<? extends ModalityTokenCountOrBuilder>Output only.intThe total number of tokens in the generated candidates.getCandidatesTokensDetails(int index) Output only.getCandidatesTokensDetailsBuilder(int index) Output only.Output only.intOutput only.Output only.getCandidatesTokensDetailsOrBuilder(int index) Output only.List<? extends ModalityTokenCountOrBuilder>Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe total number of tokens in the prompt.getPromptTokensDetails(int index) Output only.getPromptTokensDetailsBuilder(int index) Output only.Output only.intOutput only.Output only.getPromptTokensDetailsOrBuilder(int index) Output only.List<? extends ModalityTokenCountOrBuilder>Output only.intOutput only.intOutput only.getToolUsePromptTokensDetails(int index) Output only.getToolUsePromptTokensDetailsBuilder(int index) Output only.Output only.intOutput only.Output only.getToolUsePromptTokensDetailsOrBuilder(int index) Output only.List<? extends ModalityTokenCountOrBuilder>Output only.intThe total number of tokens for the entire request.Output only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(UsageMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeCacheTokensDetails(int index) Output only.removeCandidatesTokensDetails(int index) Output only.removePromptTokensDetails(int index) Output only.removeToolUsePromptTokensDetails(int index) Output only.setCachedContentTokenCount(int value) Output only.setCacheTokensDetails(int index, ModalityTokenCount value) Output only.setCacheTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.setCandidatesTokenCount(int value) The total number of tokens in the generated candidates.setCandidatesTokensDetails(int index, ModalityTokenCount value) Output only.setCandidatesTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.setPromptTokenCount(int value) The total number of tokens in the prompt.setPromptTokensDetails(int index, ModalityTokenCount value) Output only.setPromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.setThoughtsTokenCount(int value) Output only.setToolUsePromptTokenCount(int value) Output only.setToolUsePromptTokensDetails(int index, ModalityTokenCount value) Output only.setToolUsePromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.setTotalTokenCount(int value) The total number of tokens for the entire request.Output only.setTrafficTypeValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UsageMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UsageMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UsageMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UsageMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UsageMetadata.Builder>
-
mergeFrom
public UsageMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UsageMetadata.Builder>- Throws:
IOException
-
getPromptTokenCount
public int getPromptTokenCount()The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content.
int32 prompt_token_count = 1;- Specified by:
getPromptTokenCountin interfaceUsageMetadataOrBuilder- Returns:
- The promptTokenCount.
-
setPromptTokenCount
The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content.
int32 prompt_token_count = 1;- Parameters:
value- The promptTokenCount to set.- Returns:
- This builder for chaining.
-
clearPromptTokenCount
The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content.
int32 prompt_token_count = 1;- Returns:
- This builder for chaining.
-
getCandidatesTokenCount
public int getCandidatesTokenCount()The total number of tokens in the generated candidates.
int32 candidates_token_count = 2;- Specified by:
getCandidatesTokenCountin interfaceUsageMetadataOrBuilder- Returns:
- The candidatesTokenCount.
-
setCandidatesTokenCount
The total number of tokens in the generated candidates.
int32 candidates_token_count = 2;- Parameters:
value- The candidatesTokenCount to set.- Returns:
- This builder for chaining.
-
clearCandidatesTokenCount
The total number of tokens in the generated candidates.
int32 candidates_token_count = 2;- Returns:
- This builder for chaining.
-
getTotalTokenCount
public int getTotalTokenCount()The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`.
int32 total_token_count = 3;- Specified by:
getTotalTokenCountin interfaceUsageMetadataOrBuilder- Returns:
- The totalTokenCount.
-
setTotalTokenCount
The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`.
int32 total_token_count = 3;- Parameters:
value- The totalTokenCount to set.- Returns:
- This builder for chaining.
-
clearTotalTokenCount
The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`.
int32 total_token_count = 3;- Returns:
- This builder for chaining.
-
getToolUsePromptTokenCount
public int getToolUsePromptTokenCount()Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.
int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getToolUsePromptTokenCountin interfaceUsageMetadataOrBuilder- Returns:
- The toolUsePromptTokenCount.
-
setToolUsePromptTokenCount
Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.
int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The toolUsePromptTokenCount to set.- Returns:
- This builder for chaining.
-
clearToolUsePromptTokenCount
Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.
int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getThoughtsTokenCount
public int getThoughtsTokenCount()Output only. The number of tokens that were part of the model's generated "thoughts" output, if applicable.
int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getThoughtsTokenCountin interfaceUsageMetadataOrBuilder- Returns:
- The thoughtsTokenCount.
-
setThoughtsTokenCount
Output only. The number of tokens that were part of the model's generated "thoughts" output, if applicable.
int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The thoughtsTokenCount to set.- Returns:
- This builder for chaining.
-
clearThoughtsTokenCount
Output only. The number of tokens that were part of the model's generated "thoughts" output, if applicable.
int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getCachedContentTokenCount
public int getCachedContentTokenCount()Output only. The number of tokens in the cached content that was used for this request.
int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCachedContentTokenCountin interfaceUsageMetadataOrBuilder- Returns:
- The cachedContentTokenCount.
-
setCachedContentTokenCount
Output only. The number of tokens in the cached content that was used for this request.
int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The cachedContentTokenCount to set.- Returns:
- This builder for chaining.
-
clearCachedContentTokenCount
Output only. The number of tokens in the cached content that was used for this request.
int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getPromptTokensDetailsList
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsListin interfaceUsageMetadataOrBuilder
-
getPromptTokensDetailsCount
public int getPromptTokensDetailsCount()Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsCountin interfaceUsageMetadataOrBuilder
-
getPromptTokensDetails
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsin interfaceUsageMetadataOrBuilder
-
setPromptTokensDetails
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setPromptTokensDetails
public UsageMetadata.Builder setPromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetails
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetails
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetails
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetails
public UsageMetadata.Builder addPromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllPromptTokensDetails
public UsageMetadata.Builder addAllPromptTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearPromptTokensDetails
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removePromptTokensDetails
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetailsBuilder
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetailsOrBuilder
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsOrBuilderin interfaceUsageMetadataOrBuilder
-
getPromptTokensDetailsOrBuilderList
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsOrBuilderListin interfaceUsageMetadataOrBuilder
-
addPromptTokensDetailsBuilder
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetailsBuilder
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetailsBuilderList
Output only. A detailed breakdown of the token count for each modality in the prompt.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCacheTokensDetailsList
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsListin interfaceUsageMetadataOrBuilder
-
getCacheTokensDetailsCount
public int getCacheTokensDetailsCount()Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsCountin interfaceUsageMetadataOrBuilder
-
getCacheTokensDetails
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsin interfaceUsageMetadataOrBuilder
-
setCacheTokensDetails
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCacheTokensDetails
public UsageMetadata.Builder setCacheTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetails
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetails
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetails
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetails
public UsageMetadata.Builder addCacheTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllCacheTokensDetails
public UsageMetadata.Builder addAllCacheTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCacheTokensDetails
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeCacheTokensDetails
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCacheTokensDetailsBuilder
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCacheTokensDetailsOrBuilder
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsOrBuilderin interfaceUsageMetadataOrBuilder
-
getCacheTokensDetailsOrBuilderList
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsOrBuilderListin interfaceUsageMetadataOrBuilder
-
addCacheTokensDetailsBuilder
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetailsBuilder
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCacheTokensDetailsBuilderList
Output only. A detailed breakdown of the token count for each modality in the cached content.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCandidatesTokensDetailsList
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsListin interfaceUsageMetadataOrBuilder
-
getCandidatesTokensDetailsCount
public int getCandidatesTokensDetailsCount()Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsCountin interfaceUsageMetadataOrBuilder
-
getCandidatesTokensDetails
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsin interfaceUsageMetadataOrBuilder
-
setCandidatesTokensDetails
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCandidatesTokensDetails
public UsageMetadata.Builder setCandidatesTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetails
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetails
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetails
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetails
public UsageMetadata.Builder addCandidatesTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllCandidatesTokensDetails
public UsageMetadata.Builder addAllCandidatesTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCandidatesTokensDetails
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeCandidatesTokensDetails
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCandidatesTokensDetailsBuilder
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCandidatesTokensDetailsOrBuilder
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsOrBuilderin interfaceUsageMetadataOrBuilder
-
getCandidatesTokensDetailsOrBuilderList
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsOrBuilderListin interfaceUsageMetadataOrBuilder
-
addCandidatesTokensDetailsBuilder
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetailsBuilder
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCandidatesTokensDetailsBuilderList
Output only. A detailed breakdown of the token count for each modality in the generated candidates.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getToolUsePromptTokensDetailsList
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getToolUsePromptTokensDetailsListin interfaceUsageMetadataOrBuilder
-
getToolUsePromptTokensDetailsCount
public int getToolUsePromptTokensDetailsCount()Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getToolUsePromptTokensDetailsCountin interfaceUsageMetadataOrBuilder
-
getToolUsePromptTokensDetails
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getToolUsePromptTokensDetailsin interfaceUsageMetadataOrBuilder
-
setToolUsePromptTokensDetails
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setToolUsePromptTokensDetails
public UsageMetadata.Builder setToolUsePromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addToolUsePromptTokensDetails
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addToolUsePromptTokensDetails
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addToolUsePromptTokensDetails
public UsageMetadata.Builder addToolUsePromptTokensDetails(ModalityTokenCount.Builder builderForValue) Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addToolUsePromptTokensDetails
public UsageMetadata.Builder addToolUsePromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllToolUsePromptTokensDetails
public UsageMetadata.Builder addAllToolUsePromptTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearToolUsePromptTokensDetails
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeToolUsePromptTokensDetails
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getToolUsePromptTokensDetailsBuilder
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getToolUsePromptTokensDetailsOrBuilder
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getToolUsePromptTokensDetailsOrBuilderin interfaceUsageMetadataOrBuilder
-
getToolUsePromptTokensDetailsOrBuilderList
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getToolUsePromptTokensDetailsOrBuilderListin interfaceUsageMetadataOrBuilder
-
addToolUsePromptTokensDetailsBuilder
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addToolUsePromptTokensDetailsBuilder
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getToolUsePromptTokensDetailsBuilderList
Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getTrafficTypeValue
public int getTrafficTypeValue()Output only. The traffic type for this request.
.google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTrafficTypeValuein interfaceUsageMetadataOrBuilder- Returns:
- The enum numeric value on the wire for trafficType.
-
setTrafficTypeValue
Output only. The traffic type for this request.
.google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for trafficType to set.- Returns:
- This builder for chaining.
-
getTrafficType
Output only. The traffic type for this request.
.google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTrafficTypein interfaceUsageMetadataOrBuilder- Returns:
- The trafficType.
-
setTrafficType
Output only. The traffic type for this request.
.google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The trafficType to set.- Returns:
- This builder for chaining.
-
clearTrafficType
Output only. The traffic type for this request.
.google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-