dtcc.Surface.from_proto(pb: Geometry | bytes, only_surface_fields=False)[source] Initialize Surface from a protobuf representation. Parameters:¶ pb : Union[proto.Geometry, bytes]¶The protobuf message or its serialized bytes representation.