# Cloud Translation V3 API - Class Google::Cloud::Translate::V3::Glossary (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::Glossary.

Represents a glossary built from user-provided data.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Optional. The display name of the glossary.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The display name of the glossary.
**Returns**

- (::String) --- Optional. The display name of the glossary.

### #end_time

    def end_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. When the glossary creation was finished.

### #entry_count

    def entry_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of entries defined in the glossary.

### #input_config

    def input_config() -> ::Google::Cloud::Translate::V3::GlossaryInputConfig

**Returns**

- ([::Google::Cloud::Translate::V3::GlossaryInputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-GlossaryInputConfig)) --- Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

### #input_config=

    def input_config=(value) -> ::Google::Cloud::Translate::V3::GlossaryInputConfig

**Parameter**

- **value** ([::Google::Cloud::Translate::V3::GlossaryInputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-GlossaryInputConfig)) --- Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
**Returns**

- ([::Google::Cloud::Translate::V3::GlossaryInputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-GlossaryInputConfig)) --- Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

### #language_codes_set

    def language_codes_set() -> ::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet

**Returns**

- ([::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-Glossary-LanguageCodesSet)) --- Used with equivalent term set glossaries.


  Note: The following fields are mutually exclusive: `language_codes_set`, `language_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #language_codes_set=

    def language_codes_set=(value) -> ::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet

**Parameter**

- **value** ([::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-Glossary-LanguageCodesSet)) --- Used with equivalent term set glossaries.


  Note: The following fields are mutually exclusive: `language_codes_set`, `language_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-Glossary-LanguageCodesSet)) --- Used with equivalent term set glossaries.


  Note: The following fields are mutually exclusive: `language_codes_set`, `language_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #language_pair

    def language_pair() -> ::Google::Cloud::Translate::V3::Glossary::LanguageCodePair

**Returns**

- ([::Google::Cloud::Translate::V3::Glossary::LanguageCodePair](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-Glossary-LanguageCodePair)) --- Used with unidirectional glossaries.


  Note: The following fields are mutually exclusive: `language_pair`, `language_codes_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #language_pair=

    def language_pair=(value) -> ::Google::Cloud::Translate::V3::Glossary::LanguageCodePair

**Parameter**

- **value** ([::Google::Cloud::Translate::V3::Glossary::LanguageCodePair](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-Glossary-LanguageCodePair)) --- Used with unidirectional glossaries.


  Note: The following fields are mutually exclusive: `language_pair`, `language_codes_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Translate::V3::Glossary::LanguageCodePair](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-Glossary-LanguageCodePair)) --- Used with unidirectional glossaries.


  Note: The following fields are mutually exclusive: `language_pair`, `language_codes_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
**Returns**

- (::String) --- Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.

### #submit_time

    def submit_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. When CreateGlossary was called.