# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec.

Content generation specification.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #frequency_penalty

    def frequency_penalty() -> ::Float

**Returns**

- (::Float) --- If specified, custom value for frequency penalty will be used.

### #frequency_penalty=

    def frequency_penalty=(value) -> ::Float

**Parameter**

- **value** (::Float) --- If specified, custom value for frequency penalty will be used.
**Returns**

- (::Float) --- If specified, custom value for frequency penalty will be used.

### #language_code

    def language_code() -> ::String

**Returns**

- (::String) --- Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).

### #language_code=

    def language_code=(value) -> ::String

**Parameter**

- **value** (::String) --- Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
**Returns**

- (::String) --- Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).

### #max_output_tokens

    def max_output_tokens() -> ::Integer

**Returns**

- (::Integer) --- If specified, custom value for max output tokens will be used.

### #max_output_tokens=

    def max_output_tokens=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- If specified, custom value for max output tokens will be used.
**Returns**

- (::Integer) --- If specified, custom value for max output tokens will be used.

### #model_id

    def model_id() -> ::String

**Returns**

- (::String) --- Specifies which Vertex model id to use for generation.

### #model_id=

    def model_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Specifies which Vertex model id to use for generation.
**Returns**

- (::String) --- Specifies which Vertex model id to use for generation.

### #presence_penalty

    def presence_penalty() -> ::Float

**Returns**

- (::Float) --- If specified, custom value for presence penalty will be used.

### #presence_penalty=

    def presence_penalty=(value) -> ::Float

**Parameter**

- **value** (::Float) --- If specified, custom value for presence penalty will be used.
**Returns**

- (::Float) --- If specified, custom value for presence penalty will be used.

### #seed

    def seed() -> ::Integer

**Returns**

- (::Integer) --- If specified, custom value for the seed will be used.

### #seed=

    def seed=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- If specified, custom value for the seed will be used.
**Returns**

- (::Integer) --- If specified, custom value for the seed will be used.

### #temperature

    def temperature() -> ::Float

**Returns**

- (::Float) --- If specified, custom value for the temperature will be used.

### #temperature=

    def temperature=(value) -> ::Float

**Parameter**

- **value** (::Float) --- If specified, custom value for the temperature will be used.
**Returns**

- (::Float) --- If specified, custom value for the temperature will be used.

### #top_k

    def top_k() -> ::Integer

**Returns**

- (::Integer) --- If specified, custom value for top-k sampling will be used.

### #top_k=

    def top_k=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- If specified, custom value for top-k sampling will be used.
**Returns**

- (::Integer) --- If specified, custom value for top-k sampling will be used.

### #top_p

    def top_p() -> ::Float

**Returns**

- (::Float) --- If specified, custom value for nucleus sampling will be used.

### #top_p=

    def top_p=(value) -> ::Float

**Parameter**

- **value** (::Float) --- If specified, custom value for nucleus sampling will be used.
**Returns**

- (::Float) --- If specified, custom value for nucleus sampling will be used.