public static final class ModalityTokenCount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModalityTokenCount.Builder> implements ModalityTokenCountOrBuilder
Represents token counting info for a single modality.Protobuf type
google.cloud.vertexai.v1.ModalityTokenCount| Modifier and Type | Method and Description |
|---|---|
ModalityTokenCount.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ModalityTokenCount |
build() |
ModalityTokenCount |
buildPartial() |
ModalityTokenCount.Builder |
clear() |
ModalityTokenCount.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ModalityTokenCount.Builder |
clearModality()
The modality associated with this token count.
|
ModalityTokenCount.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ModalityTokenCount.Builder |
clearTokenCount()
Number of tokens.
|
ModalityTokenCount.Builder |
clone() |
ModalityTokenCount |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Modality |
getModality()
The modality associated with this token count.
|
int |
getModalityValue()
The modality associated with this token count.
|
int |
getTokenCount()
Number of tokens.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ModalityTokenCount.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ModalityTokenCount.Builder |
mergeFrom(com.google.protobuf.Message other) |
ModalityTokenCount.Builder |
mergeFrom(ModalityTokenCount other) |
ModalityTokenCount.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ModalityTokenCount.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ModalityTokenCount.Builder |
setModality(Modality value)
The modality associated with this token count.
|
ModalityTokenCount.Builder |
setModalityValue(int value)
The modality associated with this token count.
|
ModalityTokenCount.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ModalityTokenCount.Builder |
setTokenCount(int value)
Number of tokens.
|
ModalityTokenCount.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, 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<ModalityTokenCount.Builder>public ModalityTokenCount.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ModalityTokenCount.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<ModalityTokenCount.Builder>public ModalityTokenCount getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ModalityTokenCount build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ModalityTokenCount buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ModalityTokenCount.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ModalityTokenCount.Builder>public ModalityTokenCount.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<ModalityTokenCount.Builder>public ModalityTokenCount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ModalityTokenCount.Builder>public ModalityTokenCount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ModalityTokenCount.Builder>public ModalityTokenCount.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<ModalityTokenCount.Builder>public ModalityTokenCount.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<ModalityTokenCount.Builder>public ModalityTokenCount.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ModalityTokenCount.Builder>public ModalityTokenCount.Builder mergeFrom(ModalityTokenCount other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ModalityTokenCount.Builder>public ModalityTokenCount.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<ModalityTokenCount.Builder>IOExceptionpublic int getModalityValue()
The modality associated with this token count.
.google.cloud.vertexai.v1.Modality modality = 1;getModalityValue in interface ModalityTokenCountOrBuilderpublic ModalityTokenCount.Builder setModalityValue(int value)
The modality associated with this token count.
.google.cloud.vertexai.v1.Modality modality = 1;value - The enum numeric value on the wire for modality to set.public Modality getModality()
The modality associated with this token count.
.google.cloud.vertexai.v1.Modality modality = 1;getModality in interface ModalityTokenCountOrBuilderpublic ModalityTokenCount.Builder setModality(Modality value)
The modality associated with this token count.
.google.cloud.vertexai.v1.Modality modality = 1;value - The modality to set.public ModalityTokenCount.Builder clearModality()
The modality associated with this token count.
.google.cloud.vertexai.v1.Modality modality = 1;public int getTokenCount()
Number of tokens.
int32 token_count = 2;getTokenCount in interface ModalityTokenCountOrBuilderpublic ModalityTokenCount.Builder setTokenCount(int value)
Number of tokens.
int32 token_count = 2;value - The tokenCount to set.public ModalityTokenCount.Builder clearTokenCount()
Number of tokens.
int32 token_count = 2;public final ModalityTokenCount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ModalityTokenCount.Builder>public final ModalityTokenCount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ModalityTokenCount.Builder>Copyright © 2025 Google LLC. All rights reserved.