kafka-clients 1.0 内部请求接口文档

AddOffsetsToTxnRequest

version:0

nametypedefaultValuedocString
transactional_idSTRINGnullThe transactional id corresponding to the transaction.
producer_idINT64nullCurrent producer id in use by the transactional id.
producer_epochINT16nullCurrent epoch associated with the producer id.
group_idSTRINGnullThe unique group identifier

AddPartitionsToTxnRequest

version:0

nametypedefaultValuedocString
transactional_idSTRINGnullThe transactional id corresponding to the transaction.
producer_idINT64nullCurrent producer id in use by the transactional id.
producer_epochINT16nullCurrent epoch associated with the producer id.
topicsARRAY({topic:STRING,partitions:ARRAY(INT32)})nullThe partitions to add to the transaction.

AlterConfigsRequest

version:0

nametypedefaultValuedocString
resourcesARRAY({resource_type:INT8,resource_name:STRING,config_entries:ARRAY({config_name:STRING,config_value:NULLABLE_STRING})})nullAn array of resources to update with the provided configs.
validate_onlyBOOLEANnullnull

AlterReplicaLogDirsRequest

version:0

nametypedefaultValuedocString
log_dirsARRAY({log_dir:STRING,topics:ARRAY({topic:STRING,partitions:ARRAY(INT32)})})nullnull

ApiVersionsRequest

version:0

nametypedefaultValuedocString

version:1

nametypedefaultValuedocString

ControlledShutdownRequest

version:0

nametypedefaultValuedocString
broker_idINT32nullThe id of the broker for which controlled shutdown has been requested.

version:1

nametypedefaultValuedocString
broker_idINT32nullThe id of the broker for which controlled shutdown has been requested.

CreateAclsRequest

version:0

nametypedefaultValuedocString
creationsARRAY({resource_type:INT8,resource_name:STRING,principal:STRING,host:STRING,operation:INT8,permission_type:INT8})nullnull

CreatePartitionsRequest

version:0

nametypedefaultValuedocString
topic_partitionsARRAY({topic:STRING,new_partitions:{count:INT32,assignment:ARRAY(ARRAY(INT32))}})nullList of topic and the corresponding new partitions.
timeoutINT32nullThe time in ms to wait for the partitions to be created.
validate_onlyBOOLEANnullIf true then validate the request, but don't actually increase the number of partitions.

CreateTopicsRequest

version:0

nametypedefaultValuedocString
create_topic_requestsARRAY({topic:STRING,num_partitions:INT32,replication_factor:INT16,replica_assignment:ARRAY({partition:INT32,replicas:ARRAY(INT32)}),config_entries:ARRAY({config_name:STRING,config_value:NULLABLE_STRING})})nullAn array of single topic creation requests. Can not have multiple entries for the same topic.
timeoutINT32nullThe time in ms to wait for a topic to be completely created on the controller node. Values <= 0 will trigger topic creation and return immediately

version:1

nametypedefaultValuedocString
create_topic_requestsARRAY({topic:STRING,num_partitions:INT32,replication_factor:INT16,replica_assignment:ARRAY({partition:INT32,replicas:ARRAY(INT32)}),config_entries:ARRAY({config_name:STRING,config_value:NULLABLE_STRING})})nullAn array of single topic creation requests. Can not have multiple entries for the same topic.
timeoutINT32nullThe time in ms to wait for a topic to be completely created on the controller node. Values <= 0 will trigger topic creation and return immediately
validate_onlyBOOLEANnullIf this is true, the request will be validated, but the topic won't be created.

version:2

nametypedefaultValuedocString
create_topic_requestsARRAY({topic:STRING,num_partitions:INT32,replication_factor:INT16,replica_assignment:ARRAY({partition:INT32,replicas:ARRAY(INT32)}),config_entries:ARRAY({config_name:STRING,config_value:NULLABLE_STRING})})nullAn array of single topic creation requests. Can not have multiple entries for the same topic.
timeoutINT32nullThe time in ms to wait for a topic to be completely created on the controller node. Values <= 0 will trigger topic creation and return immediately
validate_onlyBOOLEANnullIf this is true, the request will be validated, but the topic won't be created.

DeleteAclsRequest

version:0

nametypedefaultValuedocString
filtersARRAY({resource_type:INT8,resource_name:NULLABLE_STRING,principal:NULLABLE_STRING,host:NULLABLE_STRING,operation:INT8,permission_type:INT8})nullnull

DeleteRecordsRequest

version:0

nametypedefaultValuedocString
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,offset:INT64})})nullnull
timeoutINT32nullThe maximum time to await a response in ms.

DeleteTopicsRequest

version:0

nametypedefaultValuedocString
topicsARRAY(STRING)nullAn array of topics to be deleted.
timeoutINT32nullThe time in ms to wait for a topic to be completely deleted on the controller node. Values <= 0 will trigger topic deletion and return immediately

version:1

nametypedefaultValuedocString
topicsARRAY(STRING)nullAn array of topics to be deleted.
timeoutINT32nullThe time in ms to wait for a topic to be completely deleted on the controller node. Values <= 0 will trigger topic deletion and return immediately

DescribeAclsRequest

version:0

nametypedefaultValuedocString
resource_typeINT8nullThe resource type
resource_nameNULLABLE_STRINGnullThe resource name filter
principalNULLABLE_STRINGnullThe ACL principal filter
hostNULLABLE_STRINGnullThe ACL host filter
operationINT8nullThe ACL operation
permission_typeINT8nullThe ACL permission type

DescribeConfigsRequest

version:0

nametypedefaultValuedocString
resourcesARRAY({resource_type:INT8,resource_name:STRING,config_names:ARRAY(STRING)})nullAn array of config resources to be returned.

DescribeGroupsRequest

version:0

nametypedefaultValuedocString
group_idsARRAY(STRING)nullList of groupIds to request metadata for (an empty groupId array will return empty group metadata).

version:1

nametypedefaultValuedocString
group_idsARRAY(STRING)nullList of groupIds to request metadata for (an empty groupId array will return empty group metadata).

DescribeLogDirsRequest

version:0

nametypedefaultValuedocString
topicsARRAY({topic:STRING,partitions:ARRAY(INT32)})nullnull

EndTxnRequest

version:0

nametypedefaultValuedocString
transactional_idSTRINGnullThe transactional id corresponding to the transaction.
producer_idINT64nullCurrent producer id in use by the transactional id.
producer_epochINT16nullCurrent epoch associated with the producer id.
transaction_resultBOOLEANnullThe result of the transaction (0 = ABORT, 1 = COMMIT)

FetchRequest

version:0

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
max_wait_timeINT32nullMaximum time in ms to wait for the response.
min_bytesINT32nullMinimum bytes to accumulate in the response.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,fetch_offset:INT64,max_bytes:INT32})})nullTopics to fetch.

version:1

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
max_wait_timeINT32nullMaximum time in ms to wait for the response.
min_bytesINT32nullMinimum bytes to accumulate in the response.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,fetch_offset:INT64,max_bytes:INT32})})nullTopics to fetch.

version:2

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
max_wait_timeINT32nullMaximum time in ms to wait for the response.
min_bytesINT32nullMinimum bytes to accumulate in the response.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,fetch_offset:INT64,max_bytes:INT32})})nullTopics to fetch.

version:3

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
max_wait_timeINT32nullMaximum time in ms to wait for the response.
min_bytesINT32nullMinimum bytes to accumulate in the response.
max_bytesINT32nullMaximum bytes to accumulate in the response. Note that this is not an absolute maximum, if the first message in the first non-empty partition of the fetch is larger than this value, the message will still be returned to ensure that progress can be made.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,fetch_offset:INT64,max_bytes:INT32})})nullTopics to fetch in the order provided.

version:4

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
max_wait_timeINT32nullMaximum time in ms to wait for the response.
min_bytesINT32nullMinimum bytes to accumulate in the response.
max_bytesINT32nullMaximum bytes to accumulate in the response. Note that this is not an absolute maximum, if the first message in the first non-empty partition of the fetch is larger than this value, the message will still be returned to ensure that progress can be made.
isolation_levelINT8nullThis setting controls the visibility of transactional records. Using READ_UNCOMMITTED (isolation_level = 0) makes all records visible. With READ_COMMITTED (isolation_level = 1), non-transactional and COMMITTED transactional records are visible. To be more concrete, READ_COMMITTED returns all data from offsets smaller than the current LSO (last stable offset), and enables the inclusion of the list of aborted transactions in the result, which allows consumers to discard ABORTED transactional records
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,fetch_offset:INT64,max_bytes:INT32})})nullTopics to fetch in the order provided.

version:5

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
max_wait_timeINT32nullMaximum time in ms to wait for the response.
min_bytesINT32nullMinimum bytes to accumulate in the response.
max_bytesINT32nullMaximum bytes to accumulate in the response. Note that this is not an absolute maximum, if the first message in the first non-empty partition of the fetch is larger than this value, the message will still be returned to ensure that progress can be made.
isolation_levelINT8nullThis setting controls the visibility of transactional records. Using READ_UNCOMMITTED (isolation_level = 0) makes all records visible. With READ_COMMITTED (isolation_level = 1), non-transactional and COMMITTED transactional records are visible. To be more concrete, READ_COMMITTED returns all data from offsets smaller than the current LSO (last stable offset), and enables the inclusion of the list of aborted transactions in the result, which allows consumers to discard ABORTED transactional records
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,fetch_offset:INT64,log_start_offset:INT64,max_bytes:INT32})})nullTopics to fetch in the order provided.

version:6

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
max_wait_timeINT32nullMaximum time in ms to wait for the response.
min_bytesINT32nullMinimum bytes to accumulate in the response.
max_bytesINT32nullMaximum bytes to accumulate in the response. Note that this is not an absolute maximum, if the first message in the first non-empty partition of the fetch is larger than this value, the message will still be returned to ensure that progress can be made.
isolation_levelINT8nullThis setting controls the visibility of transactional records. Using READ_UNCOMMITTED (isolation_level = 0) makes all records visible. With READ_COMMITTED (isolation_level = 1), non-transactional and COMMITTED transactional records are visible. To be more concrete, READ_COMMITTED returns all data from offsets smaller than the current LSO (last stable offset), and enables the inclusion of the list of aborted transactions in the result, which allows consumers to discard ABORTED transactional records
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,fetch_offset:INT64,log_start_offset:INT64,max_bytes:INT32})})nullTopics to fetch in the order provided.

FindCoordinatorRequest

version:0

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier

version:1

nametypedefaultValuedocString
coordinator_keySTRINGnullId to use for finding the coordinator (for groups, this is the groupId, for transactional producers, this is the transactional id)
coordinator_typeINT8nullThe type of coordinator to find (0 = group, 1 = transaction)

HeartbeatRequest

version:0

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
generation_idINT32nullThe generation of the group.
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.

version:1

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
generation_idINT32nullThe generation of the group.
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.

InitProducerIdRequest

version:0

nametypedefaultValuedocString
transactional_idNULLABLE_STRINGnullThe transactional id or null if the producer is not transactional
transaction_timeout_msINT32nullThe time in ms to wait for before aborting idle transactions sent by this producer.

JoinGroupRequest

version:0

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
session_timeoutINT32nullThe coordinator considers the consumer dead if it receives no heartbeat after this timeout in ms.
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
protocol_typeSTRINGnullUnique name for class of protocols implemented by group
group_protocolsARRAY({protocol_name:STRING,protocol_metadata:BYTES})nullList of protocols that the member supports

version:1

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
session_timeoutINT32nullThe coordinator considers the consumer dead if it receives no heartbeat after this timeout in ms.
rebalance_timeoutINT32nullThe maximum time that the coordinator will wait for each member to rejoin when rebalancing the group
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
protocol_typeSTRINGnullUnique name for class of protocols implemented by group
group_protocolsARRAY({protocol_name:STRING,protocol_metadata:BYTES})nullList of protocols that the member supports

version:2

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
session_timeoutINT32nullThe coordinator considers the consumer dead if it receives no heartbeat after this timeout in ms.
rebalance_timeoutINT32nullThe maximum time that the coordinator will wait for each member to rejoin when rebalancing the group
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
protocol_typeSTRINGnullUnique name for class of protocols implemented by group
group_protocolsARRAY({protocol_name:STRING,protocol_metadata:BYTES})nullList of protocols that the member supports

LeaderAndIsrRequest

version:0

nametypedefaultValuedocString
controller_idINT32nullThe controller id.
controller_epochINT32nullThe controller epoch.
partition_statesARRAY({topic:STRING,partition:INT32,controller_epoch:INT32,leader:INT32,leader_epoch:INT32,isr:ARRAY(INT32),zk_version:INT32,replicas:ARRAY(INT32)})nullnull
live_leadersARRAY({id:INT32,host:STRING,port:INT32})nullnull

version:1

nametypedefaultValuedocString
controller_idINT32nullThe controller id.
controller_epochINT32nullThe controller epoch.
partition_statesARRAY({topic:STRING,partition:INT32,controller_epoch:INT32,leader:INT32,leader_epoch:INT32,isr:ARRAY(INT32),zk_version:INT32,replicas:ARRAY(INT32),is_new:BOOLEAN})nullnull
live_leadersARRAY({id:INT32,host:STRING,port:INT32})nullnull

LeaveGroupRequest

version:0

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.

version:1

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.

ListGroupsRequest

version:0

nametypedefaultValuedocString

version:1

nametypedefaultValuedocString

ListOffsetRequest

version:0

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,timestamp:INT64,max_num_offsets:INT32})})nullTopics to list offsets.

version:1

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,timestamp:INT64})})nullTopics to list offsets.

version:2

nametypedefaultValuedocString
replica_idINT32nullBroker id of the follower. For normal consumers, use -1.
isolation_levelINT8nullThis setting controls the visibility of transactional records. Using READ_UNCOMMITTED (isolation_level = 0) makes all records visible. With READ_COMMITTED (isolation_level = 1), non-transactional and COMMITTED transactional records are visible. To be more concrete, READ_COMMITTED returns all data from offsets smaller than the current LSO (last stable offset), and enables the inclusion of the list of aborted transactions in the result, which allows consumers to discard ABORTED transactional records
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,timestamp:INT64})})nullTopics to list offsets.

MetadataRequest

version:0

nametypedefaultValuedocString
topicsARRAY(STRING)nullAn array of topics to fetch metadata for. If no topics are specified fetch metadata for all topics.

version:1

nametypedefaultValuedocString
topicsARRAY(STRING)nullAn array of topics to fetch metadata for. If the topics array is null fetch metadata for all topics.

version:2

nametypedefaultValuedocString
topicsARRAY(STRING)nullAn array of topics to fetch metadata for. If the topics array is null fetch metadata for all topics.

version:3

nametypedefaultValuedocString
topicsARRAY(STRING)nullAn array of topics to fetch metadata for. If the topics array is null fetch metadata for all topics.

version:4

nametypedefaultValuedocString
topicsARRAY(STRING)nullAn array of topics to fetch metadata for. If the topics array is null fetch metadata for all topics.
allow_auto_topic_creationBOOLEANnullIf this and the broker config 'auto.create.topics.enable' are true, topics that don't exist will be created by the broker. Otherwise, no topics will be created by the broker.

version:5

nametypedefaultValuedocString
topicsARRAY(STRING)nullAn array of topics to fetch metadata for. If the topics array is null fetch metadata for all topics.
allow_auto_topic_creationBOOLEANnullIf this and the broker config 'auto.create.topics.enable' are true, topics that don't exist will be created by the broker. Otherwise, no topics will be created by the broker.

OffsetCommitRequest

version:0

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,offset:INT64,metadata:NULLABLE_STRING})})nullTopics to commit offsets.

version:1

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
generation_idINT32nullThe generation of the group.
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,offset:INT64,timestamp:INT64,metadata:NULLABLE_STRING})})nullTopics to commit offsets.

version:2

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
generation_idINT32nullThe generation of the group.
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
retention_timeINT64nullTime period in ms to retain the offset.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,offset:INT64,metadata:NULLABLE_STRING})})nullTopics to commit offsets.

version:3

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
generation_idINT32nullThe generation of the group.
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
retention_timeINT64nullTime period in ms to retain the offset.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,offset:INT64,metadata:NULLABLE_STRING})})nullTopics to commit offsets.

OffsetFetchRequest

version:0

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32})})nullTopics to fetch offsets.

version:1

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32})})nullTopics to fetch offsets.

version:2

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32})})nullTopics to fetch offsets. If the topic array is null fetch offsets for all topics.

version:3

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32})})nullTopics to fetch offsets. If the topic array is null fetch offsets for all topics.

OffsetsForLeaderEpochRequest

version:0

nametypedefaultValuedocString
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,leader_epoch:INT32})})nullAn array of topics to get epochs for

ProduceRequest

version:0

nametypedefaultValuedocString
acksINT16nullThe number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments, 1 for only the leader and -1 for the full ISR.
timeoutINT32nullThe time to await a response in ms.
topic_dataARRAY({topic:STRING,data:ARRAY({partition:INT32,record_set:RECORDS})})nullnull

version:1

nametypedefaultValuedocString
acksINT16nullThe number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments, 1 for only the leader and -1 for the full ISR.
timeoutINT32nullThe time to await a response in ms.
topic_dataARRAY({topic:STRING,data:ARRAY({partition:INT32,record_set:RECORDS})})nullnull

version:2

nametypedefaultValuedocString
acksINT16nullThe number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments, 1 for only the leader and -1 for the full ISR.
timeoutINT32nullThe time to await a response in ms.
topic_dataARRAY({topic:STRING,data:ARRAY({partition:INT32,record_set:RECORDS})})nullnull

version:3

nametypedefaultValuedocString
transactional_idNULLABLE_STRINGnullThe transactional id or null if the producer is not transactional
acksINT16nullThe number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments, 1 for only the leader and -1 for the full ISR.
timeoutINT32nullThe time to await a response in ms.
topic_dataARRAY({topic:STRING,data:ARRAY({partition:INT32,record_set:RECORDS})})nullnull

version:4

nametypedefaultValuedocString
transactional_idNULLABLE_STRINGnullThe transactional id or null if the producer is not transactional
acksINT16nullThe number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments, 1 for only the leader and -1 for the full ISR.
timeoutINT32nullThe time to await a response in ms.
topic_dataARRAY({topic:STRING,data:ARRAY({partition:INT32,record_set:RECORDS})})nullnull

version:5

nametypedefaultValuedocString
transactional_idNULLABLE_STRINGnullThe transactional id or null if the producer is not transactional
acksINT16nullThe number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments, 1 for only the leader and -1 for the full ISR.
timeoutINT32nullThe time to await a response in ms.
topic_dataARRAY({topic:STRING,data:ARRAY({partition:INT32,record_set:RECORDS})})nullnull

SaslAuthenticateRequest

version:0

nametypedefaultValuedocString
sasl_auth_bytesBYTESnullSASL authentication bytes from client as defined by the SASL mechanism.

SaslHandshakeRequest

version:0

nametypedefaultValuedocString
mechanismSTRINGnullSASL Mechanism chosen by the client.

version:1

nametypedefaultValuedocString
mechanismSTRINGnullSASL Mechanism chosen by the client.

StopReplicaRequest

version:0

nametypedefaultValuedocString
controller_idINT32nullThe controller id.
controller_epochINT32nullThe controller epoch.
delete_partitionsBOOLEANnullBoolean which indicates if replica's partitions must be deleted.
partitionsARRAY({topic:STRING,partition:INT32})nullnull

SyncGroupRequest

version:0

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
generation_idINT32nullThe generation of the group.
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
group_assignmentARRAY({member_id:STRING,member_assignment:BYTES})nullnull

version:1

nametypedefaultValuedocString
group_idSTRINGnullThe unique group identifier
generation_idINT32nullThe generation of the group.
member_idSTRINGnullThe member id assigned by the group coordinator or null if joining for the first time.
group_assignmentARRAY({member_id:STRING,member_assignment:BYTES})nullnull

TxnOffsetCommitRequest

version:0

nametypedefaultValuedocString
transactional_idSTRINGnullThe transactional id corresponding to the transaction.
group_idSTRINGnullThe unique group identifier
producer_idINT64nullCurrent producer id in use by the transactional id.
producer_epochINT16nullCurrent epoch associated with the producer id.
topicsARRAY({topic:STRING,partitions:ARRAY({partition:INT32,offset:INT64,metadata:NULLABLE_STRING})})nullThe partitions to write markers for.

UpdateMetadataRequest

version:0

nametypedefaultValuedocString
controller_idINT32nullThe controller id.
controller_epochINT32nullThe controller epoch.
partition_statesARRAY({topic:STRING,partition:INT32,controller_epoch:INT32,leader:INT32,leader_epoch:INT32,isr:ARRAY(INT32),zk_version:INT32,replicas:ARRAY(INT32)})nullnull
live_brokersARRAY({id:INT32,host:STRING,port:INT32})nullnull

version:1

nametypedefaultValuedocString
controller_idINT32nullThe controller id.
controller_epochINT32nullThe controller epoch.
partition_statesARRAY({topic:STRING,partition:INT32,controller_epoch:INT32,leader:INT32,leader_epoch:INT32,isr:ARRAY(INT32),zk_version:INT32,replicas:ARRAY(INT32)})nullnull
live_brokersARRAY({id:INT32,end_points:ARRAY({port:INT32,host:STRING,security_protocol_type:INT16})})nullnull

version:2

nametypedefaultValuedocString
controller_idINT32nullThe controller id.
controller_epochINT32nullThe controller epoch.
partition_statesARRAY({topic:STRING,partition:INT32,controller_epoch:INT32,leader:INT32,leader_epoch:INT32,isr:ARRAY(INT32),zk_version:INT32,replicas:ARRAY(INT32)})nullnull
live_brokersARRAY({id:INT32,end_points:ARRAY({port:INT32,host:STRING,security_protocol_type:INT16}),rack:NULLABLE_STRING})nullnull

version:3

nametypedefaultValuedocString
controller_idINT32nullThe controller id.
controller_epochINT32nullThe controller epoch.
partition_statesARRAY({topic:STRING,partition:INT32,controller_epoch:INT32,leader:INT32,leader_epoch:INT32,isr:ARRAY(INT32),zk_version:INT32,replicas:ARRAY(INT32)})nullnull
live_brokersARRAY({id:INT32,end_points:ARRAY({port:INT32,host:STRING,listener_name:STRING,security_protocol_type:INT16}),rack:NULLABLE_STRING})nullnull

version:4

nametypedefaultValuedocString
controller_idINT32nullThe controller id.
controller_epochINT32nullThe controller epoch.
partition_statesARRAY({topic:STRING,partition:INT32,controller_epoch:INT32,leader:INT32,leader_epoch:INT32,isr:ARRAY(INT32),zk_version:INT32,replicas:ARRAY(INT32),offline_replicas:ARRAY(INT32)})nullnull
live_brokersARRAY({id:INT32,end_points:ARRAY({port:INT32,host:STRING,listener_name:STRING,security_protocol_type:INT16}),rack:NULLABLE_STRING})nullnull

WriteTxnMarkersRequest

version:0

nametypedefaultValuedocString
transaction_markersARRAY({producer_id:INT64,producer_epoch:INT16,transaction_result:BOOLEAN,topics:ARRAY({topic:STRING,partitions:ARRAY(INT32)}),coordinator_epoch:INT32})nullThe transaction markers to be written.
原文地址:https://www.cnblogs.com/simoncook/p/11317367.html