# Retail V2 API - Class Google::Cloud::Retail::V2::GenerativeQuestionConfig (v2.9.0)

2.9.0 (latest) 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0 1.0.1 0.21.0 0.20.0 0.19.0 0.18.2 0.17.0 0.16.1 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::GenerativeQuestionConfig.

Configuration for a single generated question.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allowed_in_conversation

    def allowed_in_conversation() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Whether the question is asked at serving time.

### #allowed_in_conversation=

    def allowed_in_conversation=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Whether the question is asked at serving time.
**Returns**

- (::Boolean) --- Optional. Whether the question is asked at serving time.

### #catalog

    def catalog() -> ::String

**Returns**

- (::String) --- Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

### #catalog=

    def catalog=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
**Returns**

- (::String) --- Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

### #example_values

    def example_values() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. Values that can be used to answer the question.

### #facet

    def facet() -> ::String

**Returns**

- (::String) --- Required. The facet to which the question is associated.

### #facet=

    def facet=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The facet to which the question is associated.
**Returns**

- (::String) --- Required. The facet to which the question is associated.

### #final_question

    def final_question() -> ::String

**Returns**

- (::String) --- Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.

### #final_question=

    def final_question=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.
**Returns**

- (::String) --- Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.

### #frequency

    def frequency() -> ::Float

**Returns**

- (::Float) --- Output only. The ratio of how often a question was asked.

### #generated_question

    def generated_question() -> ::String

**Returns**

- (::String) --- Output only. The LLM generated question.