+ _event_common_context_field_class = property(fset=_event_common_context_field_class)
+
+ def _default_clock_class(self, clock_class):
+ native_bt.stream_class_set_default_clock_class(self._ptr, clock_class._ptr)
+
+ _default_clock_class = property(fset=_default_clock_class)
+
+ @classmethod
+ def _validate_create_params(
+ cls,
+ name,
+ user_attributes,
+ packet_context_field_class,
+ event_common_context_field_class,
+ default_clock_class,
+ assigns_automatic_event_class_id,
+ assigns_automatic_stream_id,
+ supports_packets,
+ packets_have_beginning_default_clock_snapshot,
+ packets_have_end_default_clock_snapshot,
+ supports_discarded_events,
+ discarded_events_have_default_clock_snapshots,
+ supports_discarded_packets,
+ discarded_packets_have_default_clock_snapshots,
+ ):
+ # Name
+ if name is not None:
+ utils._check_str(name)
+
+ # User attributes
+ if user_attributes is not None:
+ value = bt2_value.create_value(user_attributes)
+ utils._check_type(value, bt2_value.MapValue)
+
+ # Packet context field class
+ if packet_context_field_class is not None:
+ if not supports_packets: