# `Kayrock.Produce.V1.Response`
[🔗](https://github.com/kafkaex/kayrock/blob/main/lib/generated/produce.ex#L1472)

Kayrock-generated response struct for Kafka `produce` v1 API
messages

The schema of this API is
```
[
  responses: {:array,
   [
     topic: :string,
     partition_responses: {:array,
      [partition: :int32, error_code: :int16, base_offset: :int64]}
   ]},
  throttle_time_ms: :int32
]
```

# `t`

```elixir
@type t() :: %Kayrock.Produce.V1.Response{
  correlation_id: integer(),
  responses: [
    %{
      topic: nil | binary(),
      partition_responses: [
        %{
          partition: nil | integer(),
          error_code: nil | integer(),
          base_offset: nil | integer()
        }
      ]
    }
  ],
  throttle_time_ms: nil | integer()
}
```

Response struct for the Kafka `produce` API v1

# `api_key`

```elixir
@spec api_key() :: integer()
```

Returns the Kafka API key for this API

# `api_vsn`

```elixir
@spec api_vsn() :: integer()
```

Returns the API version (1) implemented by this module

# `deserialize`

```elixir
@spec deserialize(binary()) :: {t(), binary()}
```

Deserialize data for this version of this API

# `schema`

```elixir
@spec schema() :: term()
```

Returns the schema of this message

See [above](#).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
