Google Cloud Ai Platform V1 Client - Class CometSpec (1.13.1)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class CometSpec.

Spec for Comet metric.

Generated from protobuf message google.cloud.aiplatform.v1.CometSpec

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ version int

Required. Which version to use for evaluation.

↳ source_language string

Optional. Source language in BCP-47 format.

↳ target_language string

Optional. Target language in BCP-47 format. Covers both prediction and reference.

getVersion

Required. Which version to use for evaluation.

Returns
Type Description
int

hasVersion

clearVersion

setVersion

Required. Which version to use for evaluation.

Parameter
Name Description
var int
Returns
Type Description
$this

getSourceLanguage

Optional. Source language in BCP-47 format.

Returns
Type Description
string

setSourceLanguage

Optional. Source language in BCP-47 format.

Parameter
Name Description
var string
Returns
Type Description
$this

getTargetLanguage

Optional. Target language in BCP-47 format. Covers both prediction and reference.

Returns
Type Description
string

setTargetLanguage

Optional. Target language in BCP-47 format. Covers both prediction and reference.

Parameter
Name Description
var string
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.