public static final class GenerateContentResponse.UsageMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder> implements GenerateContentResponse.UsageMetadataOrBuilder
Usage metadata about response(s).Protobuf type
google.cloud.vertexai.v1.GenerateContentResponse.UsageMetadatagetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerateContentResponse.UsageMetadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerateContentResponse.UsageMetadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerateContentResponse.UsageMetadata.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata.Builder mergeFrom(GenerateContentResponse.UsageMetadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public GenerateContentResponse.UsageMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateContentResponse.UsageMetadata.Builder>IOExceptionpublic 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;getPromptTokenCount in interface GenerateContentResponse.UsageMetadataOrBuilderpublic GenerateContentResponse.UsageMetadata.Builder setPromptTokenCount(int value)
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;value - The promptTokenCount to set.public GenerateContentResponse.UsageMetadata.Builder 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;public int getCandidatesTokenCount()
Number of tokens in the response(s).
int32 candidates_token_count = 2;getCandidatesTokenCount in interface GenerateContentResponse.UsageMetadataOrBuilderpublic GenerateContentResponse.UsageMetadata.Builder setCandidatesTokenCount(int value)
Number of tokens in the response(s).
int32 candidates_token_count = 2;value - The candidatesTokenCount to set.public GenerateContentResponse.UsageMetadata.Builder clearCandidatesTokenCount()
Number of tokens in the response(s).
int32 candidates_token_count = 2;public int getTotalTokenCount()
Total token count for prompt and response candidates.
int32 total_token_count = 3;getTotalTokenCount in interface GenerateContentResponse.UsageMetadataOrBuilderpublic GenerateContentResponse.UsageMetadata.Builder setTotalTokenCount(int value)
Total token count for prompt and response candidates.
int32 total_token_count = 3;value - The totalTokenCount to set.public GenerateContentResponse.UsageMetadata.Builder clearTotalTokenCount()
Total token count for prompt and response candidates.
int32 total_token_count = 3;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];
getCachedContentTokenCount in interface GenerateContentResponse.UsageMetadataOrBuilderpublic GenerateContentResponse.UsageMetadata.Builder setCachedContentTokenCount(int value)
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];
value - The cachedContentTokenCount to set.public GenerateContentResponse.UsageMetadata.Builder 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];
public List<ModalityTokenCount> getPromptTokensDetailsList()
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPromptTokensDetailsList in interface GenerateContentResponse.UsageMetadataOrBuilderpublic int getPromptTokensDetailsCount()
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPromptTokensDetailsCount in interface GenerateContentResponse.UsageMetadataOrBuilderpublic ModalityTokenCount getPromptTokensDetails(int index)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPromptTokensDetails in interface GenerateContentResponse.UsageMetadataOrBuilderpublic GenerateContentResponse.UsageMetadata.Builder setPromptTokensDetails(int index, ModalityTokenCount value)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addPromptTokensDetails(ModalityTokenCount value)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addPromptTokensDetails(int index, ModalityTokenCount value)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addPromptTokensDetails(ModalityTokenCount.Builder builderForValue)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addAllPromptTokensDetails(Iterable<? extends ModalityTokenCount> values)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder clearPromptTokensDetails()
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder removePromptTokensDetails(int index)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ModalityTokenCount.Builder getPromptTokensDetailsBuilder(int index)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder(int index)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPromptTokensDetailsOrBuilder in interface GenerateContentResponse.UsageMetadataOrBuilderpublic List<? extends ModalityTokenCountOrBuilder> getPromptTokensDetailsOrBuilderList()
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPromptTokensDetailsOrBuilderList in interface GenerateContentResponse.UsageMetadataOrBuilderpublic ModalityTokenCount.Builder addPromptTokensDetailsBuilder()
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ModalityTokenCount.Builder addPromptTokensDetailsBuilder(int index)
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<ModalityTokenCount.Builder> getPromptTokensDetailsBuilderList()
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<ModalityTokenCount> getCacheTokensDetailsList()
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCacheTokensDetailsList in interface GenerateContentResponse.UsageMetadataOrBuilderpublic int getCacheTokensDetailsCount()
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCacheTokensDetailsCount in interface GenerateContentResponse.UsageMetadataOrBuilderpublic ModalityTokenCount getCacheTokensDetails(int index)
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCacheTokensDetails in interface GenerateContentResponse.UsageMetadataOrBuilderpublic GenerateContentResponse.UsageMetadata.Builder setCacheTokensDetails(int index, ModalityTokenCount value)
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addCacheTokensDetails(ModalityTokenCount value)
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addCacheTokensDetails(ModalityTokenCount.Builder builderForValue)
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder clearCacheTokensDetails()
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder removeCacheTokensDetails(int index)
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ModalityTokenCount.Builder getCacheTokensDetailsBuilder(int index)
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ModalityTokenCountOrBuilder getCacheTokensDetailsOrBuilder(int index)
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCacheTokensDetailsOrBuilder in interface GenerateContentResponse.UsageMetadataOrBuilderpublic List<? extends ModalityTokenCountOrBuilder> getCacheTokensDetailsOrBuilderList()
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCacheTokensDetailsOrBuilderList in interface GenerateContentResponse.UsageMetadataOrBuilderpublic ModalityTokenCount.Builder addCacheTokensDetailsBuilder()
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ModalityTokenCount.Builder addCacheTokensDetailsBuilder(int index)
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<ModalityTokenCount.Builder> getCacheTokensDetailsBuilderList()
Output only. List of modalities of the cached content in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<ModalityTokenCount> getCandidatesTokensDetailsList()
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCandidatesTokensDetailsList in interface GenerateContentResponse.UsageMetadataOrBuilderpublic int getCandidatesTokensDetailsCount()
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCandidatesTokensDetailsCount in interface GenerateContentResponse.UsageMetadataOrBuilderpublic ModalityTokenCount getCandidatesTokensDetails(int index)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCandidatesTokensDetails in interface GenerateContentResponse.UsageMetadataOrBuilderpublic GenerateContentResponse.UsageMetadata.Builder setCandidatesTokensDetails(int index, ModalityTokenCount value)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder setCandidatesTokensDetails(int index, ModalityTokenCount.Builder builderForValue)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addCandidatesTokensDetails(ModalityTokenCount value)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addCandidatesTokensDetails(int index, ModalityTokenCount value)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addCandidatesTokensDetails(ModalityTokenCount.Builder builderForValue)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addCandidatesTokensDetails(int index, ModalityTokenCount.Builder builderForValue)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder addAllCandidatesTokensDetails(Iterable<? extends ModalityTokenCount> values)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder clearCandidatesTokensDetails()
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GenerateContentResponse.UsageMetadata.Builder removeCandidatesTokensDetails(int index)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ModalityTokenCount.Builder getCandidatesTokensDetailsBuilder(int index)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ModalityTokenCountOrBuilder getCandidatesTokensDetailsOrBuilder(int index)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCandidatesTokensDetailsOrBuilder in interface GenerateContentResponse.UsageMetadataOrBuilderpublic List<? extends ModalityTokenCountOrBuilder> getCandidatesTokensDetailsOrBuilderList()
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCandidatesTokensDetailsOrBuilderList in interface GenerateContentResponse.UsageMetadataOrBuilderpublic ModalityTokenCount.Builder addCandidatesTokensDetailsBuilder()
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ModalityTokenCount.Builder addCandidatesTokensDetailsBuilder(int index)
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<ModalityTokenCount.Builder> getCandidatesTokensDetailsBuilderList()
Output only. List of modalities that were returned in the response.
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final GenerateContentResponse.UsageMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>public final GenerateContentResponse.UsageMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder>Copyright © 2025 Google LLC. All rights reserved.