Class MetricxSpec (3.55.0)

public final class MetricxSpec extends GeneratedMessageV3 implements MetricxSpecOrBuilder

Spec for MetricX metric.

Protobuf type google.cloud.aiplatform.v1.MetricxSpec

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 MetricxSpec getDefaultInstance()
Returns
Type Description
MetricxSpec

getDescriptor()

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

newBuilder()

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

newBuilder(MetricxSpec prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public MetricxSpec getDefaultInstanceForType()
Returns
Type Description
MetricxSpec

getParserForType()

public Parser<MetricxSpec> getParserForType()
Returns
Type Description
Parser<MetricxSpec>
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 MetricxSpec.MetricxVersion getVersion()

Required. Which version to use for evaluation.

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

Returns
Type Description
MetricxSpec.MetricxVersion

The version.

getVersionValue()

public int getVersionValue()

Required. Which version to use for evaluation.

optional .google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion 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.MetricxSpec.MetricxVersion 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 MetricxSpec.Builder newBuilderForType()
Returns
Type Description
MetricxSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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