// AddRaftVoter, added for KIP-853, allows you to manage your KRaft
// controllers.
// Version 1, introduced in Kafka 4.2, adds AckWhenCommitted (KIP-1186).
AddRaftVoterRequest => key 80, max version 1, flexible v0+
  // The cluster ID of the request.
  ClusterID: nullable-string
  TimeoutMillis
  // The replica ID of the voter getting added to the topic partition.
  VoterID: int32
  // The directory ID of the voter getting added to the topic partition.
  VoterDirectoryID: uuid
  // The endpoints that can be used to communicate with the voter.
  Listeners: [=>]
    // The name of the endpoint.
    Name: string
    // The hostname.
    Host: string
    // The port.
    Port: uint16
  // When true, return a response after the new voter set is committed.
  // Otherwise, return after the leader writes the changes locally.
  AckWhenCommitted: bool(true) // v1+

AddRaftVoterResponse =>
  ThrottleMillis
  ErrorCode: int16
  ErrorMessage: nullable-string
