Struct kafka_protocol::messages::get_telemetry_subscriptions_response::GetTelemetrySubscriptionsResponseBuilder
source · pub struct GetTelemetrySubscriptionsResponseBuilder { /* private fields */ }
Expand description
Builder for GetTelemetrySubscriptionsResponse
.
Implementations§
source§impl GetTelemetrySubscriptionsResponseBuilder
impl GetTelemetrySubscriptionsResponseBuilder
sourcepub fn throttle_time_ms(&mut self, value: i32) -> &mut Self
pub fn throttle_time_ms(&mut self, value: i32) -> &mut Self
The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota.
Supported API versions: 0
sourcepub fn error_code(&mut self, value: i16) -> &mut Self
pub fn error_code(&mut self, value: i16) -> &mut Self
The error code, or 0 if there was no error.
Supported API versions: 0
sourcepub fn client_instance_id(&mut self, value: Uuid) -> &mut Self
pub fn client_instance_id(&mut self, value: Uuid) -> &mut Self
Assigned client instance id if ClientInstanceId was 0 in the request, else 0.
Supported API versions: 0
sourcepub fn subscription_id(&mut self, value: i32) -> &mut Self
pub fn subscription_id(&mut self, value: i32) -> &mut Self
Unique identifier for the current subscription set for this client instance.
Supported API versions: 0
sourcepub fn accepted_compression_types(&mut self, value: Vec<i8>) -> &mut Self
pub fn accepted_compression_types(&mut self, value: Vec<i8>) -> &mut Self
Compression types that broker accepts for the PushTelemetryRequest.
Supported API versions: 0
sourcepub fn push_interval_ms(&mut self, value: i32) -> &mut Self
pub fn push_interval_ms(&mut self, value: i32) -> &mut Self
Configured push interval, which is the lowest configured interval in the current subscription set.
Supported API versions: 0
sourcepub fn telemetry_max_bytes(&mut self, value: i32) -> &mut Self
pub fn telemetry_max_bytes(&mut self, value: i32) -> &mut Self
The maximum bytes of binary data the broker accepts in PushTelemetryRequest.
Supported API versions: 0
sourcepub fn delta_temporality(&mut self, value: bool) -> &mut Self
pub fn delta_temporality(&mut self, value: bool) -> &mut Self
Flag to indicate monotonic/counter metrics are to be emitted as deltas or cumulative values
Supported API versions: 0
sourcepub fn requested_metrics(&mut self, value: Vec<StrBytes>) -> &mut Self
pub fn requested_metrics(&mut self, value: Vec<StrBytes>) -> &mut Self
Requested metrics prefix string match. Empty array: No metrics subscribed, Array[0] empty string: All metrics subscribed.
Supported API versions: 0
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Bytes>
) -> &mut Self
pub fn unknown_tagged_fields( &mut self, value: BTreeMap<i32, Bytes> ) -> &mut Self
Other tagged fields
sourcepub fn build(
&self
) -> Result<GetTelemetrySubscriptionsResponse, GetTelemetrySubscriptionsResponseBuilderError>
pub fn build( &self ) -> Result<GetTelemetrySubscriptionsResponse, GetTelemetrySubscriptionsResponseBuilderError>
Builds a new GetTelemetrySubscriptionsResponse
.
§Errors
If a required field has not been initialized.
Trait Implementations§
source§impl Clone for GetTelemetrySubscriptionsResponseBuilder
impl Clone for GetTelemetrySubscriptionsResponseBuilder
source§fn clone(&self) -> GetTelemetrySubscriptionsResponseBuilder
fn clone(&self) -> GetTelemetrySubscriptionsResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more