Class CometSpec (3.56.0)

public final class CometSpec extends GeneratedMessageV3 implements CometSpecOrBuilder

Spec for Comet metric.

Protobuf type google.cloud.aiplatform.v1.CometSpec

Implements

CometSpecOrBuilder

Static Fields

SOURCE_LANGUAGE_FIELD_NUMBER

public static final int SOURCE_LANGUAGE_FIELD_NUMBER
Field Value
Type Description
int

TARGET_LANGUAGE_FIELD_NUMBER

public static final int TARGET_LANGUAGE_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CometSpec getDefaultInstance()
Returns
Type Description
CometSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CometSpec.Builder newBuilder()
Returns
Type Description
CometSpec.Builder

newBuilder(CometSpec prototype)

public static CometSpec.Builder newBuilder(CometSpec prototype)
Parameter
Name Description
prototype CometSpec
Returns
Type Description
CometSpec.Builder

parseDelimitedFrom(InputStream input)

public static CometSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CometSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CometSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CometSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CometSpec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CometSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CometSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CometSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CometSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CometSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CometSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CometSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CometSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CometSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CometSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CometSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CometSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CometSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CometSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CometSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CometSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CometSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CometSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CometSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CometSpec> parser()
Returns
Type Description
Parser<CometSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CometSpec getDefaultInstanceForType()
Returns
Type Description
CometSpec

getParserForType()

public Parser<CometSpec> getParserForType()
Returns
Type Description
Parser<CometSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceLanguage()

public String getSourceLanguage()

Optional. Source language in BCP-47 format.

string source_language = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sourceLanguage.

getSourceLanguageBytes()

public ByteString getSourceLanguageBytes()

Optional. Source language in BCP-47 format.

string source_language = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sourceLanguage.

getTargetLanguage()

public String getTargetLanguage()

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

string target_language = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The targetLanguage.

getTargetLanguageBytes()

public ByteString getTargetLanguageBytes()

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

string target_language = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for targetLanguage.

getVersion()

public CometSpec.CometVersion getVersion()

Required. Which version to use for evaluation.

optional .google.cloud.aiplatform.v1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CometSpec.CometVersion

The version.

getVersionValue()

public int getVersionValue()

Required. Which version to use for evaluation.

optional .google.cloud.aiplatform.v1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for version.

hasVersion()

public boolean hasVersion()

Required. Which version to use for evaluation.

optional .google.cloud.aiplatform.v1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the version field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CometSpec.Builder newBuilderForType()
Returns
Type Description
CometSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CometSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CometSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CometSpec.Builder toBuilder()
Returns
Type Description
CometSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException