Class TranslationModelMetadata (2.36.0)

public final class TranslationModelMetadata extends GeneratedMessageV3 implements TranslationModelMetadataOrBuilder

Model metadata that is specific to translation.

Protobuf type google.cloud.automl.v1beta1.TranslationModelMetadata

Static Fields

BASE_MODEL_FIELD_NUMBER

public static final int BASE_MODEL_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_LANGUAGE_CODE_FIELD_NUMBER

public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_LANGUAGE_CODE_FIELD_NUMBER

public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TranslationModelMetadata getDefaultInstance()
Returns
TypeDescription
TranslationModelMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TranslationModelMetadata.Builder newBuilder()
Returns
TypeDescription
TranslationModelMetadata.Builder

newBuilder(TranslationModelMetadata prototype)

public static TranslationModelMetadata.Builder newBuilder(TranslationModelMetadata prototype)
Parameter
NameDescription
prototypeTranslationModelMetadata
Returns
TypeDescription
TranslationModelMetadata.Builder

parseDelimitedFrom(InputStream input)

public static TranslationModelMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationModelMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TranslationModelMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TranslationModelMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TranslationModelMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TranslationModelMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TranslationModelMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationModelMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TranslationModelMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationModelMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TranslationModelMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TranslationModelMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationModelMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TranslationModelMetadata> parser()
Returns
TypeDescription
Parser<TranslationModelMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBaseModel()

public String getBaseModel()

The resource name of the model to use as a baseline to train the custom model. If unset, we use the default base model provided by Google Translate. Format: projects/{project_id}/locations/{location_id}/models/{model_id}

string base_model = 1;

Returns
TypeDescription
String

The baseModel.

getBaseModelBytes()

public ByteString getBaseModelBytes()

The resource name of the model to use as a baseline to train the custom model. If unset, we use the default base model provided by Google Translate. Format: projects/{project_id}/locations/{location_id}/models/{model_id}

string base_model = 1;

Returns
TypeDescription
ByteString

The bytes for baseModel.

getDefaultInstanceForType()

public TranslationModelMetadata getDefaultInstanceForType()
Returns
TypeDescription
TranslationModelMetadata

getParserForType()

public Parser<TranslationModelMetadata> getParserForType()
Returns
TypeDescription
Parser<TranslationModelMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceLanguageCode()

public String getSourceLanguageCode()

Output only. Inferred from the dataset. The source languge (The BCP-47 language code) that is used for training.

string source_language_code = 2;

Returns
TypeDescription
String

The sourceLanguageCode.

getSourceLanguageCodeBytes()

public ByteString getSourceLanguageCodeBytes()

Output only. Inferred from the dataset. The source languge (The BCP-47 language code) that is used for training.

string source_language_code = 2;

Returns
TypeDescription
ByteString

The bytes for sourceLanguageCode.

getTargetLanguageCode()

public String getTargetLanguageCode()

Output only. The target languge (The BCP-47 language code) that is used for training.

string target_language_code = 3;

Returns
TypeDescription
String

The targetLanguageCode.

getTargetLanguageCodeBytes()

public ByteString getTargetLanguageCodeBytes()

Output only. The target languge (The BCP-47 language code) that is used for training.

string target_language_code = 3;

Returns
TypeDescription
ByteString

The bytes for targetLanguageCode.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TranslationModelMetadata.Builder newBuilderForType()
Returns
TypeDescription
TranslationModelMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TranslationModelMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TranslationModelMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TranslationModelMetadata.Builder toBuilder()
Returns
TypeDescription
TranslationModelMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException