// ShareGroupHeartbeatRequest is a request for share groups.
ShareGroupHeartbeatRequest => key 76, max version 1, flexible v0+, group coordinator
  // GroupID is the group ID.
  GroupID: string
  // MemberID is generated by the consumer. The member id must be kept during
  // the entire lifetime of the consumer process.
  MemberID: string
  // MemberEpoch is the current member epoch; 0 to join the group; -1 to leave
  // the group.
  MemberEpoch: int32
  // RackID is the rack ID; null if not provided or unchanging since the last
  // heartbeat.
  RackID: nullable-string
  // SubscribedTopicNames are the subscribed topics; null if unchanging since
  // the last heartbeat.
  SubscribedTopicNames: nullable[string]

// ShareGroupHeartbeatResponse is a response for a ShareGroupHeartbeatRequest.
//
// Version 0 was used for early access of KIP-932 in Apache Kafka 4.0 but
// removed in Apacke Kafka 4.1.
//
// Version 1 is the initial stable version (KIP-932).
ShareGroupHeartbeatResponse =>
  ThrottleMillis
  // ErrorCode is any error for the response.
  //
  // Supported errors:
  // - GROUP_AUTHORIZATION_FAILED (version 0+)
  // - TOPIC_AUTHORIZATION_FAILED (version 1+)
  // - NOT_COORDINATOR (version 0+)
  // - COORDINATOR_NOT_AVAILABLE (version 0+)
  // - COORDINATOR_LOAD_IN_PROGRESS (version 0+)
  // - UNKNOWN_MEMBER_ID (version 0+)
  // - GROUP_MAX_SIZE_REACHED (version 0+)
  // - INVALID_REQUEST (version 0+)
  ErrorCode: int16
  // ErrorMessage is an optional message if there is an error.
  ErrorMessage: nullable-string
  // MemberID is the ID generated by the consumer and provided by the consumer
  // for all requests.
  MemberID: nullable-string
  // MemberEpoch is the member epoch.
  MemberEpoch: int32
  // HeartbeatIntervalMillis is the heartbeat interval in milliseconds.
  HeartbeatIntervalMillis: int32
  // Assignment is the assignment, if provided.
  Assignment: nullable=>
    // TopicPartitions contains the partitions assigned to the member.
    TopicPartitions: [=>]
      TopicID: uuid
      Partitions: [int32]
