Package com.google.cloud.aiplatform.v1
Interface ModalityTokenCountOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ModalityTokenCount,ModalityTokenCount.Builder
@Generated
public interface ModalityTokenCountOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe modality associated with this token count.intThe modality associated with this token count.intNumber of tokens.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getModalityValue
int getModalityValue()The modality associated with this token count.
.google.cloud.aiplatform.v1.Modality modality = 1;- Returns:
- The enum numeric value on the wire for modality.
-
getModality
Modality getModality()The modality associated with this token count.
.google.cloud.aiplatform.v1.Modality modality = 1;- Returns:
- The modality.
-
getTokenCount
int getTokenCount()Number of tokens.
int32 token_count = 2;- Returns:
- The tokenCount.
-