Package com.google.cloud.aiplatform.v1
Class GenerateContentResponse.UsageMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateContentResponse.UsageMetadata.Builder>
com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata.Builder
- All Implemented Interfaces:
GenerateContentResponse.UsageMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateContentResponse.UsageMetadata
public static final class GenerateContentResponse.UsageMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenerateContentResponse.UsageMetadata.Builder>
implements GenerateContentResponse.UsageMetadataOrBuilder
Usage metadata about response(s).Protobuf type
google.cloud.aiplatform.v1.GenerateContentResponse.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.Number of tokens in the response(s).Output only.Number of tokens in the request.Output only.Output only.Output only.Total token count for prompt and response candidates.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.intNumber of tokens in the response(s).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.DescriptorintNumber of tokens in the request.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.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.intTotal token count for prompt and response candidates.Output only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(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) Number of tokens in the response(s).setCandidatesTokensDetails(int index, ModalityTokenCount value) Output only.setCandidatesTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.setPromptTokenCount(int value) Number of tokens in the request.setPromptTokensDetails(int index, ModalityTokenCount value) Output only.setPromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.setThoughtsTokenCount(int value) Output only.setToolUsePromptTokensDetails(int index, ModalityTokenCount value) Output only.setToolUsePromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only.setTotalTokenCount(int value) Total token count for prompt and response candidates.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<GenerateContentResponse.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<GenerateContentResponse.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<GenerateContentResponse.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<GenerateContentResponse.UsageMetadata.Builder>
-
mergeFrom
public GenerateContentResponse.UsageMetadata.Builder mergeFrom(GenerateContentResponse.UsageMetadata other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerateContentResponse.UsageMetadata.Builder>
-
mergeFrom
public GenerateContentResponse.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<GenerateContentResponse.UsageMetadata.Builder>- Throws:
IOException
-
getPromptTokenCount
public int getPromptTokenCount()Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.
int32 prompt_token_count = 1;- Specified by:
getPromptTokenCountin interfaceGenerateContentResponse.UsageMetadataOrBuilder- Returns:
- The promptTokenCount.
-
setPromptTokenCount
Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this 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
Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.
int32 prompt_token_count = 1;- Returns:
- This builder for chaining.
-
getCandidatesTokenCount
public int getCandidatesTokenCount()Number of tokens in the response(s).
int32 candidates_token_count = 2;- Specified by:
getCandidatesTokenCountin interfaceGenerateContentResponse.UsageMetadataOrBuilder- Returns:
- The candidatesTokenCount.
-
setCandidatesTokenCount
Number of tokens in the response(s).
int32 candidates_token_count = 2;- Parameters:
value- The candidatesTokenCount to set.- Returns:
- This builder for chaining.
-
clearCandidatesTokenCount
Number of tokens in the response(s).
int32 candidates_token_count = 2;- Returns:
- This builder for chaining.
-
getThoughtsTokenCount
public int getThoughtsTokenCount()Output only. Number of tokens present in thoughts output.
int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getThoughtsTokenCountin interfaceGenerateContentResponse.UsageMetadataOrBuilder- Returns:
- The thoughtsTokenCount.
-
setThoughtsTokenCount
Output only. Number of tokens present in thoughts output.
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. Number of tokens present in thoughts output.
int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getTotalTokenCount
public int getTotalTokenCount()Total token count for prompt and response candidates.
int32 total_token_count = 3;- Specified by:
getTotalTokenCountin interfaceGenerateContentResponse.UsageMetadataOrBuilder- Returns:
- The totalTokenCount.
-
setTotalTokenCount
Total token count for prompt and response candidates.
int32 total_token_count = 3;- Parameters:
value- The totalTokenCount to set.- Returns:
- This builder for chaining.
-
clearTotalTokenCount
Total token count for prompt and response candidates.
int32 total_token_count = 3;- Returns:
- This builder for chaining.
-
getCachedContentTokenCount
public int getCachedContentTokenCount()Output only. Number of tokens in the cached part in the input (the cached content).
int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCachedContentTokenCountin interfaceGenerateContentResponse.UsageMetadataOrBuilder- Returns:
- The cachedContentTokenCount.
-
setCachedContentTokenCount
Output only. Number of tokens in the cached part in the input (the cached content).
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. Number of tokens in the cached part in the input (the cached content).
int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getPromptTokensDetailsList
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsListin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
getPromptTokensDetailsCount
public int getPromptTokensDetailsCount()Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsCountin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
getPromptTokensDetails
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
setPromptTokensDetails
public GenerateContentResponse.UsageMetadata.Builder setPromptTokensDetails(int index, ModalityTokenCount value) Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setPromptTokensDetails
public GenerateContentResponse.UsageMetadata.Builder setPromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addPromptTokensDetails(ModalityTokenCount value) Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addPromptTokensDetails(int index, ModalityTokenCount value) Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addPromptTokensDetails(ModalityTokenCount.Builder builderForValue) Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addPromptTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllPromptTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addAllPromptTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearPromptTokensDetails
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removePromptTokensDetails
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetailsBuilder
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetailsOrBuilder
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsOrBuilderin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
getPromptTokensDetailsOrBuilderList
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromptTokensDetailsOrBuilderListin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
addPromptTokensDetailsBuilder
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPromptTokensDetailsBuilder
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetailsBuilderList
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCacheTokensDetailsList
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsListin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
getCacheTokensDetailsCount
public int getCacheTokensDetailsCount()Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsCountin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
getCacheTokensDetails
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
setCacheTokensDetails
public GenerateContentResponse.UsageMetadata.Builder setCacheTokensDetails(int index, ModalityTokenCount value) Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCacheTokensDetails
public GenerateContentResponse.UsageMetadata.Builder setCacheTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addCacheTokensDetails(ModalityTokenCount value) Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addCacheTokensDetails(int index, ModalityTokenCount value) Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addCacheTokensDetails(ModalityTokenCount.Builder builderForValue) Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addCacheTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllCacheTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addAllCacheTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCacheTokensDetails
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeCacheTokensDetails
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCacheTokensDetailsBuilder
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCacheTokensDetailsOrBuilder
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsOrBuilderin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
getCacheTokensDetailsOrBuilderList
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCacheTokensDetailsOrBuilderListin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
addCacheTokensDetailsBuilder
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCacheTokensDetailsBuilder
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCacheTokensDetailsBuilderList
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCandidatesTokensDetailsList
Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsListin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
getCandidatesTokensDetailsCount
public int getCandidatesTokensDetailsCount()Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsCountin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
getCandidatesTokensDetails
Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
setCandidatesTokensDetails
public GenerateContentResponse.UsageMetadata.Builder setCandidatesTokensDetails(int index, ModalityTokenCount value) Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCandidatesTokensDetails
public GenerateContentResponse.UsageMetadata.Builder setCandidatesTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addCandidatesTokensDetails(ModalityTokenCount value) Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addCandidatesTokensDetails(int index, ModalityTokenCount value) Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addCandidatesTokensDetails(ModalityTokenCount.Builder builderForValue) Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addCandidatesTokensDetails(int index, ModalityTokenCount.Builder builderForValue) Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllCandidatesTokensDetails
public GenerateContentResponse.UsageMetadata.Builder addAllCandidatesTokensDetails(Iterable<? extends ModalityTokenCount> values) Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCandidatesTokensDetails
Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeCandidatesTokensDetails
Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCandidatesTokensDetailsBuilder
Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCandidatesTokensDetailsOrBuilder
Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsOrBuilderin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
getCandidatesTokensDetailsOrBuilderList
Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCandidatesTokensDetailsOrBuilderListin interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
addCandidatesTokensDetailsBuilder
Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCandidatesTokensDetailsBuilder
Output only. List of modalities that were returned in the response.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCandidatesTokensDetailsBuilderList
Output only. List of modalities that were returned in the response.
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 interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
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 interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
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 interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
setToolUsePromptTokensDetails
public GenerateContentResponse.UsageMetadata.Builder setToolUsePromptTokensDetails(int index, ModalityTokenCount value) 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 GenerateContentResponse.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
public GenerateContentResponse.UsageMetadata.Builder addToolUsePromptTokensDetails(ModalityTokenCount value) 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 GenerateContentResponse.UsageMetadata.Builder addToolUsePromptTokensDetails(int index, ModalityTokenCount value) 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 GenerateContentResponse.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 GenerateContentResponse.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 GenerateContentResponse.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 interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
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 interfaceGenerateContentResponse.UsageMetadataOrBuilder
-
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.GenerateContentResponse.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTrafficTypeValuein interfaceGenerateContentResponse.UsageMetadataOrBuilder- Returns:
- The enum numeric value on the wire for trafficType.
-
setTrafficTypeValue
Output only. The traffic type for this request.
.google.cloud.aiplatform.v1.GenerateContentResponse.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.GenerateContentResponse.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTrafficTypein interfaceGenerateContentResponse.UsageMetadataOrBuilder- Returns:
- The trafficType.
-
setTrafficType
public GenerateContentResponse.UsageMetadata.Builder setTrafficType(GenerateContentResponse.UsageMetadata.TrafficType value) Output only. The traffic type for this request.
.google.cloud.aiplatform.v1.GenerateContentResponse.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.GenerateContentResponse.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-