Google Cloud Ai Platform V1 Client - Class ModalityTokenCount (1.36.0)

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 \ V1

Methods

__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
Enum of type Modality .

setModality

The modality associated with this token count.

Parameter
Name
Description
var
int

Enum of type Modality .

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
Create a Mobile Website
View Site in Mobile | Classic
Share by: