#[non_exhaustive]pub struct UpdateMetadataRequest {
pub controller_id: BrokerId,
pub is_k_raft_controller: bool,
pub _type: i8,
pub controller_epoch: i32,
pub broker_epoch: i64,
pub ungrouped_partition_states: Vec<UpdateMetadataPartitionState>,
pub topic_states: Vec<UpdateMetadataTopicState>,
pub live_brokers: Vec<UpdateMetadataBroker>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-8
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.controller_id: BrokerId
The controller id.
Supported API versions: 0-8
is_k_raft_controller: bool
If KRaft controller id is used during migration. See KIP-866
Supported API versions: 8
_type: i8
Indicates if this request is a Full metadata snapshot (2), Incremental (1), or Unknown (0). Using during ZK migration, see KIP-866
Supported API versions: 8
controller_epoch: i32
The controller epoch.
Supported API versions: 0-8
broker_epoch: i64
The broker epoch.
Supported API versions: 5-8
ungrouped_partition_states: Vec<UpdateMetadataPartitionState>
In older versions of this RPC, each partition that we would like to update.
Supported API versions: 0-4
topic_states: Vec<UpdateMetadataTopicState>
In newer versions of this RPC, each topic that we would like to update.
Supported API versions: 5-8
live_brokers: Vec<UpdateMetadataBroker>
Supported API versions: 0-8
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl UpdateMetadataRequest
impl UpdateMetadataRequest
Sourcepub fn with_controller_id(self, value: BrokerId) -> Self
pub fn with_controller_id(self, value: BrokerId) -> Self
Sets controller_id
to the passed value.
The controller id.
Supported API versions: 0-8
Sourcepub fn with_is_k_raft_controller(self, value: bool) -> Self
pub fn with_is_k_raft_controller(self, value: bool) -> Self
Sets is_k_raft_controller
to the passed value.
If KRaft controller id is used during migration. See KIP-866
Supported API versions: 8
Sourcepub fn with_type(self, value: i8) -> Self
pub fn with_type(self, value: i8) -> Self
Sets _type
to the passed value.
Indicates if this request is a Full metadata snapshot (2), Incremental (1), or Unknown (0). Using during ZK migration, see KIP-866
Supported API versions: 8
Sourcepub fn with_controller_epoch(self, value: i32) -> Self
pub fn with_controller_epoch(self, value: i32) -> Self
Sets controller_epoch
to the passed value.
The controller epoch.
Supported API versions: 0-8
Sourcepub fn with_broker_epoch(self, value: i64) -> Self
pub fn with_broker_epoch(self, value: i64) -> Self
Sets broker_epoch
to the passed value.
The broker epoch.
Supported API versions: 5-8
Sourcepub fn with_ungrouped_partition_states(
self,
value: Vec<UpdateMetadataPartitionState>,
) -> Self
pub fn with_ungrouped_partition_states( self, value: Vec<UpdateMetadataPartitionState>, ) -> Self
Sets ungrouped_partition_states
to the passed value.
In older versions of this RPC, each partition that we would like to update.
Supported API versions: 0-4
Sourcepub fn with_topic_states(self, value: Vec<UpdateMetadataTopicState>) -> Self
pub fn with_topic_states(self, value: Vec<UpdateMetadataTopicState>) -> Self
Sets topic_states
to the passed value.
In newer versions of this RPC, each topic that we would like to update.
Supported API versions: 5-8
Sourcepub fn with_live_brokers(self, value: Vec<UpdateMetadataBroker>) -> Self
pub fn with_live_brokers(self, value: Vec<UpdateMetadataBroker>) -> Self
Sets live_brokers
to the passed value.
Supported API versions: 0-8
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for UpdateMetadataRequest
impl Clone for UpdateMetadataRequest
Source§fn clone(&self) -> UpdateMetadataRequest
fn clone(&self) -> UpdateMetadataRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpdateMetadataRequest
impl Debug for UpdateMetadataRequest
Source§impl Decodable for UpdateMetadataRequest
Available on crate feature broker
only.
impl Decodable for UpdateMetadataRequest
broker
only.Source§impl Default for UpdateMetadataRequest
impl Default for UpdateMetadataRequest
Source§impl Encodable for UpdateMetadataRequest
Available on crate feature client
only.
impl Encodable for UpdateMetadataRequest
client
only.Source§impl From<UpdateMetadataRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<UpdateMetadataRequest> for RequestKind
messages_enums
only.Source§fn from(value: UpdateMetadataRequest) -> RequestKind
fn from(value: UpdateMetadataRequest) -> RequestKind
Source§impl HeaderVersion for UpdateMetadataRequest
impl HeaderVersion for UpdateMetadataRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for UpdateMetadataRequest
impl Message for UpdateMetadataRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for UpdateMetadataRequest
impl PartialEq for UpdateMetadataRequest
Source§impl Request for UpdateMetadataRequest
Available on crate features client
and broker
only.
impl Request for UpdateMetadataRequest
client
and broker
only.