# Cloud Translation V3 API - Class Google::Cloud::Translate::V3::Model (v1.10.0)

1.10.0 (latest) 1.9.0 1.8.0 1.7.1 1.6.0 1.5.2 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.12.0 0.11.2 0.10.0 0.9.0 0.8.0 0.7.3 0.6.0 0.5.2 0.4.2 Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::Model.

A trained translation model.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Protobuf-Timestamp)) --- Output only. Timestamp when the model resource was created, which is also when the training started.

### #dataset

    def dataset() -> ::String

**Returns**

- (::String) --- The dataset from which the model is trained, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`

### #dataset=

    def dataset=(value) -> ::String

**Parameter**

- **value** (::String) --- The dataset from which the model is trained, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
**Returns**

- (::String) --- The dataset from which the model is trained, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
**Returns**

- (::String) --- The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The resource name of the model, in form of `projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the model, in form of `projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
**Returns**

- (::String) --- The resource name of the model, in form of `projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`

### #source_language_code

    def source_language_code() -> ::String

**Returns**

- (::String) --- Output only. The BCP-47 language code of the source language.

### #target_language_code

    def target_language_code() -> ::String

**Returns**

- (::String) --- Output only. The BCP-47 language code of the target language.

### #test_example_count

    def test_example_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. Number of examples (sentence pairs) used to test the model.

### #train_example_count

    def train_example_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. Number of examples (sentence pairs) used to train the model.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Protobuf-Timestamp)) --- Output only. Timestamp when this model was last updated.

### #validate_example_count

    def validate_example_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. Number of examples (sentence pairs) used to validate the model.