Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ModalityTokenCount.
Represents token counting info for a single modality.
Generated from protobuf message google.cloud.aiplatform.v1.ModalityTokenCount
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ modality |
int
The modality associated with this token count. |
↳ token_count |
int
Number of tokens. |
getModality
The modality associated with this token count.
Returns | |
---|---|
Type | Description |
int |
setModality
The modality associated with this token count.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getTokenCount
Number of tokens.
Returns | |
---|---|
Type | Description |
int |
setTokenCount
Number of tokens.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |