# Natural Language V1 API - Class Google::Cloud::Language::V1::ClassificationModelOptions (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.11.0 0.10.2 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Natural Language V1 API class Google::Cloud::Language::V1::ClassificationModelOptions.

Model options available for classification requests.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #v1_model

    def v1_model() -> ::Google::Cloud::Language::V1::ClassificationModelOptions::V1Model

**Returns**

- ([::Google::Cloud::Language::V1::ClassificationModelOptions::V1Model](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-language-v1/latest/Google-Cloud-Language-V1-ClassificationModelOptions-V1Model)) --- Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future.


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

### #v1_model=

    def v1_model=(value) -> ::Google::Cloud::Language::V1::ClassificationModelOptions::V1Model

**Parameter**

- **value** ([::Google::Cloud::Language::V1::ClassificationModelOptions::V1Model](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-language-v1/latest/Google-Cloud-Language-V1-ClassificationModelOptions-V1Model)) --- Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future.


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

- ([::Google::Cloud::Language::V1::ClassificationModelOptions::V1Model](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-language-v1/latest/Google-Cloud-Language-V1-ClassificationModelOptions-V1Model)) --- Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future.


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

### #v2_model

    def v2_model() -> ::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model

**Returns**

- ([::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-language-v1/latest/Google-Cloud-Language-V1-ClassificationModelOptions-V2Model)) --- Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.


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

### #v2_model=

    def v2_model=(value) -> ::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model

**Parameter**

- **value** ([::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-language-v1/latest/Google-Cloud-Language-V1-ClassificationModelOptions-V2Model)) --- Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.


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

- ([::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-language-v1/latest/Google-Cloud-Language-V1-ClassificationModelOptions-V2Model)) --- Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.


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